amiro-os / modules / LightRing_1-0 / chconf.h @ 0c28913b
History | View | Annotate | Download (4.286 KB)
1 | 0128be0f | Marc Rothmann | /*
|
---|---|---|---|
2 | * AMiRo-OS is an operating system designed for the Autonomous Mini Robot (AMiRo) platform.
|
||
3 | 96621a83 | Thomas Schöpping | * Copyright (C) 2016..2020 Thomas Schöpping et al.
|
4 | 0128be0f | Marc Rothmann | *
|
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 | 4d8d8663 | Thomas Schöpping | * @file
|
21 | 53710ca3 | Marc Rothmann | * @brief ChibiOS Configuration file for the LightRing v1.0 module.
|
22 | 0128be0f | Marc Rothmann | * @details Contains the application specific kernel settings.
|
23 | *
|
||
24 | 53710ca3 | Marc Rothmann | * @addtogroup lightring_ch_config
|
25 | 0128be0f | Marc Rothmann | * @details Kernel related settings and hooks.
|
26 | * @{
|
||
27 | */
|
||
28 | |||
29 | #ifndef CHCONF_H
|
||
30 | #define CHCONF_H
|
||
31 | |||
32 | 1e5f7648 | Thomas Schöpping | #include <aosconf.h> |
33 | |||
34 | 0128be0f | Marc Rothmann | /*===========================================================================*/
|
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 | #if !defined(CH_CFG_ST_RESOLUTION)
|
||
46 | fa64dbd6 | Thomas Schöpping | #define CH_CFG_ST_RESOLUTION 16 |
47 | 0128be0f | Marc Rothmann | #endif
|
48 | |||
49 | 91bdafd4 | Thomas Schöpping | /**
|
50 | * @brief Time delta constant for the tick-less mode.
|
||
51 | * @note If this value is zero then the system uses the classic
|
||
52 | * periodic tick. This value represents the minimum number
|
||
53 | * of ticks that is safe to specify in a timeout directive.
|
||
54 | * The value one is not valid, timeouts are rounded up to
|
||
55 | * this value.
|
||
56 | */
|
||
57 | #if !defined(CH_CFG_ST_TIMEDELTA)
|
||
58 | #define CH_CFG_ST_TIMEDELTA 50 |
||
59 | #endif
|
||
60 | |||
61 | // more common definitions in aos_chconf.h
|
||
62 | 0128be0f | Marc Rothmann | |
63 | /** @} */
|
||
64 | |||
65 | /*===========================================================================*/
|
||
66 | /**
|
||
67 | * @name Kernel parameters and options
|
||
68 | * @{
|
||
69 | */
|
||
70 | /*===========================================================================*/
|
||
71 | |||
72 | 1e5f7648 | Thomas Schöpping | // common definitions in aos_chconf.h
|
73 | 0128be0f | Marc Rothmann | |
74 | /** @} */
|
||
75 | |||
76 | /*===========================================================================*/
|
||
77 | /**
|
||
78 | * @name Performance options
|
||
79 | * @{
|
||
80 | */
|
||
81 | /*===========================================================================*/
|
||
82 | |||
83 | 1e5f7648 | Thomas Schöpping | // common definitions in aos_chconf.h
|
84 | 0128be0f | Marc Rothmann | |
85 | /** @} */
|
||
86 | |||
87 | /*===========================================================================*/
|
||
88 | /**
|
||
89 | * @name Subsystem options
|
||
90 | * @{
|
||
91 | */
|
||
92 | /*===========================================================================*/
|
||
93 | |||
94 | 1e5f7648 | Thomas Schöpping | // common definitions in aos_chconf.h
|
95 | 0128be0f | Marc Rothmann | |
96 | /** @} */
|
||
97 | |||
98 | /*===========================================================================*/
|
||
99 | /**
|
||
100 | * @name Objects factory options
|
||
101 | * @{
|
||
102 | */
|
||
103 | /*===========================================================================*/
|
||
104 | |||
105 | 1e5f7648 | Thomas Schöpping | // common definitions in aos_chconf.h
|
106 | 0128be0f | Marc Rothmann | |
107 | /** @} */
|
||
108 | |||
109 | /*===========================================================================*/
|
||
110 | /**
|
||
111 | * @name Debug options
|
||
112 | * @{
|
||
113 | */
|
||
114 | /*===========================================================================*/
|
||
115 | |||
116 | 1e5f7648 | Thomas Schöpping | // common definitions in aos_chconf.h
|
117 | 0128be0f | Marc Rothmann | |
118 | /** @} */
|
||
119 | |||
120 | /*===========================================================================*/
|
||
121 | /**
|
||
122 | * @name Kernel hooks
|
||
123 | * @{
|
||
124 | */
|
||
125 | /*===========================================================================*/
|
||
126 | |||
127 | 1e5f7648 | Thomas Schöpping | // common definitions in aos_chconf.h
|
128 | 0128be0f | Marc Rothmann | |
129 | 1e5f7648 | Thomas Schöpping | /** @} */
|
130 | 0128be0f | Marc Rothmann | |
131 | 1e5f7648 | Thomas Schöpping | /*===========================================================================*/
|
132 | 0128be0f | Marc Rothmann | /**
|
133 | 1e5f7648 | Thomas Schöpping | * @name Port-specific settings (override port settings defaulted in chcore.h).
|
134 | * @{
|
||
135 | 0128be0f | Marc Rothmann | */
|
136 | 1e5f7648 | Thomas Schöpping | /*===========================================================================*/
|
137 | 0128be0f | Marc Rothmann | |
138 | /**
|
||
139 | 732a4657 | Thomas Schöpping | * @brief Flag to enable/disable sleep mode when the system is idle.
|
140 | */
|
||
141 | #define CORTEX_ENABLE_WFI_IDLE TRUE
|
||
142 | |||
143 | 1e5f7648 | Thomas Schöpping | /** @} */
|
144 | 0128be0f | Marc Rothmann | |
145 | 1e5f7648 | Thomas Schöpping | /*===========================================================================*/
|
146 | 0128be0f | Marc Rothmann | /**
|
147 | 1e5f7648 | Thomas Schöpping | * @name other
|
148 | * @{
|
||
149 | 0128be0f | Marc Rothmann | */
|
150 | 1e5f7648 | Thomas Schöpping | /*===========================================================================*/
|
151 | 0128be0f | Marc Rothmann | |
152 | 1e5f7648 | Thomas Schöpping | // common definitions in aos_chconf.h
|
153 | 0128be0f | Marc Rothmann | |
154 | /** @} */
|
||
155 | |||
156 | 1e5f7648 | Thomas Schöpping | #include <aos_chconf.h> |
157 | 0128be0f | Marc Rothmann | |
158 | #endif /* CHCONF_H */ |
||
159 | |||
160 | /** @} */
|