Lines Matching +full:1 +full:pin

8  * @brief Atmel SAM0 MCU family I/O Pin Controller (PORT)
17 * Pin flags/attributes
24 #define SOC_PORT_PULLUP (1 << SOC_PORT_PULLUP_POS)
25 #define SOC_PORT_PULLDOWN_POS (SOC_PORT_PULLUP_POS + 1U)
26 #define SOC_PORT_PULLDOWN (1 << SOC_PORT_PULLDOWN_POS)
28 #define SOC_GPIO_OPENDRAIN_POS (SOC_PORT_PULLDOWN_POS + 1U)
30 #define SOC_PORT_INPUT_ENABLE_POS (SOC_GPIO_OPENDRAIN_POS + 1U)
31 #define SOC_PORT_INPUT_ENABLE (1 << SOC_PORT_INPUT_ENABLE_POS)
33 #define SOC_PORT_OUTPUT_ENABLE_POS (SOC_PORT_INPUT_ENABLE_POS + 1U)
34 #define SOC_PORT_OUTPUT_ENABLE (1 << SOC_PORT_OUTPUT_ENABLE_POS)
36 #define SOC_PORT_STRENGTH_STRONGER_POS (SOC_PORT_OUTPUT_ENABLE_POS + 1U)
37 #define SOC_PORT_STRENGTH_STRONGER (1 << SOC_PORT_STRENGTH_STRONGER_POS)
39 #define SOC_PORT_PMUXEN_ENABLE_POS (SOC_PORT_STRENGTH_STRONGER_POS + 1U)
40 #define SOC_PORT_PMUXEN_ENABLE (1 << SOC_PORT_PMUXEN_ENABLE_POS)
46 /** Connect pin to peripheral A. */
48 /** Connect pin to peripheral B. */
50 /** Connect pin to peripheral C. */
52 /** Connect pin to peripheral D. */
54 /** Connect pin to peripheral E. */
56 /** Connect pin to peripheral F. */
58 /** Connect pin to peripheral G. */
60 /** Connect pin to peripheral H. */
62 /** Connect pin to peripheral I. */
64 /** Connect pin to peripheral J. */
66 /** Connect pin to peripheral K. */
68 /** Connect pin to peripheral L. */
70 /** Connect pin to peripheral M. */
72 /** Connect pin to peripheral N. */
76 PortGroup *regs; /** pointer to registers of the I/O Pin Controller */
77 uint32_t pinum; /** pin number */
78 uint32_t flags; /** pin flags/attributes */
82 * @brief Configure PORT pin muxing.
84 * Configure one pin muxing belonging to some PORT.
87 * @param pin Pin number
88 * @param func Pin Function
90 int soc_port_pinmux_set(PortGroup *pg, uint32_t pin, uint32_t func);
93 * @brief Configure PORT pin.
95 * Configure one pin belonging to some PORT.
97 * - configure pin(s) as input.
98 * - connect pin(s) to a peripheral B and enable pull-up.
110 * @param pin pin's configuration data such as pin mask, pin attributes, etc.
112 void soc_port_configure(const struct soc_port_pin *pin);
115 * @brief Configure a list of PORT pin(s).
121 * @param pins an array where each item contains pin's configuration data.
122 * @param size size of the pin list.