diff options
Diffstat (limited to 'testhal/STM32/STM32F0xx/qei/chconf.h')
| -rw-r--r-- | testhal/STM32/STM32F0xx/qei/chconf.h | 107 | 
1 files changed, 97 insertions, 10 deletions
diff --git a/testhal/STM32/STM32F0xx/qei/chconf.h b/testhal/STM32/STM32F0xx/qei/chconf.h index b3260d4..53bd676 100644 --- a/testhal/STM32/STM32F0xx/qei/chconf.h +++ b/testhal/STM32/STM32F0xx/qei/chconf.h @@ -1,5 +1,5 @@  /*
 -    ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
 +    ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
 @@ -42,7 +42,7 @@   * @brief   System time counter resolution.
   * @note    Allowed values are 16 or 32 bits.
   */
 -#define CH_CFG_ST_RESOLUTION                16
 +#define CH_CFG_ST_RESOLUTION                32
  /**
   * @brief   System tick frequency.
 @@ -52,6 +52,18 @@  #define CH_CFG_ST_FREQUENCY                 10000
  /**
 + * @brief   Time intervals data size.
 + * @note    Allowed values are 16, 32 or 64 bits.
 + */
 +#define CH_CFG_INTERVALS_SIZE               32
 +
 +/**
 + * @brief   Time types data size.
 + * @note    Allowed values are 16 or 32 bits.
 + */
 +#define CH_CFG_TIME_TYPES_SIZE              32
 +
 +/**
   * @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
 @@ -296,6 +308,15 @@  #define CH_CFG_USE_MEMPOOLS                 TRUE
  /**
 + * @brief  Objects FIFOs APIs.
 + * @details If enabled then the objects FIFOs APIs are included
 + *          in the kernel.
 + *
 + * @note    The default is @p TRUE.
 + */
 +#define CH_CFG_USE_OBJ_FIFOS                TRUE
 +
 +/**
   * @brief   Dynamic Threads APIs.
   * @details If enabled then the dynamic threads creation APIs are included
   *          in the kernel.
 @@ -310,6 +331,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                  TRUE
 +
 +/**
 + * @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
   * @{
   */
 @@ -329,7 +400,7 @@   *
   * @note    The default is @p FALSE.
   */
 -#define CH_DBG_SYSTEM_STATE_CHECK           FALSE
 +#define CH_DBG_SYSTEM_STATE_CHECK           TRUE
  /**
   * @brief   Debug option, parameters checks.
 @@ -338,7 +409,7 @@   *
   * @note    The default is @p FALSE.
   */
 -#define CH_DBG_ENABLE_CHECKS                FALSE
 +#define CH_DBG_ENABLE_CHECKS                TRUE
  /**
   * @brief   Debug option, consistency checks.
 @@ -348,7 +419,7 @@   *
   * @note    The default is @p FALSE.
   */
 -#define CH_DBG_ENABLE_ASSERTS               FALSE
 +#define CH_DBG_ENABLE_ASSERTS               TRUE
  /**
   * @brief   Debug option, trace buffer.
 @@ -356,7 +427,7 @@   *
   * @note    The default is @p CH_DBG_TRACE_MASK_DISABLED.
   */
 -#define CH_DBG_TRACE_MASK                   CH_DBG_TRACE_MASK_DISABLED
 +#define CH_DBG_TRACE_MASK                   CH_DBG_TRACE_MASK_ALL
  /**
   * @brief   Trace buffer entries.
 @@ -375,7 +446,7 @@   * @note    The default failure mode is to halt the system with the global
   *          @p panic_msg variable set to @p NULL.
   */
 -#define CH_DBG_ENABLE_STACK_CHECK           FALSE
 +#define CH_DBG_ENABLE_STACK_CHECK           TRUE
  /**
   * @brief   Debug option, stacks initialization.
 @@ -385,7 +456,7 @@   *
   * @note    The default is @p FALSE.
   */
 -#define CH_DBG_FILL_THREADS                 FALSE
 +#define CH_DBG_FILL_THREADS                 TRUE
  /**
   * @brief   Debug option, threads profiling.
 @@ -408,6 +479,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.
   */
 @@ -416,9 +503,9 @@  /**
   * @brief   Threads initialization hook.
 - * @details User initialization code added to the @p chThdInit() API.
 + * @details User initialization code added to the @p _thread_init() function.
   *
 - * @note    It is invoked from within @p chThdInit() and implicitly from all
 + * @note    It is invoked from within @p _thread_init() and implicitly from all
   *          the threads creation APIs.
   */
  #define CH_CFG_THREAD_INIT_HOOK(tp) {                                       \
  | 
