Lines Matching refs:rtc_st
164 struct rtc_status *rtc_st = &nhw_rtc_st[i]; in nhw_rtc_init() local
166 rtc_st->NRF_RTC_regs = &NRF_RTC_regs[i]; in nhw_rtc_init()
167 rtc_st->n_CCs = RTC_n_CCs[i]; in nhw_rtc_init()
169 rtc_st->counter_startT_sub_us = TIME_NEVER; in nhw_rtc_init()
171 rtc_st->cc_timers = (bs_time_t *)bs_malloc(sizeof(bs_time_t)*RTC_n_CCs[i]); in nhw_rtc_init()
173 for (int j = 0 ; j < rtc_st->n_CCs ; j++) { in nhw_rtc_init()
174 rtc_st->cc_timers[j] = TIME_NEVER; in nhw_rtc_init()
176 rtc_st->overflow_timer = TIME_NEVER; in nhw_rtc_init()
177 rtc_st->overflow_timer_sub_us = TIME_NEVER; in nhw_rtc_init()
180 rtc_st->dppi_map = nhw_rtc_dppi_map[i]; in nhw_rtc_init()
181 …rtc_st->subscribed_CAPTURE = (struct nhw_subsc_mem*)bs_calloc(RTC_n_CCs[i], sizeof(struct nhw_subs… in nhw_rtc_init()
195 struct rtc_status *rtc_st = &nhw_rtc_st[t]; in nhw_rtc_free() local
197 free(rtc_st->cc_timers); in nhw_rtc_free()
198 rtc_st->cc_timers = NULL; in nhw_rtc_free()
201 free(rtc_st->subscribed_CAPTURE); in nhw_rtc_free()
202 rtc_st->subscribed_CAPTURE = NULL; in nhw_rtc_free()