aboutsummaryrefslogtreecommitdiff
path: root/cc3200/mptask.c
diff options
context:
space:
mode:
Diffstat (limited to 'cc3200/mptask.c')
-rw-r--r--cc3200/mptask.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cc3200/mptask.c b/cc3200/mptask.c
index eb673b08c..3c34ceeca 100644
--- a/cc3200/mptask.c
+++ b/cc3200/mptask.c
@@ -98,7 +98,12 @@ static FATFS *sflash_fatfs;
static const char fresh_main_py[] = "# main.py -- put your code here!\r\n";
static const char fresh_boot_py[] = "# boot.py -- run on boot-up\r\n"
- "# can run arbitrary Python, but best to keep it minimal\r\n";
+ "# can run arbitrary Python, but best to keep it minimal\r\n"
+ #if MICROPY_STDIO_UART
+ "import os, machine\r\n"
+ "os.dupterm(machine.UART(0, " MP_STRINGIFY(MICROPY_STDIO_UART_BAUD) "))\r\n"
+ #endif
+ ;
/******************************************************************************
DECLARE PUBLIC FUNCTIONS