Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
|
Atmel SAM SoC specific helpers for pinctrl driver. More...
#include <zephyr/devicetree.h>
#include <zephyr/types.h>
#include <dt-bindings/pinctrl/atmel_sam_pinctrl.h>
Go to the source code of this file.
Atmel SAM SoC specific helpers for pinctrl driver.
#define SAM_PINCTRL_DRIVESTRENGTH (1U << SAM_PINCTRL_DRIVESTRENGTH_POS) |
#define SAM_PINCTRL_DRIVESTRENGTH_POS (SAM_PINCTRL_OUTPUTENABLE_POS + 1U) |
#define SAM_PINCTRL_FLAG_GET | ( | pincfg, | |
pos ) |
Obtain Flag value from pinctrl_soc_pin_t configuration.
pincfg | pinctrl_soc_pin_t bit field value. |
pos | attribute/flags bit position (SAM_PINFLAGS). |
#define SAM_PINCTRL_FLAG_MASK (1U) |
#define SAM_PINCTRL_FLAGS_GET | ( | pincfg | ) |
#define SAM_PINCTRL_FLAGS_MASK (0x3F << SAM_PINCTRL_FLAGS_POS) |
#define SAM_PINCTRL_FLAGS_POS (0U) |
#define SAM_PINCTRL_INPUTENABLE (1U << SAM_PINCTRL_INPUTENABLE_POS) |
#define SAM_PINCTRL_INPUTENABLE_POS (SAM_PINCTRL_OPENDRAIN_POS + 1U) |
#define SAM_PINCTRL_OPENDRAIN (1U << SAM_PINCTRL_OPENDRAIN_POS) |
#define SAM_PINCTRL_OPENDRAIN_POS (SAM_PINCTRL_PULLDOWN_POS + 1U) |
#define SAM_PINCTRL_OUTPUTENABLE (1U << SAM_PINCTRL_OUTPUTENABLE_POS) |
#define SAM_PINCTRL_OUTPUTENABLE_POS (SAM_PINCTRL_INPUTENABLE_POS + 1U) |
#define SAM_PINCTRL_PULLDOWN (1U << SAM_PINCTRL_PULLDOWN_POS) |
#define SAM_PINCTRL_PULLDOWN_POS (SAM_PINCTRL_PULLUP_POS + 1U) |
#define SAM_PINCTRL_PULLUP (1U << SAM_PINCTRL_PULLUP_POS) |
#define SAM_PINCTRL_PULLUP_POS (SAM_PINCTRL_FLAGS_POS) |