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
18bd5170
Commit
18bd5170
authored
10 years ago
by
Daniel Campora
Browse files
Options
Downloads
Patches
Plain Diff
cc3200: Enable the stdio UART for the LaunchXL only.
parent
c7acfc90
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
cc3200/boards/WIPY-SD/mpconfigboard.h
+1
-1
1 addition, 1 deletion
cc3200/boards/WIPY-SD/mpconfigboard.h
cc3200/mptask.c
+4
-0
4 additions, 0 deletions
cc3200/mptask.c
with
5 additions
and
1 deletion
cc3200/boards/WIPY-SD/mpconfigboard.h
+
1
−
1
View file @
18bd5170
...
...
@@ -27,7 +27,7 @@
#include
"version.h"
#define WIPY
-
SD
#define WIPY
_
SD
#define BOARD_NAME "WiPy-SD "
#define MICROPY_HW_BOARD_NAME VERSION_E(BOARD_NAME, VERSION_NUMBER)
...
...
This diff is collapsed.
Click to expand it.
cc3200/mptask.c
+
4
−
0
View file @
18bd5170
...
...
@@ -135,6 +135,7 @@ soft_reset:
// we are alive, so let the world know it
mperror_enable_heartbeat
();
#ifdef LAUNCHXL
// configure the stdio uart pins with the correct alternate functions
// param 3 ("mode") is DON'T CARE" for AFs others than GPIO
pin_config
((
pin_obj_t
*
)
&
pin_GPIO1
,
PIN_MODE_3
,
0
,
PIN_TYPE_STD_PU
,
PIN_STRENGTH_2MA
);
...
...
@@ -147,6 +148,9 @@ soft_reset:
pyb_stdio_uart
=
pyb_uart_type
.
make_new
((
mp_obj_t
)
&
pyb_uart_type
,
MP_ARRAY_SIZE
(
args
),
0
,
args
);
// create a callback for the uart, in order to enable the rx interrupts
uart_callback_new
(
pyb_stdio_uart
,
mp_const_none
,
MICROPY_STDIO_UART_RX_BUF_SIZE
,
INT_PRIORITY_LVL_3
);
#else
pyb_stdio_uart
=
MP_OBJ_NULL
;
#endif
pybsleep_reset_cause_t
rstcause
=
pybsleep_get_reset_cause
();
if
(
rstcause
<
PYB_SLP_SOFT_RESET
)
{
...
...
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