Home
last modified time | relevance | path

Searched refs:soc_pin (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/drivers/pinctrl/
Dpinctrl_sam.c55 struct soc_gpio_pin soc_pin; in pinctrl_configure_pin() local
63 soc_pin.regs = (Gpio *) sam_port_addrs[port_idx]; in pinctrl_configure_pin()
65 soc_pin.regs = (Pio *) sam_port_addrs[port_idx]; in pinctrl_configure_pin()
67 soc_pin.periph_id = sam_port_clocks[port_idx].peripheral_id; in pinctrl_configure_pin()
68 soc_pin.mask = 1 << SAM_PINMUX_PIN_GET(pin); in pinctrl_configure_pin()
69 soc_pin.flags = SAM_PINCTRL_FLAGS_GET(pin) << SOC_GPIO_FLAGS_POS; in pinctrl_configure_pin()
72 soc_pin.flags |= (SAM_PINMUX_PERIPH_GET(pin) in pinctrl_configure_pin()
76 soc_gpio_configure(&soc_pin); in pinctrl_configure_pin()
Dpinctrl_sam0.c27 struct soc_port_pin soc_pin; in pinctrl_configure_pin() local
34 soc_pin.regs = (PortGroup *) sam_port_addrs[port_idx]; in pinctrl_configure_pin()
35 soc_pin.pinum = SAM_PINMUX_PIN_GET(pin); in pinctrl_configure_pin()
36 soc_pin.flags = SAM_PINCTRL_FLAGS_GET(pin) << SOC_PORT_FLAGS_POS; in pinctrl_configure_pin()
39 soc_pin.flags |= (SAM_PINMUX_PERIPH_GET(pin) in pinctrl_configure_pin()
44 soc_port_configure(&soc_pin); in pinctrl_configure_pin()
Dpinctrl_max32.c26 static int pinctrl_configure_pin(pinctrl_soc_pin_t soc_pin) in pinctrl_configure_pin() argument
34 port = MAX32_PINMUX_PORT(soc_pin.pinmux); in pinctrl_configure_pin()
35 pin = MAX32_PINMUX_PIN(soc_pin.pinmux); in pinctrl_configure_pin()
36 afx = MAX32_PINMUX_MODE(soc_pin.pinmux); in pinctrl_configure_pin()
37 pincfg = soc_pin.pincfg; in pinctrl_configure_pin()