amiro-os / os / modules / DiWheelDrive_1-1 / chconf.h @ 043cdf33
History | View | Annotate | Download (2.744 KB)
| 1 | 
      /*
     | 
  
|---|---|
| 2 | 
      AMiRo-OS is an operating system designed for the Autonomous Mini Robot (AMiRo) platform.
     | 
  
| 3 | 
      Copyright (C) 2016..2018  Thomas Schöpping et al.
     | 
  
| 4 | 
       | 
  
| 5 | 
      This program is free software: you can redistribute it and/or modify
     | 
  
| 6 | 
      it under the terms of the GNU General Public License as published by
     | 
  
| 7 | 
      the Free Software Foundation, either version 3 of the License, or
     | 
  
| 8 | 
      (at your option) any later version.
     | 
  
| 9 | 
       | 
  
| 10 | 
      This program is distributed in the hope that it will be useful,
     | 
  
| 11 | 
      but WITHOUT ANY WARRANTY; without even the implied warranty of
     | 
  
| 12 | 
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     | 
  
| 13 | 
      GNU General Public License for more details.
     | 
  
| 14 | 
       | 
  
| 15 | 
      You should have received a copy of the GNU General Public License
     | 
  
| 16 | 
      along with this program.  If not, see <http://www.gnu.org/licenses/>.
     | 
  
| 17 | 
      */
     | 
  
| 18 | 
       | 
  
| 19 | 
      /**
     | 
  
| 20 | 
       * @file    os/modules/DiWheelDrive/chconf.h
     | 
  
| 21 | 
       * @brief   ChibiOS Configuration file for the DiWheelDrive v1.1 module.
     | 
  
| 22 | 
       * @details Contains the application specific kernel settings.
     | 
  
| 23 | 
       *
     | 
  
| 24 | 
       * @addtogroup config
     | 
  
| 25 | 
       * @details Kernel related settings and hooks.
     | 
  
| 26 | 
       * @{
     | 
  
| 27 | 
       */
     | 
  
| 28 | 
       | 
  
| 29 | 
      #ifndef _CHCONF_H_
     | 
  
| 30 | 
      #define _CHCONF_H_
     | 
  
| 31 | 
       | 
  
| 32 | 
      #include <aosconf.h>  | 
  
| 33 | 
       | 
  
| 34 | 
      /*===========================================================================*/
     | 
  
| 35 | 
      /**
     | 
  
| 36 | 
       * @name System timers settings
     | 
  
| 37 | 
       * @{
     | 
  
| 38 | 
       */
     | 
  
| 39 | 
      /*===========================================================================*/
     | 
  
| 40 | 
       | 
  
| 41 | 
      /**
     | 
  
| 42 | 
       * @brief   System time counter resolution.
     | 
  
| 43 | 
       * @note    Allowed values are 16 or 32 bits.
     | 
  
| 44 | 
       */
     | 
  
| 45 | 
      #define CH_CFG_ST_RESOLUTION 16  | 
  
| 46 | 
       | 
  
| 47 | 
      /**
     | 
  
| 48 | 
       * @brief   System tick frequency.
     | 
  
| 49 | 
       * @details Frequency of the system timer that drives the system ticks. This
     | 
  
| 50 | 
       *          setting also defines the system tick time unit.
     | 
  
| 51 | 
       */
     | 
  
| 52 | 
      #if (AMIROOS_CFG_TESTS_ENABLE != true) || defined(__DOXYGEN__)  | 
  
| 53 | 
      #define CH_CFG_ST_FREQUENCY 1000000UL  | 
  
| 54 | 
      #else
     | 
  
| 55 | 
      #define CH_CFG_ST_FREQUENCY 100000UL  | 
  
| 56 | 
      #endif
     | 
  
| 57 | 
       | 
  
| 58 | 
      /**
     | 
  
| 59 | 
       * @brief   Time delta constant for the tick-less mode.
     | 
  
| 60 | 
       * @note    If this value is zero then the system uses the classic
     | 
  
| 61 | 
       *          periodic tick. This value represents the minimum number
     | 
  
| 62 | 
       *          of ticks that is safe to specify in a timeout directive.
     | 
  
| 63 | 
       *          The value one is not valid, timeouts are rounded up to
     | 
  
| 64 | 
       *          this value.
     | 
  
| 65 | 
       */
     | 
  
| 66 | 
      #if (AMIROOS_CFG_TESTS_ENABLE != true) || defined(__DOXYGEN__)  | 
  
| 67 | 
      #define CH_CFG_ST_TIMEDELTA 10  | 
  
| 68 | 
      #else
     | 
  
| 69 | 
      #define CH_CFG_ST_TIMEDELTA 2  | 
  
| 70 | 
      #endif
     | 
  
| 71 | 
       | 
  
| 72 | 
      /** @} */
     | 
  
| 73 | 
       | 
  
| 74 | 
      /*===========================================================================*/
     | 
  
| 75 | 
      /**
     | 
  
| 76 | 
       * @name Port specific settings
     | 
  
| 77 | 
       * @{
     | 
  
| 78 | 
       */
     | 
  
| 79 | 
      /*===========================================================================*/
     | 
  
| 80 | 
       | 
  
| 81 | 
      /**
     | 
  
| 82 | 
       * @brief   NVIC VTOR initialization offset.
     | 
  
| 83 | 
       * @details On initialization, the code at this address in the flash memory will be executed.
     | 
  
| 84 | 
       */
     | 
  
| 85 | 
      #define CORTEX_VTOR_INIT 0x00006000U  | 
  
| 86 | 
       | 
  
| 87 | 
      /** @} */
     | 
  
| 88 | 
       | 
  
| 89 | 
      #include <aos_chconf.h>  | 
  
| 90 | 
       | 
  
| 91 | 
      #endif /* _CHCONF_H_ */  | 
  
| 92 | 
       | 
  
| 93 | 
      /** @} */
     |