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
ff987ccf
Commit
ff987ccf
authored
May 06, 2015
by
Dave Hylands
Committed by
Damien George
May 06, 2015
Browse files
stmhal: Move debug UART repl to after uart_init0 call.
parent
bda70412
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/main.c
View file @
ff987ccf
...
...
@@ -377,6 +377,17 @@ soft_reset:
mp_obj_list_append
(
mp_sys_path
,
MP_OBJ_NEW_QSTR
(
MP_QSTR__slash_flash_slash_lib
));
mp_obj_list_init
(
mp_sys_argv
,
0
);
// Initialise low-level sub-systems. Here we need to very basic things like
// zeroing out memory and resetting any of the sub-systems. Following this
// we can run Python scripts (eg boot.py), but anything that is configurable
// by boot.py must be set after boot.py is run.
readline_init0
();
pin_init0
();
extint_init0
();
timer_init0
();
uart_init0
();
// Change #if 0 to #if 1 if you want REPL on UART_6 (or another uart)
// as well as on USB VCP
#if 0
...
...
@@ -391,16 +402,6 @@ soft_reset:
MP_STATE_PORT
(
pyb_stdio_uart
)
=
NULL
;
#endif
// Initialise low-level sub-systems. Here we need to very basic things like
// zeroing out memory and resetting any of the sub-systems. Following this
// we can run Python scripts (eg boot.py), but anything that is configurable
// by boot.py must be set after boot.py is run.
readline_init0
();
pin_init0
();
extint_init0
();
timer_init0
();
uart_init0
();
#if MICROPY_HW_ENABLE_CAN
can_init0
();
#endif
...
...
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