Lines Matching +full:port +full:- +full:pin
2 * Copyright (c) 2016-2017 Piotr Mienkowski
3 * Copyright (c) 2020-2022 Gerson Fernando Budke
4 * SPDX-License-Identifier: Apache-2.0
8 * @brief Atmel SAM0 MCU family I/O Pin Controller (PORT)
17 * Pin flags/attributes
27 /* Open-Drain is a reserved entry at pinctrl driver */
29 /* Input-Enable means Input-Buffer, see dts/pinctrl/pincfg-node.yaml */
32 /* Output-Enable, see dts/pinctrl/pincfg-node.yaml */
35 /* Drive-Strength, 0mA means normal, any other value means stronger */
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.
100 * @remark During Reset, all PORT lines are configured as inputs with input
102 * BACKUP sleep mode, even if the PORT configuration registers and input
104 * PORT is powered up again), the latches in the pads will keep their current
107 * configuration in and out of BACKUP mode. The PORT peripheral will continue
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.