mirror of https://github.com/ArduPilot/ardupilot
AP_BoardConfig: on debug builds enable the debug pins by default
this saves a step in debugging
This commit is contained in:
parent
5121b33c03
commit
14d2318859
|
@ -76,7 +76,11 @@
|
||||||
|
|
||||||
#ifndef HAL_BRD_OPTIONS_DEFAULT
|
#ifndef HAL_BRD_OPTIONS_DEFAULT
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS && !APM_BUILD_TYPE(APM_BUILD_UNKNOWN) && !APM_BUILD_TYPE(APM_BUILD_Replay)
|
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS && !APM_BUILD_TYPE(APM_BUILD_UNKNOWN) && !APM_BUILD_TYPE(APM_BUILD_Replay)
|
||||||
|
#ifdef HAL_DEBUG_BUILD
|
||||||
|
#define HAL_BRD_OPTIONS_DEFAULT BOARD_OPTION_WATCHDOG | BOARD_OPTION_DEBUG_ENABLE
|
||||||
|
#else
|
||||||
#define HAL_BRD_OPTIONS_DEFAULT BOARD_OPTION_WATCHDOG
|
#define HAL_BRD_OPTIONS_DEFAULT BOARD_OPTION_WATCHDOG
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define HAL_BRD_OPTIONS_DEFAULT 0
|
#define HAL_BRD_OPTIONS_DEFAULT 0
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue