Revision a0301104 modules/STM32L476RG-NUCLEO64/module.h
modules/STM32L476RG-NUCLEO64/module.h | ||
---|---|---|
18 | 18 |
|
19 | 19 |
/** |
20 | 20 |
* @file |
21 |
* @brief Structures and constant for the PowerManagement module.
|
|
21 |
* @brief Structures and constant for the STM32L476RG-NUCLEO64 module.
|
|
22 | 22 |
* |
23 |
* @addtogroup powermanagement_module
|
|
23 |
* @addtogroup STM32L476RG-NUCLEO64_module
|
|
24 | 24 |
* @{ |
25 | 25 |
*/ |
26 | 26 |
|
... | ... | |
56 | 56 |
extern SerialConfig moduleHalProgIfConfig; |
57 | 57 |
|
58 | 58 |
/** |
59 |
* @brief I2C driver to access multiplexer, proximity sensors 5 to 8, power monitors for VSYS4.2, VIO 5.0 and VDD, EEPROM, touch sensor, and fuel gauge (front battery). |
|
60 |
*/ |
|
61 |
#define MODULE_HAL_I2C_MPU6050 I2CD3 |
|
62 |
|
|
63 |
/** |
|
64 |
* @brief Configuration for the multiplexer, proximity sensors 1 to 4, power monitors for VIO1.8 and VIO 3.3, and fuel gauge (rear battery) I2C driver. |
|
65 |
*/ |
|
66 |
extern I2CConfig moduleHalI2cMpu6050Config; |
|
67 |
|
|
68 |
/** |
|
69 | 59 |
* @brief Real-Time Clock driver. |
70 | 60 |
*/ |
71 | 61 |
#define MODULE_HAL_RTC RTCD1 |
... | ... | |
125 | 115 |
*/ |
126 | 116 |
#define MODULE_INIT_TESTS() { \ |
127 | 117 |
/* add unit-test shell commands */ \ |
128 |
aosShellAddCommand(&aos.shell, &moduleUtAlldMpu6050.shellcmd); \ |
|
129 | 118 |
} |
130 | 119 |
|
131 | 120 |
/** |
... | ... | |
145 | 134 |
/** |
146 | 135 |
* @brief HOOK to toggle the LEDs when the user button is pressed. |
147 | 136 |
*/ |
148 |
#define MODULE_MAIN_LOOP_IO_EVENT(eventflags) { \ |
|
137 |
#define MODULE_MAIN_LOOP_IO_EVENT(eventflags) { \
|
|
149 | 138 |
if (eventflags & MODULE_OS_IOEVENTFLAGS_USERBUTTON) { \ |
150 | 139 |
apalControlGpioState_t buttonstate; \ |
151 | 140 |
apalControlGpioGet(&moduleGpioUserButton, &buttonstate); \ |
... | ... | |
171 | 160 |
*/ |
172 | 161 |
/*===========================================================================*/ |
173 | 162 |
|
174 |
//#include <alld_mpu6050.h> |
|
175 |
|
|
176 |
/** |
|
177 |
* @brief Accelerometer (MPU6050) driver. |
|
178 |
*/ |
|
179 |
//extern MPU6050Driver moduleLldMpu6050; |
|
180 |
|
|
181 | 163 |
/** @} */ |
182 | 164 |
|
183 | 165 |
/*===========================================================================*/ |
... | ... | |
188 | 170 |
/*===========================================================================*/ |
189 | 171 |
#if (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__) |
190 | 172 |
|
191 |
#include <ut_alld_mpu6050.h> |
|
192 |
|
|
193 |
/** |
|
194 |
* @brief MPU6050 unit test object. |
|
195 |
*/ |
|
196 |
extern aos_unittest_t moduleUtAlldMpu6050; |
|
197 |
|
|
198 | 173 |
#endif /* AMIROOS_CFG_TESTS_ENABLE == true */ |
199 | 174 |
|
200 | 175 |
/** @} */ |
Also available in: Unified diff