From d8e833a2bf760bbf754156e5afd403c536f4a0f6 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Mon, 2 Dec 2024 11:55:35 +0000 Subject: [PATCH] Wakeup: Remove runtime init hook. --- micropython/modules/wakeup/wakeup.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/micropython/modules/wakeup/wakeup.c b/micropython/modules/wakeup/wakeup.c index 0b9d523e..26662813 100644 --- a/micropython/modules/wakeup/wakeup.c +++ b/micropython/modules/wakeup/wakeup.c @@ -40,21 +40,4 @@ const mp_obj_module_t wakeup_user_cmodule = { .globals = (mp_obj_dict_t*)&mp_module_wakeup_globals, }; -#if MICROPY_VERSION <= 70144 -MP_REGISTER_MODULE(MP_QSTR_wakeup, wakeup_user_cmodule, MODULE_WAKEUP_ENABLED); -#else MP_REGISTER_MODULE(MP_QSTR_wakeup, wakeup_user_cmodule); -#endif - -void runtime_init_latch(void) { - runtime_wakeup_gpio_state = gpio_get_all(); - - gpio_init_mask(PICO_WAKEUP_PIN_MASK); - gpio_set_dir_masked(PICO_WAKEUP_PIN_MASK, PICO_WAKEUP_PIN_DIR); - gpio_put_masked(PICO_WAKEUP_PIN_MASK, PICO_WAKEUP_PIN_VALUE); -}; - -// After runtime_init_early_resets, PICO_RUNTIME_INIT_EARLY_RESETS ? -PICO_RUNTIME_INIT_FUNC_HW(runtime_init_latch, "00101"); -// Too early? -// PICO_RUNTIME_INIT_FUNC_HW(runtime_init_latch, PICO_RUNTIME_INIT_EARLIEST);