mirror of
https://github.com/micropython/micropython.git
synced 2026-03-11 11:20:17 +01:00
alif/boards/OPENMV_AE3: Allow user button to wake from sleep.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -154,8 +154,8 @@ void board_early_init(void) {
|
||||
.vtor_address = SCB->VTOR,
|
||||
.vtor_address_ns = SCB->VTOR,
|
||||
// Configure wake-up sources.
|
||||
.ewic_cfg = EWIC_RTC_A,
|
||||
.wakeup_events = WE_LPRTC,
|
||||
.ewic_cfg = EWIC_VBAT_GPIO | EWIC_RTC_A,
|
||||
.wakeup_events = WE_LPGPIO7 | WE_LPGPIO6 | WE_LPGPIO5 | WE_LPGPIO4 | WE_LPRTC,
|
||||
};
|
||||
|
||||
if (se_services_set_off_profile(&off_profile)) {
|
||||
@@ -166,6 +166,9 @@ void board_early_init(void) {
|
||||
if (se_services_select_pll_source(PLL_SOURCE_PLL, PLL_TARGET_PD4_SRAM)) {
|
||||
MICROPY_BOARD_FATAL_ERROR("se_services_select_pll_source");
|
||||
}
|
||||
|
||||
// Configure the user button as an input (it has an external pull-up).
|
||||
mp_hal_pin_input(pin_SW);
|
||||
}
|
||||
|
||||
MP_WEAK void board_enter_stop(void) {
|
||||
|
||||
Reference in New Issue
Block a user