summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/mptask.c
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-08-09 18:54:29 +0200
committerDaniel Campora <daniel@wipy.io>2015-08-09 22:15:18 +0200
commit2673374d18c529800a4c89dc0a9d66c5b9dafb54 (patch)
tree42903b4a63e0d186c38133560132f042e5627f9c /cc3200/mptask.c
parent651c870d77fdb34b50d74a4388bdc364d3b7a42e (diff)
downloadmicropython-2673374d18c529800a4c89dc0a9d66c5b9dafb54.tar.gz
micropython-2673374d18c529800a4c89dc0a9d66c5b9dafb54.zip
cc3200: Refactor PRCM special user bits implementation.
Diffstat (limited to 'cc3200/mptask.c')
-rw-r--r--cc3200/mptask.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cc3200/mptask.c b/cc3200/mptask.c
index f14200ac37..6d66c90742 100644
--- a/cc3200/mptask.c
+++ b/cc3200/mptask.c
@@ -105,7 +105,10 @@ void TASK_Micropython (void *pvParameters) {
// initialize the garbage collector with the top of our stack
uint32_t sp = gc_helper_get_sp();
gc_collect_init (sp);
- bool safeboot = false;
+
+#ifndef DEBUG
+ bool safeboot = PRCMGetSpecialBit(PRCM_SAFE_BOOT_BIT);
+#endif
mptask_pre_init();
@@ -161,9 +164,6 @@ soft_reset:
else {
// only if not comming out of hibernate or a soft reset
mptask_enter_ap_mode();
- #ifndef DEBUG
- safeboot = PRCMIsSafeBootRequested();
- #endif
}
// enable telnet and ftp