soc_nrf_common: Extend and rename the NRF_DT_ENSURE_PINS_ASSIGNED macro
Extend the macro with checks for DT properties related to pin assignments that are defined but would be ignored, depending on whether PINCTRL is enabled or not, what presumably indicates a resulting configuration different from what the user expects. Add also a possibility to indicate that the pinctrl-1 property should not be checked because the caller does not support the sleep state. Rename the macro so that its name better reflects its function. Update accordingly all drivers that use it. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
parent
1e4027aa7c
commit
a5234f3647
14 changed files with 55 additions and 24 deletions
|
@ -384,8 +384,8 @@ static int pwm_nrfx_pm_action(const struct device *dev,
|
|||
(NRFX_PWM_PIN_NOT_USED))
|
||||
|
||||
#define PWM_NRFX_DEVICE(idx) \
|
||||
NRF_DT_ENSURE_PINS_ASSIGNED(PWM(idx), \
|
||||
ch0_pin, ch1_pin, ch2_pin, ch3_pin); \
|
||||
NRF_DT_CHECK_PIN_ASSIGNMENTS(PWM(idx), 1, \
|
||||
ch0_pin, ch1_pin, ch2_pin, ch3_pin); \
|
||||
static struct pwm_nrfx_data pwm_nrfx_##idx##_data = { \
|
||||
COND_CODE_1(CONFIG_PINCTRL, (), \
|
||||
(.inverted_channels = \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue