44 #include "nrf_drv_timer.h" 45 #include "app_error.h" 60 case NRF_TIMER_EVENT_COMPARE1:
77 APP_ERROR_CHECK(err_code);
78 nrf_drv_timer_enable(&
timer);
93 nrf_drv_timer_compare(&
timer, NRF_TIMER_CC_CHANNEL1, t,
true);
104 return nrf_drv_timer_capture(&
timer, NRF_TIMER_CC_CHANNEL0);
rtimer_clock_t rtimer_arch_now()
Returns the current real-time clock time.
static void timer_event_handler(nrf_timer_event_t event_type, void *p_context)
Handler for timer events.
void rtimer_arch_schedule(rtimer_clock_t t)
Schedules an rtimer task to be triggered at time t.
void rtimer_arch_init(void)
We don't need to explicitly initialise anything but this routine is required by the API...
void rtimer_run_next(void)
Execute the next real-time task and schedule the next task, if any.