AP_HAL: move definition of HAL_WITH_POSTYPE_DOUBLE into AP_HAL_Boards.h

other libraries need to know if we are doing double-precision offsets
This commit is contained in:
Peter Barker 2024-06-06 17:09:20 +10:00 committed by Peter Barker
parent 50401b749b
commit d70f5b92e0
1 changed files with 4 additions and 0 deletions

View File

@ -381,4 +381,8 @@
#error "HAL_GPIO_LED_OFF must not be defined, it is implicitly !HAL_GPIO_LED_ON"
#endif
#ifndef HAL_WITH_POSTYPE_DOUBLE
#define HAL_WITH_POSTYPE_DOUBLE BOARD_FLASH_SIZE > 1024
#endif
#define HAL_GPIO_LED_OFF (!HAL_GPIO_LED_ON)