Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/counter/
Dcounter_smartbond_timer.c491 #define TIMERN(idx) DT_DRV_INST(idx) macro
494 #define TIM(idx) ((TIMER2_Type *)DT_REG_ADDR(TIMERN(idx)))
497 BUILD_ASSERT(DT_PROP(TIMERN(idx), prescaler) <= 32 && \
498 DT_PROP(TIMERN(idx), prescaler) > 0, \
505 IRQ_CONNECT(DT_IRQN(TIMERN(idx)), \
506 DT_IRQ(TIMERN(idx), priority), \
510 irq_enable(DT_IRQN(TIMERN(idx))); \
520 .prescaler = DT_PROP(TIMERN(idx), prescaler) - 1, \
521 .clock_src_divn = DT_SAME_NODE(DT_PROP(TIMERN(idx), clock_src), \
524 .irqn = DT_IRQN(TIMERN(idx)), \