1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-31 16:52:10 +01:00

LP-72 BL wouldnt build because it didnt know DSM structs

This commit is contained in:
Cliff Geerdes 2015-11-21 13:52:09 -05:00 committed by Laurent Lalanne
parent 8e9e3c72b4
commit 9450b13fde

View File

@ -1090,6 +1090,8 @@ static const struct pios_usart_cfg pios_usart_rcvr_cfg = {
#endif
#if defined(PIOS_INCLUDE_SBUS)
static const struct pios_usart_cfg pios_usart_sbus_rcvr_cfg = {
.regs = USART6,
.remap = GPIO_AF_USART6,
@ -1126,6 +1128,8 @@ static const struct pios_usart_cfg pios_usart_sbus_rcvr_cfg = {
#endif
};
#endif /* PIOS_INCLUDE_SBUS */
static const struct pios_sbus_cfg pios_sbus_cfg = {
/* Inverter configuration */
@ -1150,6 +1154,8 @@ static const struct pios_sbus_cfg pios_sbus_cfg = {
};
#ifdef PIOS_INCLUDE_DSM
// It looks like TL notes originally came from OP's pios_dsm_main_cfg
// (TL note) Because of the inverter on the main port this will not
// (TL note) work. Notice the mode is set to IN to maintain API
@ -1204,6 +1210,8 @@ static const struct pios_usart_cfg pios_usart_dsm_rcvr_cfg = {
#endif
};
#endif /* PIOS_INCLUDE_DSM */
#if defined(PIOS_INCLUDE_COM)