drivers: use new PM macros
Port some drivers to the recently introduced macros to showcase its usage and be able to do some initial testing (nRF52840). Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
e2f33dd97c
commit
88a69674c0
38 changed files with 123 additions and 71 deletions
|
@ -368,8 +368,9 @@ static int pwm_nrfx_pm_action(const struct device *dev,
|
|||
.seq.values.p_raw = pwm_nrfx_##idx##_data.current, \
|
||||
.seq.length = NRF_PWM_CHANNEL_COUNT \
|
||||
}; \
|
||||
PM_DEVICE_DT_DEFINE(PWM(idx), pwm_nrfx_pm_action); \
|
||||
DEVICE_DT_DEFINE(PWM(idx), \
|
||||
pwm_nrfx_init, pwm_nrfx_pm_action, \
|
||||
pwm_nrfx_init, PM_DEVICE_DT_REF(PWM(idx)), \
|
||||
&pwm_nrfx_##idx##_data, \
|
||||
&pwm_nrfx_##idx##config, \
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue