|
|
@ -65,7 +65,6 @@ |
|
|
|
{ MP_ROM_QSTR(MP_QSTR_info), MP_ROM_PTR(&machine_info_obj) }, \ |
|
|
|
{ MP_ROM_QSTR(MP_QSTR_unique_id), MP_ROM_PTR(&machine_unique_id_obj) }, \ |
|
|
|
{ MP_ROM_QSTR(MP_QSTR_reset), MP_ROM_PTR(&machine_reset_obj) }, \ |
|
|
|
{ MP_ROM_QSTR(MP_QSTR_bootloader), MP_ROM_PTR(&machine_bootloader_obj) }, \ |
|
|
|
{ MP_ROM_QSTR(MP_QSTR_freq), MP_ROM_PTR(&machine_freq_obj) }, \ |
|
|
|
{ MP_ROM_QSTR(MP_QSTR_sleep), MP_ROM_PTR(&machine_lightsleep_obj) }, \ |
|
|
|
{ MP_ROM_QSTR(MP_QSTR_lightsleep), MP_ROM_PTR(&machine_lightsleep_obj) }, \ |
|
|
@ -199,7 +198,7 @@ STATIC mp_obj_t machine_reset(void) { |
|
|
|
MP_DEFINE_CONST_FUN_OBJ_0(machine_reset_obj, machine_reset); |
|
|
|
|
|
|
|
// Activate the bootloader without BOOT* pins.
|
|
|
|
NORETURN mp_obj_t machine_bootloader(size_t n_args, const mp_obj_t *args) { |
|
|
|
NORETURN void mp_machine_bootloader(size_t n_args, const mp_obj_t *args) { |
|
|
|
#if MICROPY_HW_ENABLE_STORAGE |
|
|
|
storage_flush(); |
|
|
|
#endif |
|
|
@ -217,7 +216,6 @@ NORETURN mp_obj_t machine_bootloader(size_t n_args, const mp_obj_t *args) { |
|
|
|
; |
|
|
|
} |
|
|
|
} |
|
|
|
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(machine_bootloader_obj, 0, 1, machine_bootloader); |
|
|
|
|
|
|
|
// get or set the MCU frequencies
|
|
|
|
STATIC mp_obj_t machine_freq(size_t n_args, const mp_obj_t *args) { |
|
|
|