Home
last modified time | relevance | path

Searched refs:CC_timers (Results 1 – 2 of 2) sorted by relevance

/nrf_hw_models-latest/src/HW_models/
DNHW_TIMER.c54 bs_time_t *CC_timers; //[n_CCs] In timer mode: When each compare match is expected to happen member
102 t_st->CC_timers = (bs_time_t *)bs_malloc(sizeof(bs_time_t)*Timer_n_CCs[t]); in nhw_timer_init()
106 t_st->CC_timers[cc] = TIME_NEVER; in nhw_timer_init()
127 free(t_st->CC_timers); in nhw_timer_free()
128 t_st->CC_timers = NULL; in nhw_timer_free()
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()
223 this->CC_timers[cc] = next_match; in update_cc_timer()
225 this->CC_timers[cc] = TIME_NEVER; in update_cc_timer()
287 this->CC_timers[cc] = TIME_NEVER; in nhw_timer_TASK_STOP()
[all …]
DNHW_GRTC.c88 bs_time_t *CC_timers; //[n_CCs] When each compare match is expected to happen member
133 nhw_grtc_st.CC_timers = (bs_time_t *)bs_calloc(nhw_grtc_st.n_cc, sizeof(bs_time_t)); in nhw_grtc_init()
155 free(nhw_grtc_st.CC_timers); in nhw_grtc_free()
156 nhw_grtc_st.CC_timers = NULL; in nhw_grtc_free()
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()
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()
218 nhw_grtc_st.CC_timers[cc] = TIME_NEVER; in nhw_GRTC_update_cc_timer()
[all …]