Home
last modified time | relevance | path

Searched refs:cc (Results 1 – 6 of 6) sorted by relevance

/nrf_hw_models-latest/src/HW_models/
DNHW_GRTC.c99 static void nhw_GRTC_update_cc_timer(uint inst, int cc);
197 for (uint cc = 0 ; cc < nhw_grtc_st.n_cc ; cc++) { in nhw_GRTC_update_master_timer() local
198 if (nhw_grtc_st.CC_timers[cc] < Timer_GRTC) { in nhw_GRTC_update_master_timer()
199 Timer_GRTC = nhw_grtc_st.CC_timers[cc]; in nhw_GRTC_update_master_timer()
209 static void nhw_GRTC_update_cc_timer(uint inst, int cc) { in nhw_GRTC_update_cc_timer() argument
211 if (NRF_GRTC_regs.CC[cc].CCEN) { in nhw_GRTC_update_cc_timer()
212 uint64_t cc_value = ((uint64_t)NRF_GRTC_regs.CC[cc].CCH << 32) | NRF_GRTC_regs.CC[cc].CCL; in nhw_GRTC_update_cc_timer()
213 nhw_grtc_st.CC_timers[cc] = nhw_GRTC_counter_to_time(inst, cc_value); in nhw_GRTC_update_cc_timer()
214 if (nhw_grtc_st.CC_timers[cc] < nsi_hws_get_time()) { in nhw_GRTC_update_cc_timer()
215 nhw_grtc_st.CC_timers[cc] = nsi_hws_get_time(); in nhw_GRTC_update_cc_timer()
[all …]
DNHW_TIMER.c105 for (unsigned int cc = 0; cc < t_st->n_CCs ; cc++) { in nhw_timer_init() local
106 t_st->CC_timers[cc] = TIME_NEVER; in nhw_timer_init()
200 for (unsigned int cc = 0 ; cc < t_st->n_CCs ; cc++) { in update_master_timer() local
201 if (t_st->CC_timers[cc] < Timer_TIMERs) { in update_master_timer()
202 Timer_TIMERs = t_st->CC_timers[cc]; in update_master_timer()
214 static void update_cc_timer(int t, int cc) { in update_cc_timer() argument
219 + counter_to_time(NRF_TIMER_regs[t].CC[cc], t); in update_cc_timer()
223 this->CC_timers[cc] = next_match; in update_cc_timer()
225 this->CC_timers[cc] = TIME_NEVER; in update_cc_timer()
230 for (unsigned int cc = 0 ; cc < nhw_timer_st[t].n_CCs; cc++) { in update_all_cc_timers() local
[all …]
DNHW_RTC.c152 static void nhw_rtc_signal_COMPARE(uint rtc, uint cc);
335 for (int cc = 0 ; cc < this->n_CCs ; cc++) { in nhw_rtc_update_master_timer() local
336 if (this->cc_timers[cc] < Timer_RTC) { in nhw_rtc_update_master_timer()
337 Timer_RTC = this->cc_timers[cc]; in nhw_rtc_update_master_timer()
352 static void update_cc_timer(uint rtc, uint cc) { in update_cc_timer() argument
354 …nhw_rtc_st[rtc].cc_timers[cc] = get_counter_match_time(rtc, NRF_RTC_regs[rtc].CC[cc], &match_sub_u… in update_cc_timer()
362 for (int cc = 0 ; cc < nhw_rtc_st[rtc].n_CCs; cc++) { in update_all_cc_timers() local
363 update_cc_timer(rtc, cc); in update_all_cc_timers()
438 for (int cc = 0 ; cc < rtc_el->n_CCs ; cc++) { in nhw_rtc_timer_triggered() local
439 if (rtc_el->cc_timers[cc] == Timer_RTC ){ //This CC is matching now in nhw_rtc_timer_triggered()
[all …]
DNHW_GRTC.h35 void nhw_GRTC_regw_sideeffects_CC_CCEN(uint inst, uint cc);
36 void nhw_GRTC_regw_sideeffects_CC_CCL(uint inst, uint cc);
37 void nhw_GRTC_regw_sideeffects_CC_CCH(uint inst, uint cc);
DNHW_RTC.h21 void nhw_rtc_regw_sideeffect_TASKS_CAPTURE(uint i, uint cc);
32 void nhw_rtc_regw_sideeffects_SUBSCRIBE_CAPTURE(uint inst, uint cc);
/nrf_hw_models-latest/src/nrfx/hal/
Dnrf_rtc.c62 int cc = (task - NRF_RTC_TASK_CAPTURE_0)/sizeof(uint32_t); in nrf_rtc_task_trigger() local
63 nhw_rtc_regw_sideeffect_TASKS_CAPTURE(i, cc); in nrf_rtc_task_trigger()