Revision c9cecdb6
modules/STM32F4Discovery/alldconf.h | ||
---|---|---|
18 | 18 |
|
19 | 19 |
/** |
20 | 20 |
* @file |
21 |
* @brief AMiRo-LLD configuration file for the PowerManagement v1.1 module.
|
|
21 |
* @brief AMiRo-LLD configuration file for the STM32F4Discovery board.
|
|
22 | 22 |
* @details Contains the application specific AMiRo-LLD settings. |
23 | 23 |
* |
24 |
* @addtogroup powermanagement_lld_config
|
|
24 |
* @addtogroup STM32F4Discovery_lld_config
|
|
25 | 25 |
* @{ |
26 | 26 |
*/ |
27 | 27 |
|
modules/STM32F4Discovery/aosconf.h | ||
---|---|---|
83 | 83 |
* @note Any mandatory events (e.g. for SSSP) are enabled implicitely despite this configuration. |
84 | 84 |
*/ |
85 | 85 |
#if !defined(OS_CFG_MAIN_LOOP_IOEVENT_MASK) |
86 |
#define AMIROOS_CFG_MAIN_LOOP_IOEVENT_MASK 0
|
|
86 |
#define AMIROOS_CFG_MAIN_LOOP_IOEVENT_MASK MODULE_OS_IOEVENTFLAGS_USERBUTTON
|
|
87 | 87 |
#else |
88 | 88 |
#define AMIROOS_CFG_MAIN_LOOP_IOEVENT_MASK OS_CFG_MAIN_LOOP_IOEVENT_MASK |
89 | 89 |
#endif |
modules/STM32F4Discovery/halconf.h | ||
---|---|---|
23 | 23 |
* various device drivers from your application. You may also use |
24 | 24 |
* this file in order to override the device drivers default settings. |
25 | 25 |
* |
26 |
* @addtogroup STM32F$DISCOVERY_HAL_CONF
|
|
26 |
* @addtogroup STM32F4DISCOVERY_HAL_CONF
|
|
27 | 27 |
* @{ |
28 | 28 |
*/ |
29 | 29 |
|
modules/STM32F4Discovery/module.h | ||
---|---|---|
188 | 188 |
*/ |
189 | 189 |
#define MODULE_MAIN_LOOP_IO_EVENT(eventflags) { \ |
190 | 190 |
if (eventflags & MODULE_OS_IOEVENTFLAGS_USERBUTTON) { \ |
191 |
apalGpioToggle(moduleGpioLedRed.gpio); \ |
|
192 |
apalGpioToggle(moduleGpioLedGreen.gpio); \ |
|
193 |
apalGpioToggle(moduleGpioLedBlue.gpio); \ |
|
194 |
apalGpioToggle(moduleGpioLedOrange.gpio); \ |
|
191 |
apalControlGpioState_t buttonstate; \ |
|
192 |
apalControlGpioGet(&moduleGpioUserButton, &buttonstate); \ |
|
193 |
apalControlGpioSet(&moduleGpioLedRed, buttonstate); \ |
|
194 |
apalControlGpioSet(&moduleGpioLedGreen, buttonstate); \ |
|
195 |
apalControlGpioSet(&moduleGpioLedBlue, buttonstate); \ |
|
196 |
apalControlGpioSet(&moduleGpioLedOrange, buttonstate); \ |
|
195 | 197 |
} \ |
196 | 198 |
} |
197 | 199 |
|
Also available in: Unified diff