Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
f905ebb1
Commit
f905ebb1
authored
May 19, 2014
by
Damien George
Browse files
stmhal: Make pyb.bootloader take no arguments.
parent
404f7cf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/modpyb.c
View file @
f905ebb1
...
...
@@ -64,7 +64,7 @@
/// \function bootloader()
/// 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
();
HAL_RCC_DeInit
();
...
...
@@ -76,7 +76,7 @@ STATIC NORETURN mp_obj_t pyb_bootloader(uint n_args, const mp_obj_t *args) {
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])
/// Print out lots of information about the board.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment