diff --git a/sw/airborne/boards/lia_1.1.h b/sw/airborne/boards/lia_1.1.h index d7cc07087ca..a5464d12171 100644 --- a/sw/airborne/boards/lia_1.1.h +++ b/sw/airborne/boards/lia_1.1.h @@ -46,6 +46,10 @@ #define LED_3_GPIO_OFF gpio_set #define LED_3_AFIO_REMAP ((void)0) +#if USE_LED_3 && USE_ADC_6 +#error "You can't use LED_3 and ADC_6 at the same time" +#endif + /* red, shared with ADC15 (ADC_4 on connector ANALOG2) */ #ifndef USE_LED_4 #define USE_LED_4 1 @@ -56,6 +60,10 @@ #define LED_4_GPIO_OFF gpio_set #define LED_4_AFIO_REMAP ((void)0) +#if USE_LED_4 && USE_ADC_4 +#error "You can't use LED_4 and ADC_4 at the same time" +#endif + /* green, on PC15 */ #ifndef USE_LED_5 #define USE_LED_5 1 diff --git a/sw/airborne/boards/lisa_m_2.0.h b/sw/airborne/boards/lisa_m_2.0.h index b9280c46157..c921f7af8a0 100644 --- a/sw/airborne/boards/lisa_m_2.0.h +++ b/sw/airborne/boards/lisa_m_2.0.h @@ -46,6 +46,10 @@ #define LED_3_GPIO_OFF gpio_set #define LED_3_AFIO_REMAP ((void)0) +#if USE_LED_3 && USE_ADC_6 +#error "You can't use LED_3 and ADC_6 at the same time" +#endif + /* red, shared with ADC15 (ADC_4 on connector ANALOG2) */ #ifndef USE_LED_4 #define USE_LED_4 1 @@ -56,6 +60,10 @@ #define LED_4_GPIO_OFF gpio_set #define LED_4_AFIO_REMAP ((void)0) +#if USE_LED_4 && USE_ADC_4 +#error "You can't use LED_4 and ADC_4 at the same time" +#endif + /* green, on PC15 */ #ifndef USE_LED_5 #define USE_LED_5 1