Skip to content

Commit 2b7b9ef

Browse files
committed
Wakeup: Remove runtime init hook.
1 parent 030b59c commit 2b7b9ef

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

micropython/modules/wakeup/wakeup.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,4 @@ const mp_obj_module_t wakeup_user_cmodule = {
4040
.globals = (mp_obj_dict_t*)&mp_module_wakeup_globals,
4141
};
4242

43-
#if MICROPY_VERSION <= 70144
44-
MP_REGISTER_MODULE(MP_QSTR_wakeup, wakeup_user_cmodule, MODULE_WAKEUP_ENABLED);
45-
#else
4643
MP_REGISTER_MODULE(MP_QSTR_wakeup, wakeup_user_cmodule);
47-
#endif
48-
49-
void runtime_init_latch(void) {
50-
runtime_wakeup_gpio_state = gpio_get_all();
51-
52-
gpio_init_mask(PICO_WAKEUP_PIN_MASK);
53-
gpio_set_dir_masked(PICO_WAKEUP_PIN_MASK, PICO_WAKEUP_PIN_DIR);
54-
gpio_put_masked(PICO_WAKEUP_PIN_MASK, PICO_WAKEUP_PIN_VALUE);
55-
};
56-
57-
// After runtime_init_early_resets, PICO_RUNTIME_INIT_EARLY_RESETS ?
58-
PICO_RUNTIME_INIT_FUNC_HW(runtime_init_latch, "00101");
59-
// Too early?
60-
// PICO_RUNTIME_INIT_FUNC_HW(runtime_init_latch, PICO_RUNTIME_INIT_EARLIEST);

0 commit comments

Comments
 (0)