Tool/software: TI-RTOS
Hello TI community,
I want to know if there is any reason I shouldn't set the values of the RTC sec and subsec using :
HWREG(AON_RTC_BASE + AON_RTC_O_SEC) = u32_RTC_SavedSec; HWREG(AON_RTC_BASE + AON_RTC_O_SUBSEC) = u32_RTC_SavedSubSec;
after a BIOS_start(), when the OS is running ?
Is there any real time risk doing so ?
I would like to restore the value of the RTC in case of a reset. (which seems to set the RTC time to 0, the BIOS_start seems to reset the value to 0 as well, am I right ?)
I intend to do it as the first thing I do in my application.
Thnaks for your advice !