Lines Matching refs:RTC
84 hri_rtcmode0_write_CTRLA_reg(RTC, RTC_MODE0_CTRLA_SWRST); in HwTimerInit()
85 hri_rtcmode0_wait_for_sync(RTC, RTC_MODE0_SYNCBUSY_SWRST); in HwTimerInit()
87 hri_rtcmode0_write_CTRLA_reg(RTC, RTC_MODE0_CTRLA_PRESCALER(0) | in HwTimerInit()
89 hri_rtcmode0_write_EVCTRL_reg(RTC, RTC_MODE0_EVCTRL_CMPEO0); in HwTimerInit()
90 hri_rtcmode0_write_COMP_reg(RTC, 0, ( uint32_t )COMPARE_COUNT_MAX_VALUE); in HwTimerInit()
91 hri_rtcmode0_set_INTEN_CMP0_bit(RTC); in HwTimerInit()
94 hri_rtcmode0_write_COUNT_reg(RTC, 0); in HwTimerInit()
95 hri_rtcmode0_wait_for_sync(RTC, RTC_MODE0_SYNCBUSY_COUNT); in HwTimerInit()
96 hri_rtcmode0_set_CTRLA_ENABLE_bit(RTC); in HwTimerInit()
130 hri_rtcmode0_write_COMP_reg(RTC, 0, ticks); in HwTimerLoadAbsoluteTicks()
131 hri_rtcmode0_wait_for_sync(RTC, RTC_MODE0_SYNCBUSY_MASK); in HwTimerLoadAbsoluteTicks()
132 uint32_t current = hri_rtcmode0_read_COUNT_reg(RTC); in HwTimerLoadAbsoluteTicks()
152 hri_rtcmode0_wait_for_sync(RTC, RTC_MODE0_SYNCBUSY_COUNT); in HwTimerGetTime()
153 return hri_rtcmode0_read_COUNT_reg(RTC); in HwTimerGetTime()
170 uint16_t flag = hri_rtcmode0_read_INTFLAG_reg(RTC); in RTC_Handler()
176 hri_rtcmode0_clear_interrupt_CMP0_bit(RTC); in RTC_Handler()
183 hri_rtcmode0_clear_interrupt_OVF_bit(RTC); in RTC_Handler()