Revision 3106e8cc modules/STM32F407G-DISC1/module.h
| modules/STM32F407G-DISC1/module.h | ||
|---|---|---|
| 133 | 133 |
/** |
| 134 | 134 |
* @brief Event flag to be set on a USER_BUTTON interrupt. |
| 135 | 135 |
*/ |
| 136 |
#define MODULE_OS_IOEVENTFLAGS_USERBUTTON AOS_IOEVENT_FLAG(GPIOA_BUTTON)
|
|
| 136 |
#define MODULE_OS_IOEVENTFLAGS_USERBUTTON AOS_IOEVENT_FLAG(PAL_PAD(LINE_BUTTON))
|
|
| 137 | 137 |
|
| 138 | 138 |
#if (AMIROOS_CFG_SHELL_ENABLE == true) || (AMIROOS_CFG_TESTS_ENABLE == true) || defined(__DOXYGEN__) |
| 139 | 139 |
/** |
| ... | ... | |
| 148 | 148 |
*/ |
| 149 | 149 |
#define MODULE_INIT_INTERRUPTS() { \
|
| 150 | 150 |
/* user button */ \ |
| 151 |
palSetPadCallback(moduleGpioUserButton.gpio->port, moduleGpioUserButton.gpio->pad, _intCallback, &moduleGpioUserButton.gpio->pad); \
|
|
| 152 |
palEnablePadEvent(moduleGpioUserButton.gpio->port, moduleGpioUserButton.gpio->pad, APAL2CH_EDGE(moduleGpioUserButton.meta.edge)); \
|
|
| 151 |
palSetLineCallback(moduleGpioUserButton.gpio->line, aosSysGetStdIntCallback(), &moduleGpioUserButton.gpio->line); \
|
|
| 152 |
palEnableLineEvent(moduleGpioUserButton.gpio->line, APAL2CH_EDGE(moduleGpioUserButton.meta.edge)); \
|
|
| 153 | 153 |
} |
| 154 | 154 |
|
| 155 | 155 |
/** |
Also available in: Unified diff