diff --git a/libraries/AP_HAL/AP_HAL_Boards.h b/libraries/AP_HAL/AP_HAL_Boards.h index b9cb51bbf9d16..5ba862d7ef177 100644 --- a/libraries/AP_HAL/AP_HAL_Boards.h +++ b/libraries/AP_HAL/AP_HAL_Boards.h @@ -363,3 +363,13 @@ #ifndef HAL_ENABLE_SENDING_STATS #define HAL_ENABLE_SENDING_STATS BOARD_FLASH_SIZE >= 256 #endif + +#ifndef HAL_GPIO_LED_ON +#define HAL_GPIO_LED_ON 0 +#endif + +#ifdef HAL_GPIO_LED_OFF +#error "HAL_GPIO_LED_OFF must not be defined, it is implicitly !HAL_GPIO_LED_ON" +#endif + +#define HAL_GPIO_LED_OFF (!HAL_GPIO_LED_ON)