Browse Source

HAL_ChibiOS: default debug checks off

these can be enabled as needed for board bringup, but are too
expensive for general use
mission-4.1.18
Andrew Tridgell 7 years ago
parent
commit
21951243f0
  1. 19
      libraries/AP_HAL_ChibiOS/hwdef/common/chconf.h

19
libraries/AP_HAL_ChibiOS/hwdef/common/chconf.h

@ -28,6 +28,8 @@
#pragma once #pragma once
#include "hwdef.h"
#define _CHIBIOS_RT_CONF_ #define _CHIBIOS_RT_CONF_
/*===========================================================================*/ /*===========================================================================*/
@ -340,7 +342,9 @@
* *
* @note The default is @p FALSE. * @note The default is @p FALSE.
*/ */
#define CH_DBG_SYSTEM_STATE_CHECK TRUE #ifndef CH_DBG_SYSTEM_STATE_CHECK
#define CH_DBG_SYSTEM_STATE_CHECK FALSE
#endif
/** /**
* @brief Debug option, parameters checks. * @brief Debug option, parameters checks.
@ -349,7 +353,10 @@
* *
* @note The default is @p FALSE. * @note The default is @p FALSE.
*/ */
#define CH_DBG_ENABLE_CHECKS TRUE #ifndef CH_DBG_ENABLE_CHECKS
#define CH_DBG_ENABLE_CHECKS FALSE
#endif
/** /**
* @brief Debug option, consistency checks. * @brief Debug option, consistency checks.
@ -359,7 +366,9 @@
* *
* @note The default is @p FALSE. * @note The default is @p FALSE.
*/ */
#define CH_DBG_ENABLE_ASSERTS TRUE #ifndef CH_DBG_ENABLE_ASSERTS
#define CH_DBG_ENABLE_ASSERTS FALSE
#endif
/** /**
* @brief Debug option, trace buffer. * @brief Debug option, trace buffer.
@ -386,7 +395,9 @@
* @note The default failure mode is to halt the system with the global * @note The default failure mode is to halt the system with the global
* @p panic_msg variable set to @p NULL. * @p panic_msg variable set to @p NULL.
*/ */
#define CH_DBG_ENABLE_STACK_CHECK TRUE #ifndef CH_DBG_ENABLE_STACK_CHECK
#define CH_DBG_ENABLE_STACK_CHECK FALSE
#endif
/** /**
* @brief Debug option, stacks initialization. * @brief Debug option, stacks initialization.

Loading…
Cancel
Save