MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / RTC_Reset

Function RTC_Reset

bsp/efm32/Libraries/emlib/src/em_rtc.c:333–342  ·  view source on GitHub ↗

/ * @brief * Restore RTC to reset state ******************************************************************************/

Source from the content-addressed store, hash-verified

331 * Restore RTC to reset state
332 ******************************************************************************/
333void RTC_Reset(void)
334{
335 /* Restore all essential RTC register to default config */
336 RTC->FREEZE = _RTC_FREEZE_RESETVALUE;
337 RTC->CTRL = _RTC_CTRL_RESETVALUE;
338 RTC->COMP0 = _RTC_COMP0_RESETVALUE;
339 RTC->COMP1 = _RTC_COMP1_RESETVALUE;
340 RTC->IEN = _RTC_IEN_RESETVALUE;
341 RTC->IFC = _RTC_IFC_RESETVALUE;
342}
343
344
345

Callers 1

rt_hw_rtc_initFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected