mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-16 08:29:15 +01:00
LP-196 Removed EX.Bus on Main port for CopterControl target since it is not working.
This commit is contained in:
parent
c8edd023a2
commit
08237a1ff5
@ -1026,41 +1026,6 @@ static const struct pios_dsm_cfg pios_dsm_flexi_cfg = {
|
|||||||
* EXBUS USART
|
* EXBUS USART
|
||||||
*/
|
*/
|
||||||
#include <pios_exbus_priv.h>
|
#include <pios_exbus_priv.h>
|
||||||
static const struct pios_usart_cfg pios_usart_exbus_main_cfg = {
|
|
||||||
.regs = USART1,
|
|
||||||
.init = {
|
|
||||||
.USART_BaudRate = 125000,
|
|
||||||
.USART_WordLength = USART_WordLength_8b,
|
|
||||||
.USART_Parity = USART_Parity_No,
|
|
||||||
.USART_StopBits = USART_StopBits_1,
|
|
||||||
.USART_HardwareFlowControl = USART_HardwareFlowControl_None,
|
|
||||||
.USART_Mode = USART_Mode_Rx,
|
|
||||||
},
|
|
||||||
.irq = {
|
|
||||||
.init = {
|
|
||||||
.NVIC_IRQChannel = USART1_IRQn,
|
|
||||||
.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_HIGH,
|
|
||||||
.NVIC_IRQChannelSubPriority = 0,
|
|
||||||
.NVIC_IRQChannelCmd = ENABLE,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
.rx = {
|
|
||||||
.gpio = GPIOA,
|
|
||||||
.init = {
|
|
||||||
.GPIO_Pin = GPIO_Pin_10,
|
|
||||||
.GPIO_Speed = GPIO_Speed_2MHz,
|
|
||||||
.GPIO_Mode = GPIO_Mode_IPU,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
.tx = {
|
|
||||||
.gpio = GPIOA,
|
|
||||||
.init = {
|
|
||||||
.GPIO_Pin = GPIO_Pin_9,
|
|
||||||
.GPIO_Speed = GPIO_Speed_2MHz,
|
|
||||||
.GPIO_Mode = GPIO_Mode_IN_FLOATING,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
static const struct pios_usart_cfg pios_usart_exbus_flexi_cfg = {
|
static const struct pios_usart_cfg pios_usart_exbus_flexi_cfg = {
|
||||||
.regs = USART3,
|
.regs = USART3,
|
||||||
|
@ -518,27 +518,6 @@ void PIOS_Board_Init(void)
|
|||||||
}
|
}
|
||||||
#endif /* PIOS_INCLUDE_DSM */
|
#endif /* PIOS_INCLUDE_DSM */
|
||||||
break;
|
break;
|
||||||
case HWSETTINGS_CC_MAINPORT_JETIEXBUS:
|
|
||||||
#if defined(PIOS_INCLUDE_EXBUS)
|
|
||||||
{
|
|
||||||
uint32_t pios_usart_exbus_id;
|
|
||||||
if (PIOS_USART_Init(&pios_usart_exbus_id, &pios_usart_exbus_main_cfg)) {
|
|
||||||
PIOS_Assert(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
uint32_t pios_exbus_id;
|
|
||||||
if (PIOS_EXBUS_Init(&pios_exbus_id, &pios_usart_com_driver, pios_usart_exbus_id)) {
|
|
||||||
PIOS_Assert(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
uint32_t pios_exbus_rcvr_id;
|
|
||||||
if (PIOS_RCVR_Init(&pios_exbus_rcvr_id, &pios_exbus_rcvr_driver, pios_exbus_id)) {
|
|
||||||
PIOS_Assert(0);
|
|
||||||
}
|
|
||||||
pios_rcvr_group_map[MANUALCONTROLSETTINGS_CHANNELGROUPS_JETIEXBUSMAINPORT] = pios_exbus_rcvr_id;
|
|
||||||
}
|
|
||||||
#endif /* PIOS_INCLUDE_EXBUS */
|
|
||||||
break;
|
|
||||||
case HWSETTINGS_CC_MAINPORT_DEBUGCONSOLE:
|
case HWSETTINGS_CC_MAINPORT_DEBUGCONSOLE:
|
||||||
#if defined(PIOS_INCLUDE_COM)
|
#if defined(PIOS_INCLUDE_COM)
|
||||||
#if defined(PIOS_INCLUDE_DEBUG_CONSOLE)
|
#if defined(PIOS_INCLUDE_DEBUG_CONSOLE)
|
||||||
|
@ -251,7 +251,7 @@ extern uint32_t pios_com_hkosd_id;
|
|||||||
// -------------------------
|
// -------------------------
|
||||||
// Receiver EX.Bus input
|
// Receiver EX.Bus input
|
||||||
// -------------------------
|
// -------------------------
|
||||||
#define PIOS_EXBUS_MAX_DEVS 2
|
#define PIOS_EXBUS_MAX_DEVS 1
|
||||||
#define PIOS_EXBUS_NUM_INPUTS 16
|
#define PIOS_EXBUS_NUM_INPUTS 16
|
||||||
|
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<object name="HwSettings" singleinstance="true" settings="true" category="System">
|
<object name="HwSettings" singleinstance="true" settings="true" category="System">
|
||||||
<description>Selection of optional hardware configurations.</description>
|
<description>Selection of optional hardware configurations.</description>
|
||||||
<field name="CC_RcvrPort" units="function" type="enum" elements="1" options="Disabled+OneShot,PWM+NoOneShot,PPM+NoOneShot,PPM+PWM+NoOneShot,PPM+Outputs+NoOneShot,PPM_PIN8+OneShot, Outputs+OneShot" defaultvalue="PWM+NoOneShot"/>
|
<field name="CC_RcvrPort" units="function" type="enum" elements="1" options="Disabled+OneShot,PWM+NoOneShot,PPM+NoOneShot,PPM+PWM+NoOneShot,PPM+Outputs+NoOneShot,PPM_PIN8+OneShot, Outputs+OneShot" defaultvalue="PWM+NoOneShot"/>
|
||||||
<field name="CC_MainPort" units="function" type="enum" elements="1" options="Disabled,Telemetry,GPS,S.Bus,DSM,Jeti EX.Bus,DebugConsole,ComBridge,OsdHk" defaultvalue="Telemetry"/>
|
<field name="CC_MainPort" units="function" type="enum" elements="1" options="Disabled,Telemetry,GPS,S.Bus,DSM,DebugConsole,ComBridge,OsdHk" defaultvalue="Telemetry"/>
|
||||||
<field name="CC_FlexiPort" units="function" type="enum" elements="1" options="Disabled,Telemetry,GPS,I2C,PPM,DSM,Jeti EX.Bus,SRXL,DebugConsole,ComBridge,OsdHk" defaultvalue="Disabled"/>
|
<field name="CC_FlexiPort" units="function" type="enum" elements="1" options="Disabled,Telemetry,GPS,I2C,PPM,DSM,Jeti EX.Bus,SRXL,DebugConsole,ComBridge,OsdHk" defaultvalue="Disabled"/>
|
||||||
|
|
||||||
<field name="RV_RcvrPort" units="function" type="enum" elements="1" options="Disabled,PWM,PPM,PPM+Outputs,Outputs" defaultvalue="PWM"/>
|
<field name="RV_RcvrPort" units="function" type="enum" elements="1" options="Disabled,PWM,PPM,PPM+Outputs,Outputs" defaultvalue="PWM"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user