Home
last modified time | relevance | path

Searched refs:timer_inst (Results 1 – 5 of 5) sorted by relevance

/hal_nordic-latest/nrfx/samples/src/nrfx_timer/timer/
Dmain.c97 nrfx_timer_t timer_inst = NRFX_TIMER_INSTANCE(TIMER_INST_IDX); in main() local
98 uint32_t base_frequency = NRF_TIMER_BASE_FREQUENCY_GET(timer_inst.p_reg); in main()
103 status = nrfx_timer_init(&timer_inst, &config, timer_handler); in main()
106 nrfx_timer_clear(&timer_inst); in main()
109 uint32_t desired_ticks = nrfx_timer_ms_to_ticks(&timer_inst, TIME_TO_WAIT_MS); in main()
116 nrfx_timer_extended_compare(&timer_inst, NRF_TIMER_CC_CHANNEL0, desired_ticks, in main()
119 nrfx_timer_enable(&timer_inst); in main()
120 NRFX_LOG_INFO("Timer status: %s", nrfx_timer_is_enabled(&timer_inst) ? "enabled" : "disabled"); in main()
/hal_nordic-latest/nrfx/samples/src/nrfx_gppi/one_to_one/
Dmain.c143 nrfx_timer_t timer_inst = NRFX_TIMER_INSTANCE(TIMER_INST_IDX); in main() local
144 uint32_t base_frequency = NRF_TIMER_BASE_FREQUENCY_GET(timer_inst.p_reg); in main()
149 status = nrfx_timer_init(&timer_inst, &timer_config, timer_handler); in main()
152 nrfx_timer_clear(&timer_inst); in main()
155 uint32_t desired_ticks = nrfx_timer_ms_to_ticks(&timer_inst, TIME_TO_WAIT_MS); in main()
163 nrfx_timer_extended_compare(&timer_inst, NRF_TIMER_CC_CHANNEL0, desired_ticks, in main()
174 nrfx_timer_compare_event_address_get(&timer_inst, NRF_TIMER_CC_CHANNEL0), in main()
179 nrfx_timer_enable(&timer_inst); in main()
180 NRFX_LOG_INFO("Timer status: %s", nrfx_timer_is_enabled(&timer_inst) ? "enabled" : "disabled"); in main()
/hal_nordic-latest/nrfx/samples/src/nrfx_gppi/fork/
Dmain.c170 nrfx_timer_t timer_inst = NRFX_TIMER_INSTANCE(TIMER_INST_IDX); in main() local
171 uint32_t base_frequency = NRF_TIMER_BASE_FREQUENCY_GET(timer_inst.p_reg); in main()
176 status = nrfx_timer_init(&timer_inst, &timer_config, timer_handler); in main()
179 nrfx_timer_clear(&timer_inst); in main()
182 uint32_t desired_ticks = nrfx_timer_ms_to_ticks(&timer_inst, TIME_TO_WAIT_MS); in main()
190 nrfx_timer_extended_compare(&timer_inst, NRF_TIMER_CC_CHANNEL0, desired_ticks, in main()
201 nrfx_timer_compare_event_address_get(&timer_inst, NRF_TIMER_CC_CHANNEL0), in main()
213 nrfx_timer_enable(&timer_inst); in main()
214 NRFX_LOG_INFO("Timer status: %s", nrfx_timer_is_enabled(&timer_inst) ? "enabled" : "disabled"); in main()
/hal_nordic-latest/nrfx/samples/src/nrfx_saadc/maximum_performance/
Dmain.c245 nrfx_timer_t timer_inst = NRFX_TIMER_INSTANCE(TIMER_INST_IDX); in main() local
246 uint32_t base_frequency = NRF_TIMER_BASE_FREQUENCY_GET(timer_inst.p_reg); in main()
249 timer_config.p_context = &timer_inst; in main()
251 status = nrfx_timer_init(&timer_inst, &timer_config, timer_handler); in main()
254 nrfx_timer_clear(&timer_inst); in main()
257 uint32_t desired_ticks = nrfx_timer_us_to_ticks(&timer_inst, TIME_TO_WAIT_US); in main()
264 nrfx_timer_extended_compare(&timer_inst, in main()
300 nrfx_timer_compare_event_address_get(&timer_inst, NRF_TIMER_CC_CHANNEL0), in main()
324 nrfx_timer_enable(&timer_inst); in main()
/hal_nordic-latest/nrfx/samples/src/nrfx_timer/counter/
Dmain.c87 nrfx_timer_t * timer_inst = p_context; in timer_handler() local
97 if (timer_inst->instance_id == timer_t_inst.instance_id) in timer_handler()
108 else if (timer_inst->instance_id == timer_c_inst.instance_id) in timer_handler()