diff options
Diffstat (limited to 'testhal/STM32/STM32F0xx/onewire/chconf.h')
| -rw-r--r-- | testhal/STM32/STM32F0xx/onewire/chconf.h | 97 | 
1 files changed, 92 insertions, 5 deletions
diff --git a/testhal/STM32/STM32F0xx/onewire/chconf.h b/testhal/STM32/STM32F0xx/onewire/chconf.h index 4b2d922..9339775 100644 --- a/testhal/STM32/STM32F0xx/onewire/chconf.h +++ b/testhal/STM32/STM32F0xx/onewire/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,14 +42,26 @@   * @brief   System time counter resolution.
   * @note    Allowed values are 16 or 32 bits.
   */
 -#define CH_CFG_ST_RESOLUTION                32
 +#define CH_CFG_ST_RESOLUTION                16
  /**
   * @brief   System tick frequency.
   * @details Frequency of the system timer that drives the system ticks. This
   *          setting also defines the system tick time unit.
   */
 -#define CH_CFG_ST_FREQUENCY                 1000
 +#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               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.
 @@ -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
   * @{
   */
 @@ -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) {                                       \
  | 
