mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
AP_HAL: move GPIO ON/off defaults from AP_HAL_ChibiOS to AP_HAL
these can be reused across different vehicles
This commit is contained in:
parent
a65e06e0a9
commit
b7fe779713
@ -363,3 +363,13 @@
|
|||||||
#ifndef HAL_ENABLE_SENDING_STATS
|
#ifndef HAL_ENABLE_SENDING_STATS
|
||||||
#define HAL_ENABLE_SENDING_STATS BOARD_FLASH_SIZE >= 256
|
#define HAL_ENABLE_SENDING_STATS BOARD_FLASH_SIZE >= 256
|
||||||
#endif
|
#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)
|
||||||
|
Loading…
Reference in New Issue
Block a user