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
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
d07de2d3
Commit
d07de2d3
authored
9 years ago
by
Daniel Campora
Browse files
Options
Downloads
Patches
Plain Diff
cc3200: Move the STDIO UART pin configuration to mpconfigboard.h.
parent
9414f92f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cc3200/README.md
+1
-1
1 addition, 1 deletion
cc3200/README.md
cc3200/boards/LAUNCHXL/mpconfigboard.h
+4
-0
4 additions, 0 deletions
cc3200/boards/LAUNCHXL/mpconfigboard.h
cc3200/mptask.c
+2
-2
2 additions, 2 deletions
cc3200/mptask.c
with
7 additions
and
3 deletions
cc3200/README.md
+
1
−
1
View file @
d07de2d3
...
...
@@ -29,7 +29,7 @@ make BTARGET=bootloader BTYPE=release
-
Make sure the SOP2 jumper is in position.
-
Open CCS_Uniflash and connect to the board (by default on port 22).
-
Format the serial flash (select 1MB size in case of the CC3200-LAUNCHXL, 2MB in case of the WiPy, leave the rest unchecked).
-
Mark the following files for erasing:
`/cert/ca.pem`
,
`/cert/client.pm`
,
`/cert/private.key`
and
`/tmp/pac.bin`
.
-
Mark the following files for erasing:
`/cert/ca.pem`
,
`/cert/client.p
e
m`
,
`/cert/private.key`
and
`/tmp/pac.bin`
.
-
Add a new file with the name of /sys/mcuimg.bin, and select the URL to point to cc3200
\b
ootmgr
\b
uild
\<
BOARD_NAME>
\b
ootloader.bin.
-
Add another file with the name of /sys/factimg.bin, and select the URL to point to cc3200
\b
uild
\<
BOARD_NAME>
\m
cuimg.bin.
-
Click "Program" to apply all changes.
...
...
This diff is collapsed.
Click to expand it.
cc3200/boards/LAUNCHXL/mpconfigboard.h
+
4
−
0
View file @
d07de2d3
...
...
@@ -37,6 +37,10 @@
#define MICROPY_STDIO_UART 1
#define MICROPY_STDIO_UART_BAUD 115200
#define MICROPY_STDIO_UART_RX_BUF_SIZE 128
#define MICROPY_STDIO_UART_TX_PIN (pin_GPIO1)
#define MICROPY_STDIO_UART_RX_PIN (pin_GPIO2)
#define MICROPY_STDIO_UART_TX_PIN_AF PIN_MODE_3
#define MICROPY_STDIO_UART_RX_PIN_AF PIN_MODE_3
#define MICROPY_SYS_LED_PRCM PRCM_GPIOA1
#define MICROPY_SAFE_BOOT_PRCM PRCM_GPIOA2
...
...
This diff is collapsed.
Click to expand it.
cc3200/mptask.c
+
2
−
2
View file @
d07de2d3
...
...
@@ -139,8 +139,8 @@ soft_reset:
#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
);
pin_config
((
pin_obj_t
*
)
&
pin_GPIO2
,
PIN_MODE_3
,
0
,
PIN_TYPE_STD_PU
,
PIN_STRENGTH_2MA
);
pin_config
((
pin_obj_t
*
)
&
MICROPY_STDIO_UART_TX_PIN
,
MICROPY_STDIO_UART_TX_PIN_AF
,
0
,
PIN_TYPE_STD_PU
,
PIN_STRENGTH_2MA
);
pin_config
((
pin_obj_t
*
)
&
MICROPY_STDIO_UART_RX_PIN
,
MICROPY_STDIO_UART_RX_PIN_AF
,
0
,
PIN_TYPE_STD_PU
,
PIN_STRENGTH_2MA
);
// instantiate the stdio uart
mp_obj_t
args
[
2
]
=
{
mp_obj_new_int
(
MICROPY_STDIO_UART
),
...
...
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