Skip to content

Commit 1214601

Browse files
committed
drivers: pinctrl: introduce standard RESET state
State that defines the pin states when the peripheral is reset, ie, not initialized. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent f989c91 commit 1214601

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/zephyr/drivers/pinctrl.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ extern "C" {
4242
#define PINCTRL_STATE_DEFAULT 0U
4343
/** Sleep state (state used when the device is in low power mode). */
4444
#define PINCTRL_STATE_SLEEP 1U
45+
/** Reset state (state used when the device is not initialized). */
46+
#define PINCTRL_STATE_RESET 2U
4547

4648
/** This and higher values refer to custom private states. */
47-
#define PINCTRL_STATE_PRIV_START 2U
49+
#define PINCTRL_STATE_PRIV_START 3U
4850

4951
/** @} */
5052

0 commit comments

Comments
 (0)