init rtc

Zynq UltraScale+ Device Technical Reference Manual (UG1085)

Document ID
Release Date
2.4 English

1.Write the value 0019_8231h into the calibration register, CALIB_WRITE.

2.Set the oscillator to crystal and enable the battery switch in the control register, CONTROL.

3.Clear the interrupt status in the interrupt status register, RTC_INT_STATUS.

4.   Disable all interrupts in the interrupt disable register, RTC_INT_DIS.