55. RTC
55.1. Overview
The RTC demo provides the following features:
Set RTC time
Read RTC time
Set RTC Alarm
Set RTC Alarm interrupt
Enable rentention mode for Battery domain
55.2. Board Setting
No special settings are required
55.3. Running the example
When the example runs successfully, the demo will shoe the menu on the console UART port as below:
---------------------------------------------------------------------------
* *
* RTC Demo *
* *
* 1. Show RTC time *
* 2. Demonstrate 3 types of RTC alarm *
* 3. Demonstrate the retention mode of Battery Domain *
* 4. Set RTC Time *
* 5. Demonstrate RTC interrupt *
* *
---------------------------------------------------------------------------
Type one of the listed option to run corresponding example.
55.4. NOTE
Example #3 will reset the SoC, so it is better to run it with
flash_xiporflash_sdram_xiprelated builds for better user experience