summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/mptask.c
diff options
context:
space:
mode:
authordanicampora <danicampora@gmail.com>2015-03-17 11:05:59 +0100
committerdanicampora <danicampora@gmail.com>2015-03-17 13:26:07 +0100
commit6de1b39368efc27d7a90d64f28f99b9e46422f5b (patch)
treecfb27f5e12cde99857e795ed031aed6db51a6e7c /cc3200/mptask.c
parentfcf6db06950c00d83d7d02b6ab0a23de52f27b01 (diff)
downloadmicropython-6de1b39368efc27d7a90d64f28f99b9e46422f5b.tar.gz
micropython-6de1b39368efc27d7a90d64f28f99b9e46422f5b.zip
cc3200: Make peripheral objects static.
This prevents duplication of objects in the sleep list. Also helps with reducing the code size by ~100 bytes.
Diffstat (limited to 'cc3200/mptask.c')
-rw-r--r--cc3200/mptask.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cc3200/mptask.c b/cc3200/mptask.c
index bd86da2aa4..8697301e18 100644
--- a/cc3200/mptask.c
+++ b/cc3200/mptask.c
@@ -250,7 +250,10 @@ soft_reset_exit:
wlan_stop_servers();
wlan_stop();
- uart_deinit();
+ // de-initialize the stdio uart
+ if (pyb_stdio_uart) {
+ pyb_uart_deinit(pyb_stdio_uart);
+ }
goto soft_reset;
}