amiro-os / modules / PowerManagement_1-1 / alldconf.h @ b49ed442
History | View | Annotate | Download (3.768 KB)
1 | e545e620 | Thomas Schöpping | /*
|
---|---|---|---|
2 | AMiRo-OS is an operating system designed for the Autonomous Mini Robot (AMiRo) platform.
|
||
3 | 84f0ce9e | Thomas Schöpping | Copyright (C) 2016..2019 Thomas Schöpping et al.
|
4 | e545e620 | 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 | 53710ca3 | Marc Rothmann | /**
|
20 | 9ff01927 | Thomas Schöpping | * @file
|
21 | * @brief AMiRo-LLD configuration file for the PowerManagement v1.1 module.
|
||
22 | 53710ca3 | Marc Rothmann | * @details Contains the application specific AMiRo-LLD settings.
|
23 | *
|
||
24 | * @addtogroup powermanagement_lld_config
|
||
25 | * @{
|
||
26 | */
|
||
27 | |||
28 | 6ff06bbf | Thomas Schöpping | #ifndef ALLDCONF_H
|
29 | #define ALLDCONF_H
|
||
30 | e545e620 | Thomas Schöpping | |
31 | /*
|
||
32 | * compatibility guards
|
||
33 | */
|
||
34 | #define _AMIRO_LLD_CFG_
|
||
35 | 1f94ac64 | Thomas Schöpping | #define AMIRO_LLD_CFG_VERSION_MAJOR 1 |
36 | 3106e8cc | Thomas Schöpping | #define AMIRO_LLD_CFG_VERSION_MINOR 1 |
37 | e545e620 | Thomas Schöpping | |
38 | /**
|
||
39 | 1e5f7648 | Thomas Schöpping | * @brief Width of the apalTime_t data type.
|
40 | *
|
||
41 | * @details Possible values are 8, 16, 32, and 64 bits.
|
||
42 | 9ff01927 | Thomas Schöpping | * By definition time is represented at microsecond precision.
|
43 | 1e5f7648 | Thomas Schöpping | */
|
44 | 1f94ac64 | Thomas Schöpping | #define AMIROLLD_CFG_TIME_SIZE 32 |
45 | 1e5f7648 | Thomas Schöpping | |
46 | 8be006e0 | Thomas Schöpping | // required to differentiate between various sensor rings
|
47 | #include <board.h> |
||
48 | |||
49 | 1e5f7648 | Thomas Schöpping | /**
|
50 | e545e620 | Thomas Schöpping | * @brief Enable flag for the AT24C01BN-SH-B EEPROM.
|
51 | */
|
||
52 | 1f94ac64 | Thomas Schöpping | #define AMIROLLD_CFG_AT24C01B 1 |
53 | e545e620 | Thomas Schöpping | |
54 | /**
|
||
55 | * @brief Enable flag for the BQ24103A charger.
|
||
56 | */
|
||
57 | 1f94ac64 | Thomas Schöpping | #define AMIROLLD_CFG_BQ241xx 1 |
58 | e545e620 | Thomas Schöpping | |
59 | /**
|
||
60 | * @brief Enable flag for the BQ27500 fuel gauge.
|
||
61 | */
|
||
62 | 1f94ac64 | Thomas Schöpping | #define AMIROLLD_CFG_BQ27500 1 |
63 | b010278f | Thomas Schöpping | #define BQ27500_LLD_HWVERSION 120 |
64 | e545e620 | Thomas Schöpping | |
65 | /**
|
||
66 | * @brief Enable flag for the INA219 power monitor.
|
||
67 | */
|
||
68 | 1f94ac64 | Thomas Schöpping | #define AMIROLLD_CFG_INA219 1 |
69 | e545e620 | Thomas Schöpping | |
70 | /**
|
||
71 | * @brief Enable flag for the status LED.
|
||
72 | */
|
||
73 | 1f94ac64 | Thomas Schöpping | #define AMIROLLD_CFG_LED 1 |
74 | e545e620 | Thomas Schöpping | |
75 | /**
|
||
76 | * @brief Enable flag for the PKLCS1212E4001 buzzer.
|
||
77 | */
|
||
78 | 1f94ac64 | Thomas Schöpping | #define AMIROLLD_CFG_PKxxxExxx 1 |
79 | #define PKxxxExxx_LLD_FREQUENCY_MIN 2000 |
||
80 | #define PKxxxExxx_LLD_FREQUENCY_SPEC 4000 |
||
81 | #define PKxxxExxx_LLD_FREQUENCY_MAX 6000 |
||
82 | e545e620 | Thomas Schöpping | |
83 | /**
|
||
84 | * @brief Enable flag for the TPS2051BDBV power switch.
|
||
85 | */
|
||
86 | 1f94ac64 | Thomas Schöpping | #define AMIROLLD_CFG_TPS20xxB 1 |
87 | e545e620 | Thomas Schöpping | |
88 | /**
|
||
89 | * @brief Enable flag for the TPS62113 step-down converter.
|
||
90 | */
|
||
91 | 1f94ac64 | Thomas Schöpping | #define AMIROLLD_CFG_TPS6211x 1 |
92 | e545e620 | Thomas Schöpping | |
93 | 8be006e0 | Thomas Schöpping | #if (BOARD_SENSORRING == BOARD_PROXIMITYSENSOR) || defined(__DOXYGEN__)
|
94 | |||
95 | /**
|
||
96 | * @brief Enable flag for the MPR121 touch sensor.
|
||
97 | */
|
||
98 | 1f94ac64 | Thomas Schöpping | #define AMIROLLD_CFG_MPR121 1 |
99 | 8be006e0 | Thomas Schöpping | |
100 | /**
|
||
101 | * @brief Enable flag for the PCA9544A I2C multiplexer.
|
||
102 | */
|
||
103 | 1f94ac64 | Thomas Schöpping | #define AMIROLLD_CFG_PCA9544A 1 |
104 | 8be006e0 | Thomas Schöpping | |
105 | e545e620 | Thomas Schöpping | /**
|
106 | * @brief Enable flag for the VCNL4020 proximity sensor.
|
||
107 | */
|
||
108 | 1f94ac64 | Thomas Schöpping | #define AMIROLLD_CFG_VCNL4020 1 |
109 | e545e620 | Thomas Schöpping | |
110 | 7de0cc90 | Thomas Schöpping | #endif /* (BOARD_SENSORRING == BOARD_PROXIMITYSENSOR) */ |
111 | 8be006e0 | Thomas Schöpping | |
112 | #if (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L0X) || defined(__DOXYGEN__)
|
||
113 | bffb3465 | Thomas Schöpping | |
114 | /**
|
||
115 | * @brief Enable flag for the PCAL6524 GPIO extender
|
||
116 | */
|
||
117 | 1f94ac64 | Thomas Schöpping | #define AMIROLLD_CFG_PCAL6524 1 |
118 | bffb3465 | Thomas Schöpping | |
119 | /**
|
||
120 | * @brief Enable flag for the AT42Q1050 touch sensor.
|
||
121 | */
|
||
122 | 1f94ac64 | Thomas Schöpping | #define AMIROLLD_CFG_AT42QT1050 1 |
123 | bffb3465 | Thomas Schöpping | |
124 | 7de0cc90 | Thomas Schöpping | #endif /* (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L0X) */ |
125 | 8be006e0 | Thomas Schöpping | |
126 | #if (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L1X) || defined(__DOXYGEN__)
|
||
127 | bffb3465 | Thomas Schöpping | |
128 | /**
|
||
129 | * @brief Enable flag for the PCAL6524 GPIO extender
|
||
130 | */
|
||
131 | 1f94ac64 | Thomas Schöpping | #define AMIROLLD_CFG_PCAL6524 1 |
132 | bffb3465 | Thomas Schöpping | |
133 | /**
|
||
134 | * @brief Enable flag for the AT42Q1050 touch sensor.
|
||
135 | */
|
||
136 | 1f94ac64 | Thomas Schöpping | #define AMIROLLD_CFG_AT42QT1050 1 |
137 | bffb3465 | Thomas Schöpping | |
138 | 7de0cc90 | Thomas Schöpping | #endif /* (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L1X) */ |
139 | 8be006e0 | Thomas Schöpping | |
140 | 6ff06bbf | Thomas Schöpping | #endif /* ALLDCONF_H */ |
141 | 53710ca3 | Marc Rothmann | |
142 | /** @} */ |