We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e728737 + 61daa1d commit e59b3d8Copy full SHA for e59b3d8
targets/TARGET_TI/TARGET_CC32XX/TARGET_CC3220SF/rtc_api.c
@@ -24,7 +24,10 @@ void rtc_init(void) {
24
static bool rtc_initialized = false;
25
if (!rtc_initialized)
26
{
27
- PRCMRTCInUseSet();
+ if (!PRCMRTCInUseGet)
28
+ {
29
+ PRCMRTCInUseSet();
30
+ }
31
rtc_initialized = true;
32
}
33
targets/TARGET_TI/TARGET_CC32XX/TARGET_CC3220SF/ti/devices/cc32xx/driverlib/prcm.c
@@ -1988,10 +1988,8 @@ void PRCMCC3200MCUInit()
1988
//
1989
// Enable RTC
1990
1991
- if(PRCMSysResetCauseGet()== PRCM_POWER_ON)
1992
- {
1993
- PRCMHIBRegWrite(0x4402F804,0x1);
1994
- }
+
+ PRCMHIBRegWrite(0x4402F804,0x1);
1995
1996
1997
// Enable Timers
0 commit comments