File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
micropython/modules/wakeup Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -40,21 +40,4 @@ const mp_obj_module_t wakeup_user_cmodule = {
40
40
.globals = (mp_obj_dict_t * )& mp_module_wakeup_globals ,
41
41
};
42
42
43
- #if MICROPY_VERSION <= 70144
44
- MP_REGISTER_MODULE (MP_QSTR_wakeup , wakeup_user_cmodule , MODULE_WAKEUP_ENABLED );
45
- #else
46
43
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);
You can’t perform that action at this time.
0 commit comments