summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/hal/prcm.h
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/hal/prcm.h
parent651c870d77fdb34b50d74a4388bdc364d3b7a42e (diff)
downloadmicropython-2673374d18c529800a4c89dc0a9d66c5b9dafb54.tar.gz
micropython-2673374d18c529800a4c89dc0a9d66c5b9dafb54.zip
cc3200: Refactor PRCM special user bits implementation.
Diffstat (limited to 'cc3200/hal/prcm.h')
-rw-r--r--cc3200/hal/prcm.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/cc3200/hal/prcm.h b/cc3200/hal/prcm.h
index a00bf9d774..110d8326ea 100644
--- a/cc3200/hal/prcm.h
+++ b/cc3200/hal/prcm.h
@@ -193,16 +193,20 @@ unsigned char ulRstReg;
#define PRCM_ADC 0x000000FF
//*****************************************************************************
+// User bits in the PRCM persistent registers
+//*****************************************************************************
+#define PRCM_SAFE_BOOT_BIT 30
+#define PRCM_WDT_RESET_BIT 29
+#define PRCM_FIRST_BOOT_BIT 28
+
+//*****************************************************************************
//
// API Function prototypes
//
//*****************************************************************************
-extern void PRCMRequestSafeBoot(void);
-extern void PRCMClearSafeBootRequest(void);
-extern tBoolean PRCMIsSafeBootRequested(void);
-extern void PRCMSignalWDTReset(void);
-extern void PRCMClearWDTResetSignal(void);
-extern tBoolean PRCMWasResetBecauseOfWDT(void);
+extern void PRCMSetSpecialBit(unsigned char bit);
+extern void PRCMClearSpecialBit(unsigned char bit);
+extern tBoolean PRCMGetSpecialBit(unsigned char bit);
extern void PRCMSOCReset(void);
extern void PRCMMCUReset(tBoolean bIncludeSubsystem);
extern unsigned long PRCMSysResetCauseGet(void);