Searched refs:NRF_TIMER2 (Results 1 – 5 of 5) sorted by relevance
15 #define CYCLES_PER_SEC (16000000 / (1 << NRF_TIMER2->PRESCALER))19 NRF_TIMER2->TASKS_CLEAR = 1; /* Clear Timer */ in soc_timing_init()20 NRF_TIMER2->MODE = 0; /* Timer Mode */ in soc_timing_init()21 NRF_TIMER2->PRESCALER = 0; /* 16M Hz */ in soc_timing_init()23 NRF_TIMER2->BITMODE = 0; /* 16 - bit */ in soc_timing_init()25 NRF_TIMER2->BITMODE = 3; /* 32 - bit */ in soc_timing_init()31 NRF_TIMER2->TASKS_START = 1; in soc_timing_start()36 NRF_TIMER2->TASKS_STOP = 1; /* Stop Timer */ in soc_timing_stop()41 NRF_TIMER2->TASKS_CAPTURE[0] = 1; in soc_timing_counter_get()42 return NRF_TIMER2->CC[0] * ((SystemCoreClock) / CYCLES_PER_SEC); in soc_timing_counter_get()
188 CHECK_DT_REG(timer2, NRF_TIMER2);
48 #define NRF_TIMER2 NRF_PERIPH(NRF_TIMER2) macro
61 #define NRF_TIMER2 NRF_PERIPH(NRF_TIMER2) macro
52 #define NRF_TIMER2 NRF_TIMER2_NS macro