Lines Matching refs:PWM
354 #define PWM(dev_idx) DT_NODELABEL(pwm##dev_idx) macro
355 #define PWM_PROP(dev_idx, prop) DT_PROP(PWM(dev_idx), prop)
356 #define PWM_HAS_PROP(idx, prop) DT_NODE_HAS_PROP(PWM(idx), prop)
357 #define PWM_MEM_REGION(idx) DT_PHANDLE(PWM(idx), memory_regions)
370 NRF_DT_CHECK_NODE_HAS_PINCTRL_SLEEP(PWM(idx)); \
374 PINCTRL_DT_DEFINE(PWM(idx)); \
390 .pcfg = PINCTRL_DT_DEV_CONFIG_GET(PWM(idx)), \
391 .clock_freq = COND_CODE_1(DT_CLOCKS_HAS_IDX(PWM(idx), 0), \
392 (DT_PROP(DT_CLOCKS_CTLR(PWM(idx)), clock_frequency)), \
399 IRQ_CONNECT(DT_IRQN(PWM(idx)), DT_IRQ(PWM(idx), priority), \
403 PM_DEVICE_DT_DEFINE(PWM(idx), pwm_nrfx_pm_action); \
404 DEVICE_DT_DEFINE(PWM(idx), \
405 pwm_nrfx_init##idx, PM_DEVICE_DT_GET(PWM(idx)), \
414 NRFX_FOREACH_PRESENT(PWM, COND_PWM_NRFX_DEVICE, (), (), _)