amiro-os / modules / LightRing_1-0 / chconf.h @ 4f3a1f5e
History | View | Annotate | Download (2.738 KB)
1 | e545e620 | Thomas Schöpping | /*
|
---|---|---|---|
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 | 3f899f5d | Thomas Schöpping | /**
|
20 | e545e620 | Thomas Schöpping | * @file os/modules/LightRing/chconf.h
|
21 | 043cdf33 | Thomas Schöpping | * @brief ChibiOS Configuration file for the LightRing v1.0 module.
|
22 | e545e620 | Thomas Schöpping | * @details Contains the application specific kernel settings.
|
23 | 3f899f5d | Thomas Schöpping | *
|
24 | * @addtogroup config
|
||
25 | * @details Kernel related settings and hooks.
|
||
26 | * @{
|
||
27 | */
|
||
28 | |||
29 | 58fe0e0b | Thomas Schöpping | #ifndef _CHCONF_H_
|
30 | #define _CHCONF_H_
|
||
31 | |||
32 | e545e620 | Thomas Schöpping | #include <aosconf.h> |
33 | |||
34 | 58fe0e0b | Thomas Schöpping | /*===========================================================================*/
|
35 | /**
|
||
36 | e545e620 | Thomas Schöpping | * @name System timers settings
|
37 | 58fe0e0b | Thomas Schöpping | * @{
|
38 | */
|
||
39 | /*===========================================================================*/
|
||
40 | |||
41 | /**
|
||
42 | e545e620 | Thomas Schöpping | * @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 | 58fe0e0b | Thomas Schöpping | * @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 | e545e620 | Thomas Schöpping | #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 | 58fe0e0b | Thomas Schöpping | #endif
|
57 | |||
58 | /**
|
||
59 | e545e620 | Thomas Schöpping | * @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 | 58fe0e0b | Thomas Schöpping | |
87 | /** @} */
|
||
88 | |||
89 | 043cdf33 | Thomas Schöpping | #include <aos_chconf.h> |
90 | 58fe0e0b | Thomas Schöpping | |
91 | #endif /* _CHCONF_H_ */ |
||
92 | 3f899f5d | Thomas Schöpping | |
93 | /** @} */ |