amiro-os / modules / aos_alldconf.h @ 23ec8223
History | View | Annotate | Download (2.924 KB)
1 | dd56d656 | Thomas Schöpping | /*
|
---|---|---|---|
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 | dd56d656 | Thomas Schöpping | |
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
|
||
21 | * @brief Common AMiRo-LLD configuration file for all modules.
|
||
22 | * @details Contains common AMiRo-LLD settings.
|
||
23 | * @{
|
||
24 | */
|
||
25 | |||
26 | #ifndef AOS_ALLDCONF_H
|
||
27 | #define AOS_ALLDCONF_H
|
||
28 | |||
29 | #define _AMIRO_LLD_CFG_
|
||
30 | #define AMIRO_LLD_CFG_VERSION_MAJOR 1 |
||
31 | #define AMIRO_LLD_CFG_VERSION_MINOR 1 |
||
32 | |||
33 | #include <aosconf.h> |
||
34 | #include <hal.h> |
||
35 | |||
36 | /**
|
||
37 | * @brief Width of the apalTime_t data type.
|
||
38 | *
|
||
39 | * @details Possible values are 8, 16, 32, and 64 bits.
|
||
40 | * By definition time is represented at microsecond precision.
|
||
41 | */
|
||
42 | #if !defined(AMIROLLD_CFG_TIME_SIZE)
|
||
43 | #define AMIROLLD_CFG_TIME_SIZE 32 |
||
44 | #endif
|
||
45 | |||
46 | /**
|
||
47 | * @brief Flag to enable/disable DBG API.
|
||
48 | */
|
||
49 | #if !defined(AMIROLLD_CFG_DBG)
|
||
50 | #define AMIROLLD_CFG_DBG AMIROOS_CFG_DBG
|
||
51 | #endif
|
||
52 | |||
53 | /**
|
||
54 | * @brief Flag to enable/disable GPIO API.
|
||
55 | */
|
||
56 | #if !defined(AMIROLLD_CFG_GPIO)
|
||
57 | #if (HAL_USE_PAL == TRUE)
|
||
58 | #define AMIROLLD_CFG_GPIO true |
||
59 | #else
|
||
60 | #define AMIROLLD_CFG_GPIO false |
||
61 | #endif
|
||
62 | #endif
|
||
63 | |||
64 | /**
|
||
65 | * @brief Flag to enable/disable PWM API.
|
||
66 | */
|
||
67 | #if !defined(AMIROLLD_CFG_PWM)
|
||
68 | #if (HAL_USE_PWM == TRUE)
|
||
69 | #define AMIROLLD_CFG_PWM true |
||
70 | #else
|
||
71 | #define AMIROLLD_CFG_PWM false |
||
72 | #endif
|
||
73 | #endif
|
||
74 | |||
75 | /**
|
||
76 | * @brief Flag to enable/disable QEI API.
|
||
77 | */
|
||
78 | #if !defined(AMIROLLD_CFG_QEI)
|
||
79 | #if (HAL_USE_QEI == TRUE)
|
||
80 | #define AMIROLLD_CFG_QEI true |
||
81 | #else
|
||
82 | #define AMIROLLD_CFG_QEI false |
||
83 | #endif
|
||
84 | #endif
|
||
85 | |||
86 | /**
|
||
87 | * @brief Flag to enable/disable I2C API.
|
||
88 | */
|
||
89 | #if !defined(AMIROLLD_CFG_I2C)
|
||
90 | #if (HAL_USE_I2C == TRUE)
|
||
91 | #define AMIROLLD_CFG_I2C true |
||
92 | #else
|
||
93 | #define AMIROLLD_CFG_I2C false |
||
94 | #endif
|
||
95 | #endif
|
||
96 | |||
97 | /**
|
||
98 | * @brief Flag to enable/disable SPI API.
|
||
99 | */
|
||
100 | #if !defined(AMIROLLD_CFG_SPI)
|
||
101 | #if (HAL_USE_SPI == TRUE)
|
||
102 | #define AMIROLLD_CFG_SPI true |
||
103 | #else
|
||
104 | #define AMIROLLD_CFG_SPI false |
||
105 | #endif
|
||
106 | #endif
|
||
107 | |||
108 | /**
|
||
109 | * @brief Hook macro to insert a custom header to periphAL.h file.
|
||
110 | */
|
||
111 | #if !defined(AMIROLLD_CFG_PERIPHAL_HEADER)
|
||
112 | #define AMIROLLD_CFG_PERIPHAL_HEADER <aos_periphAL.h>
|
||
113 | #endif
|
||
114 | |||
115 | #endif /* AOS_ALLDCONF_H */ |
||
116 | |||
117 | /** @} */ |