amiro-lld / templates / alldconf.h @ 6ef38c23
History | View | Annotate | Download (1.63 KB)
1 |
/*
|
---|---|
2 |
AMiRo-LLD is a compilation of low-level hardware drivers for the Autonomous Mini Robot (AMiRo) platform.
|
3 |
Copyright (C) 2016..2019 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 Lesser 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 Lesser General Public License for more details.
|
14 |
|
15 |
You should have received a copy of the GNU Lesser General Public License
|
16 |
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17 |
*/
|
18 |
|
19 |
#ifndef ALLDCONF_H
|
20 |
#define ALLDCONF_H
|
21 |
|
22 |
/*
|
23 |
* compatibility guards
|
24 |
*/
|
25 |
#define _AMIRO_LLD_CFG_
|
26 |
#define AMIRO_LLD_CFG_VERSION_MAJOR 1 |
27 |
#define AMIRO_LLD_CFG_VERSION_MINOR 0 |
28 |
|
29 |
/**
|
30 |
* @brief Width of the apalTime_t data type.
|
31 |
*
|
32 |
* @details Possible values are 8, 16, 32, and 64 bits.
|
33 |
* By definition time is represented ot a microsecond precision.
|
34 |
*/
|
35 |
#define AMIROLLD_CFG_TIME_SIZE 32 |
36 |
|
37 |
/**
|
38 |
* @brief Enable flag for a driver <driver_name> version <version>.
|
39 |
* @details Use multiple such enable flags to activate drivers as required.
|
40 |
* Replace <driver_name> accordingly and set its value to the desired
|
41 |
* version of the driver (e.g. use '#define AMIROLLD_CFG_USE_A3906 2'
|
42 |
* in order to enable the A3906 motor driver version 2).
|
43 |
*/
|
44 |
#define AMIROLLD_CFG_USE_<driver_name> <version>
|
45 |
|
46 |
#endif /* ALLDCONF_H */ |