Skip to content

Commit 18bd517

Browse files
author
Daniel Campora
committed
cc3200: Enable the stdio UART for the LaunchXL only.
1 parent c7acfc9 commit 18bd517

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

cc3200/boards/WIPY-SD/mpconfigboard.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
#include "version.h"
2929

30-
#define WIPY-SD
30+
#define WIPY_SD
3131

3232
#define BOARD_NAME "WiPy-SD "
3333
#define MICROPY_HW_BOARD_NAME VERSION_E(BOARD_NAME, VERSION_NUMBER)

cc3200/mptask.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ void TASK_Micropython (void *pvParameters) {
135135
// we are alive, so let the world know it
136136
mperror_enable_heartbeat();
137137

138+
#ifdef LAUNCHXL
138139
// configure the stdio uart pins with the correct alternate functions
139140
// param 3 ("mode") is DON'T CARE" for AFs others than GPIO
140141
pin_config ((pin_obj_t *)&pin_GPIO1, PIN_MODE_3, 0, PIN_TYPE_STD_PU, PIN_STRENGTH_2MA);
@@ -147,6 +148,9 @@ void TASK_Micropython (void *pvParameters) {
147148
pyb_stdio_uart = pyb_uart_type.make_new((mp_obj_t)&pyb_uart_type, MP_ARRAY_SIZE(args), 0, args);
148149
// create a callback for the uart, in order to enable the rx interrupts
149150
uart_callback_new (pyb_stdio_uart, mp_const_none, MICROPY_STDIO_UART_RX_BUF_SIZE, INT_PRIORITY_LVL_3);
151+
#else
152+
pyb_stdio_uart = MP_OBJ_NULL;
153+
#endif
150154

151155
pybsleep_reset_cause_t rstcause = pybsleep_get_reset_cause();
152156
if (rstcause < PYB_SLP_SOFT_RESET) {

0 commit comments

Comments
 (0)