|
|
@@ -41,12 +41,6 @@
|
|
|
|
|
|
#include <rthw.h>
|
|
|
|
|
|
-#define PYB_RESET_SOFT (0)
|
|
|
-#define PYB_RESET_POWER_ON (1)
|
|
|
-#define PYB_RESET_HARD (2)
|
|
|
-#define PYB_RESET_WDT (3)
|
|
|
-#define PYB_RESET_DEEPSLEEP (4)
|
|
|
-
|
|
|
#if MICROPY_PY_MACHINE
|
|
|
|
|
|
STATIC mp_obj_t machine_info(uint n_args, const mp_obj_t *args) {
|
|
|
@@ -210,12 +204,7 @@ STATIC const mp_rom_map_elem_t machine_module_globals_table[] = {
|
|
|
#if MICROPY_PY_MACHINE_UART
|
|
|
{ MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&machine_uart_type ) },
|
|
|
#endif
|
|
|
-// { MP_ROM_QSTR(MP_QSTR_WDT), MP_ROM_PTR(&pyb_wdt_type) },
|
|
|
- { MP_ROM_QSTR(MP_QSTR_PWRON_RESET), MP_ROM_INT(PYB_RESET_POWER_ON) },
|
|
|
- { MP_ROM_QSTR(MP_QSTR_HARD_RESET), MP_ROM_INT(PYB_RESET_HARD) },
|
|
|
- { MP_ROM_QSTR(MP_QSTR_WDT_RESET), MP_ROM_INT(PYB_RESET_WDT) },
|
|
|
- { MP_ROM_QSTR(MP_QSTR_DEEPSLEEP_RESET), MP_ROM_INT(PYB_RESET_DEEPSLEEP) },
|
|
|
- { MP_ROM_QSTR(MP_QSTR_SOFT_RESET), MP_ROM_INT(PYB_RESET_SOFT) },
|
|
|
+
|
|
|
};
|
|
|
|
|
|
STATIC MP_DEFINE_CONST_DICT(machine_module_globals, machine_module_globals_table);
|