From 98ef475714df436553966f278e472b8e593401c5 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 28 Feb 2016 09:03:32 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8979 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32/STM32L4xx/CAN/chconf.h | 44 ++++++------------------------------ 1 file changed, 7 insertions(+), 37 deletions(-) (limited to 'testhal/STM32/STM32L4xx/CAN/chconf.h') diff --git a/testhal/STM32/STM32L4xx/CAN/chconf.h b/testhal/STM32/STM32L4xx/CAN/chconf.h index edd657ac1..405149b3b 100644 --- a/testhal/STM32/STM32L4xx/CAN/chconf.h +++ b/testhal/STM32/STM32L4xx/CAN/chconf.h @@ -28,8 +28,6 @@ #ifndef _CHCONF_H_ #define _CHCONF_H_ -#define _CHIBIOS_RT_CONF_ - /*===========================================================================*/ /** * @name System timers settings @@ -327,7 +325,7 @@ * * @note The default is @p FALSE. */ -#define CH_DBG_STATISTICS FALSE +#define CH_DBG_STATISTICS TRUE /** * @brief Debug option, system state check. @@ -362,16 +360,9 @@ * @details If enabled then the context switch circular trace buffer is * activated. * - * @note The default is @p CH_DBG_TRACE_MASK_NONE. - */ -#define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_ALL - -/** - * @brief Trace buffer entries. - * @note The trace buffer is only allocated if @p CH_DBG_TRACE_MASK is - * different from @p CH_DBG_TRACE_MASK_NONE. + * @note The default is @p FALSE. */ -#define CH_DBG_TRACE_BUFFER_SIZE 128 +#define CH_DBG_ENABLE_TRACE TRUE /** * @brief Debug option, stack checks. @@ -436,6 +427,10 @@ /** * @brief Threads finalization hook. * @details User finalization code added to the @p chThdExit() API. + * + * @note It is inserted into lock zone. + * @note It is also invoked when the threads simply return in order to + * terminate. */ #define CH_CFG_THREAD_EXIT_HOOK(tp) { \ /* Add threads finalization code here.*/ \ @@ -449,20 +444,6 @@ /* Context switch code here.*/ \ } -/** - * @brief ISR enter hook. - */ -#define CH_CFG_IRQ_PROLOGUE_HOOK() { \ - /* IRQ prologue code here.*/ \ -} - -/** - * @brief ISR exit hook. - */ -#define CH_CFG_IRQ_EPILOGUE_HOOK() { \ - /* IRQ epilogue code here.*/ \ -} - /** * @brief Idle thread enter hook. * @note This hook is invoked within a critical zone, no OS functions @@ -470,7 +451,6 @@ * @note This macro can be used to activate a power saving mode. */ #define CH_CFG_IDLE_ENTER_HOOK() { \ - /* Idle-enter code here.*/ \ } /** @@ -480,7 +460,6 @@ * @note This macro can be used to deactivate a power saving mode. */ #define CH_CFG_IDLE_LEAVE_HOOK() { \ - /* Idle-leave code here.*/ \ } /** @@ -509,15 +488,6 @@ /* System halt code here.*/ \ } -/** - * @brief Trace hook. - * @details This hook is invoked each time a new record is written in the - * trace buffer. - */ -#define CH_CFG_TRACE_HOOK(tep) { \ - /* Trace code here.*/ \ -} - /** @} */ /*===========================================================================*/ -- cgit v1.2.3