stmhal: Make pyb.bootloader take no arguments.
This commit is contained in:
parent
404f7cf902
commit
f905ebb173
@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
/// \function bootloader()
|
/// \function bootloader()
|
||||||
/// Activate the bootloader without BOOT* pins.
|
/// Activate the bootloader without BOOT* pins.
|
||||||
STATIC NORETURN mp_obj_t pyb_bootloader(uint n_args, const mp_obj_t *args) {
|
STATIC NORETURN mp_obj_t pyb_bootloader(void) {
|
||||||
storage_flush();
|
storage_flush();
|
||||||
|
|
||||||
HAL_RCC_DeInit();
|
HAL_RCC_DeInit();
|
||||||
@ -76,7 +76,7 @@ STATIC NORETURN mp_obj_t pyb_bootloader(uint n_args, const mp_obj_t *args) {
|
|||||||
|
|
||||||
while (1);
|
while (1);
|
||||||
}
|
}
|
||||||
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(pyb_bootloader_obj, 0, 1, pyb_bootloader);
|
STATIC MP_DEFINE_CONST_FUN_OBJ_0(pyb_bootloader_obj, pyb_bootloader);
|
||||||
|
|
||||||
/// \function info([dump_alloc_table])
|
/// \function info([dump_alloc_table])
|
||||||
/// Print out lots of information about the board.
|
/// Print out lots of information about the board.
|
||||||
|
Loading…
Reference in New Issue
Block a user