diff options
author | Theodore Ateba <tf.ateba@gmail.com> | 2017-12-20 20:29:56 +0000 |
---|---|---|
committer | Theodore Ateba <tf.ateba@gmail.com> | 2017-12-20 20:29:56 +0000 |
commit | 75d472f580b00e9d616b493929e100b6cad8dc9d (patch) | |
tree | e3112acaf526e9c18268b7059dde7cbf0d4f352d /demos/AVR/RT-PRO-MICRO | |
parent | 1f207578bdba8cd4358ec3e1e3b8e6a68730f18c (diff) | |
download | ChibiOS-75d472f580b00e9d616b493929e100b6cad8dc9d.tar.gz ChibiOS-75d472f580b00e9d616b493929e100b6cad8dc9d.tar.bz2 ChibiOS-75d472f580b00e9d616b493929e100b6cad8dc9d.zip |
AVR: Update all configuration files of RT demos to avoid the error CH_DBG_TRACE_MASK not defined in chconf.h
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11153 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/AVR/RT-PRO-MICRO')
-rw-r--r-- | demos/AVR/RT-PRO-MICRO/chconf.h | 90 |
1 files changed, 88 insertions, 2 deletions
diff --git a/demos/AVR/RT-PRO-MICRO/chconf.h b/demos/AVR/RT-PRO-MICRO/chconf.h index 17cc3b838..564e272f8 100644 --- a/demos/AVR/RT-PRO-MICRO/chconf.h +++ b/demos/AVR/RT-PRO-MICRO/chconf.h @@ -52,6 +52,18 @@ #define CH_CFG_ST_FREQUENCY 15624 /** + * @brief Time intervals data size. + * @note Allowed values are 16, 32 or 64 bits. + */ +#define CH_CFG_INTERVALS_SIZE 16 + +/** + * @brief Time types data size. + * @note Allowed values are 16 or 32 bits. + */ +#define CH_CFG_TIME_TYPES_SIZE 16 + +/** * @brief Time delta constant for the tick-less mode. * @note If this value is zero then the system uses the classic * periodic tick. This value represents the minimum number @@ -322,6 +334,56 @@ /*===========================================================================*/ /** + * @name Objects factory options + * @{ + */ +/*===========================================================================*/ + +/** + * @brief Objects Factory APIs. + * @details If enabled then the objects factory APIs are included in the + * kernel. + * + * @note The default is @p FALSE. + */ +#define CH_CFG_USE_FACTORY FALSE + +/** + * @brief Maximum length for object names. + * @details If the specified length is zero then the name is stored by + * pointer but this could have unintended side effects. + */ +#define CH_CFG_FACTORY_MAX_NAMES_LENGTH 8 + +/** + * @brief Enables the registry of generic objects. + */ +#define CH_CFG_FACTORY_OBJECTS_REGISTRY TRUE + +/** + * @brief Enables factory for generic buffers. + */ +#define CH_CFG_FACTORY_GENERIC_BUFFERS TRUE + +/** + * @brief Enables factory for semaphores. + */ +#define CH_CFG_FACTORY_SEMAPHORES TRUE + +/** + * @brief Enables factory for mailboxes. + */ +#define CH_CFG_FACTORY_MAILBOXES TRUE + +/** + * @brief Enables factory for objects FIFOs. + */ +#define CH_CFG_FACTORY_OBJ_FIFOS TRUE + +/** @} */ + +/*===========================================================================*/ +/** * @name Debug options * @{ */ @@ -366,6 +428,14 @@ * @brief Debug option, trace buffer. * @details If enabled then the trace buffer is activated. * + * @note The default is @p CH_DBG_TRACE_MASK_DISABLED. + */ +#define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED + +/** + * @brief Debug option, trace buffer. + * @details If enabled then the trace buffer is activated. + * * @note The default is @p FALSE. */ #define CH_DBG_ENABLE_TRACE CH_DBG_TRACE_MASK_DISABLED @@ -420,6 +490,22 @@ /*===========================================================================*/ /** + * @brief System structure extension. + * @details User fields added to the end of the @p ch_system_t structure. + */ +#define CH_CFG_SYSTEM_EXTRA_FIELDS \ + /* Add threads custom fields here.*/ + +/** + * @brief System initialization hook. + * @details User initialization code added to the @p chSysInit() function + * just before interrupts are enabled globally. + */ +#define CH_CFG_SYSTEM_INIT_HOOK(tp) { \ + /* Add threads initialization code here.*/ \ +} + +/** * @brief Threads descriptor structure extension. * @details User fields added to the end of the @p thread_t structure. */ @@ -428,9 +514,9 @@ /** * @brief Threads initialization hook. - * @details User initialization code added to the @p _thread_init() function. + * @details User initialization code added to the @p chThdInit() API. * - * @note It is invoked from within @p _thread_init() and implicitly from all + * @note It is invoked from within @p chThdInit() and implicitly from all * the threads creation APIs. */ #define CH_CFG_THREAD_INIT_HOOK(tp) { \ |