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
00adf671
Commit
00adf671
authored
Apr 15, 2014
by
Dave Hylands
Browse files
Fix call to enable pyb_usart_global_debug.
parent
3b108e76
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/main.c
View file @
00adf671
...
...
@@ -254,8 +254,15 @@ soft_reset:
// Change #if 0 to #if 1 if you want REPL on USART_6 (or another usart)
// as well as on USB VCP
#if 0
pyb_usart_global_debug = pyb_Usart(MP_OBJ_NEW_SMALL_INT(PYB_USART_YA),
MP_OBJ_NEW_SMALL_INT(115200));
{
mp_obj_t args[2] = {
MP_OBJ_NEW_SMALL_INT(PYB_USART_6),
MP_OBJ_NEW_SMALL_INT(115200),
};
pyb_usart_global_debug = pyb_usart_type.make_new((mp_obj_t)&pyb_usart_type,
sizeof(args) / sizeof(args[0]),
0, args);
}
#else
pyb_usart_global_debug
=
NULL
;
#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