Statistics
| Branch: | Tag: | Revision:

amiro-os / modules / PowerManagement_1-1 / alldconf.h @ 6ff06bbf

History | View | Annotate | Download (3.31 KB)

1
/*
2
AMiRo-OS is an operating system designed 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 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   AMiRo-LLD configuration file for the PowerManagement v1.1 module.
22
 * @details Contains the application specific AMiRo-LLD settings.
23
 *
24
 * @addtogroup powermanagement_lld_config
25
 * @{
26
 */
27

    
28
#ifndef ALLDCONF_H
29
#define ALLDCONF_H
30

    
31
/*
32
 * compatibility guards
33
 */
34
#define _AMIRO_LLD_CFG_
35
#define AMIRO_LLD_CFG_VERSION_MAJOR         1
36
#define AMIRO_LLD_CFG_VERSION_MINOR         0
37

    
38
/**
39
 * @brief   Width of the apalTime_t data type.
40
 *
41
 * @details Possible values are 8, 16, 32, and 64 bits.
42
 *          By definition time is represented at microsecond precision.
43
 */
44
#define AMIROLLD_CFG_TIME_SIZE          32
45

    
46
// required to differentiate between various sensor rings
47
#include <board.h>
48

    
49
/**
50
 * @brief   Enable flag for the AT24C01BN-SH-B EEPROM.
51
 */
52
#define AMIROLLD_CFG_USE_AT24C01BN
53

    
54
/**
55
 * @brief   Enable flag for the BQ24103A charger.
56
 */
57
#define AMIROLLD_CFG_USE_BQ24103A
58

    
59
/**
60
 * @brief   Enable flag for the BQ27500 fuel gauge.
61
 */
62
#define AMIROLLD_CFG_USE_BQ27500
63

    
64
/**
65
 * @brief   Enable flag for the INA219 power monitor.
66
 */
67
#define AMIROLLD_CFG_USE_INA219
68

    
69
/**
70
 * @brief   Enable flag for the status LED.
71
 */
72
#define AMIROLLD_CFG_USE_LED
73

    
74
/**
75
 * @brief   Enable flag for the PKLCS1212E4001 buzzer.
76
 */
77
#define AMIROLLD_CFG_USE_PKLCS1212E4001
78

    
79
/**
80
 * @brief   Enable flag for the TPS2051BDBV power switch.
81
 */
82
#define AMIROLLD_CFG_USE_TPS2051BDBV
83

    
84
/**
85
 * @brief   Enable flag for the TPS62113 step-down converter.
86
 */
87
#define AMIROLLD_CFG_USE_TPS62113
88

    
89
#if (BOARD_SENSORRING == BOARD_PROXIMITYSENSOR) || defined(__DOXYGEN__)
90

    
91
/**
92
 * @brief   Enable flag for the MPR121 touch sensor.
93
 */
94
#define AMIROLLD_CFG_USE_MPR121
95

    
96
/**
97
 * @brief   Enable flag for the PCA9544A I2C multiplexer.
98
 */
99
#define AMIROLLD_CFG_USE_PCA9544A
100

    
101
/**
102
 * @brief   Enable flag for the VCNL4020 proximity sensor.
103
 */
104
#define AMIROLLD_CFG_USE_VCNL4020
105

    
106
#endif /* BOARD_SENSORRING == BOARD_PROXIMITYSENSOR */
107

    
108
#if (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L0X) || defined(__DOXYGEN__)
109

    
110
/**
111
 * @brief   Enable flag for the PCAL6524 GPIO extender
112
 */
113
#define AMIROLLD_CFG_USE_PCAL6524
114

    
115
/**
116
 * @brief   Enable flag for the AT42Q1050 touch sensor.
117
 */
118
#define AMIROLLD_CFG_USE_AT42QT1050
119

    
120
#endif /* BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L0X */
121

    
122
#if (BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L1X) || defined(__DOXYGEN__)
123

    
124
/**
125
 * @brief   Enable flag for the PCAL6524 GPIO extender
126
 */
127
#define AMIROLLD_CFG_USE_PCAL6524
128

    
129
/**
130
 * @brief   Enable flag for the AT42Q1050 touch sensor.
131
 */
132
#define AMIROLLD_CFG_USE_AT42QT1050
133

    
134
#endif /* BOARD_SENSORRING == BOARD_DISTANCESENSOR_VL53L1X */
135

    
136
#endif /* ALLDCONF_H */
137

    
138
/** @} */