Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
d5323f07
Commit
d5323f07
authored
Apr 15, 2014
by
Damien George
Browse files
Options
Downloads
Plain Diff
Merge pull request #496 from dhylands/fix-debug-usart
Fix call to enable pyb_usart_global_debug.
parents
c58c1191
00adf671
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
stmhal/main.c
+9
-2
9 additions, 2 deletions
stmhal/main.c
with
9 additions
and
2 deletions
stmhal/main.c
+
9
−
2
View file @
d5323f07
...
...
@@ -269,8 +269,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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment