diff options
| author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-08-11 17:51:37 +0000 | 
|---|---|---|
| committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-08-11 17:51:37 +0000 | 
| commit | b9933c2089f5f0cd93738ae9081c45fcf3df54b7 (patch) | |
| tree | c98941094d7d03cb42ffc46d258bccc0ffba4ca0 /testhal/STM8S/SPI/demo | |
| parent | 50a41618beccf297631423b10aba8daa3be1e901 (diff) | |
| download | ChibiOS-b9933c2089f5f0cd93738ae9081c45fcf3df54b7.tar.gz ChibiOS-b9933c2089f5f0cd93738ae9081c45fcf3df54b7.tar.bz2 ChibiOS-b9933c2089f5f0cd93738ae9081c45fcf3df54b7.zip | |
Implemented system state checker debug option, remove the option CH_USE_NESTED_LOCKS. Documentation improvements and fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3221 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM8S/SPI/demo')
| -rw-r--r-- | testhal/STM8S/SPI/demo/chconf.h | 69 | 
1 files changed, 45 insertions, 24 deletions
| diff --git a/testhal/STM8S/SPI/demo/chconf.h b/testhal/STM8S/SPI/demo/chconf.h index cd12e6e2b..6a365d96a 100644 --- a/testhal/STM8S/SPI/demo/chconf.h +++ b/testhal/STM8S/SPI/demo/chconf.h @@ -33,7 +33,10 @@  #define _CHCONF_H_
  /*===========================================================================*/
 -/* Kernel parameters.                                                        */
 +/**
 + * @name Kernel parameters and options
 + * @{
 + */
  /*===========================================================================*/
  /**
 @@ -42,7 +45,7 @@   *          setting also defines the system tick time unit.
   */
  #if !defined(CH_FREQUENCY) || defined(__DOXYGEN__)
 -#define CH_FREQUENCY                    100
 +#define CH_FREQUENCY                    1000
  #endif
  /**
 @@ -57,22 +60,7 @@   *          and generally faster.
   */
  #if !defined(CH_TIME_QUANTUM) || defined(__DOXYGEN__)
 -#define CH_TIME_QUANTUM                 10
 -#endif
 -
 -/**
 - * @brief   Nested locks.
 - * @details If enabled then the use of nested @p chSysLock() / @p chSysUnlock()
 - *          operations is allowed.<br>
 - *          For performance and code size reasons the recommended setting
 - *          is to leave this option disabled.<br>
 - *          You may use this option if you need to merge ChibiOS/RT with
 - *          external libraries that require nested lock/unlock operations.
 - *
 - * @note    The default is @p FALSE.
 - */
 -#if !defined(CH_USE_NESTED_LOCKS) || defined(__DOXYGEN__)
 -#define CH_USE_NESTED_LOCKS             FALSE
 +#define CH_TIME_QUANTUM                 20
  #endif
  /**
 @@ -87,7 +75,7 @@   * @note    Requires @p CH_USE_MEMCORE.
   */
  #if !defined(CH_MEMCORE_SIZE) || defined(__DOXYGEN__)
 -#define CH_MEMCORE_SIZE                 128
 +#define CH_MEMCORE_SIZE                 0
  #endif
  /**
 @@ -107,8 +95,13 @@  #define CH_NO_IDLE_THREAD               FALSE
  #endif
 +/** @} */
 +
  /*===========================================================================*/
 -/* Performance options.                                                      */
 +/**
 + * @name Performance options
 + * @{
 + */
  /*===========================================================================*/
  /**
 @@ -120,11 +113,16 @@   * @note    The default is @p TRUE.
   */
  #if !defined(CH_OPTIMIZE_SPEED) || defined(__DOXYGEN__)
 -#define CH_OPTIMIZE_SPEED               FALSE
 +#define CH_OPTIMIZE_SPEED               TRUE
  #endif
 +/** @} */
 +
  /*===========================================================================*/
 -/* Subsystem options.                                                        */
 +/**
 + * @name Subsystem options
 + * @{
 + */
  /*===========================================================================*/
  /**
 @@ -346,11 +344,27 @@  #define CH_USE_DYNAMIC                  TRUE
  #endif
 +/** @} */
 +
  /*===========================================================================*/
 -/* Debug options.                                                            */
 +/**
 + * @name Debug options
 + * @{
 + */
  /*===========================================================================*/
  /**
 + * @brief   Debug option, system state check.
 + * @details If enabled the correct call protocol for system APIs is checked
 + *          at runtime.
 + *
 + * @note    The default is @p FALSE.
 + */
 +#if !defined(CH_DBG_SYSTEM_STATE_CHECK) || defined(__DOXYGEN__)
 +#define CH_DBG_SYSTEM_STATE_CHECK       FALSE
 +#endif
 +
 +/**
   * @brief   Debug option, parameters checks.
   * @details If enabled then the checks on the API functions input
   *          parameters are activated.
 @@ -423,8 +437,13 @@  #define CH_DBG_THREADS_PROFILING        TRUE
  #endif
 +/** @} */
 +
  /*===========================================================================*/
 -/* Kernel hooks.                                                             */
 +/**
 + * @name Kernel hooks
 + * @{
 + */
  /*===========================================================================*/
  /**
 @@ -495,6 +514,8 @@  }
  #endif
 +/** @} */
 +
  /*===========================================================================*/
  /* Port-specific settings (override port settings defaulted in chcore.h).    */
  /*===========================================================================*/
 | 
