From 9450b13fde94c29158c645fb0499c49d049fd597 Mon Sep 17 00:00:00 2001 From: Cliff Geerdes Date: Sat, 21 Nov 2015 13:52:09 -0500 Subject: [PATCH] LP-72 BL wouldnt build because it didnt know DSM structs --- flight/targets/boards/sparky2/board_hw_defs.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flight/targets/boards/sparky2/board_hw_defs.c b/flight/targets/boards/sparky2/board_hw_defs.c index b724c531e..4d235ea05 100644 --- a/flight/targets/boards/sparky2/board_hw_defs.c +++ b/flight/targets/boards/sparky2/board_hw_defs.c @@ -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)