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
|
@ -1997,9 +1997,12 @@ static int uarte_nrfx_pm_action(const struct device *dev,
|
|||
dev, \
|
||||
IS_ENABLED(CONFIG_UART_##idx##_INTERRUPT_DRIVEN)); \
|
||||
} \
|
||||
\
|
||||
PM_DEVICE_DT_DEFINE(UARTE(idx), uarte_nrfx_pm_action); \
|
||||
\
|
||||
DEVICE_DT_DEFINE(UARTE(idx), \
|
||||
uarte_##idx##_init, \
|
||||
uarte_nrfx_pm_action, \
|
||||
PM_DEVICE_DT_REF(UARTE(idx)), \
|
||||
&uarte_##idx##_data, \
|
||||
&uarte_##idx##z_config, \
|
||||
PRE_KERNEL_1, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue