Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/pinctrl/
Dpinctrl_numaker.c43 uint8_t port_index = PORT_INDEX(pin_mux); in configure_pin() local
47 uint32_t *GPx_MFPx = ((uint32_t *)MFP_BASE) + port_index * 4 + (pin_index / 4); in configure_pin()
48 uint32_t *GPx_MFOSx = ((uint32_t *)MFOS_BASE) + port_index; in configure_pin()
62 gpio_configure(pin, port_index, pin_index); in configure_pin()
/Zephyr-latest/drivers/gpio/
Dgpio_numaker.c43 uint32_t port_index; in gpio_numaker_configure() local
76 port_index = (config->reg - config->gpa_base) / config->size; in gpio_numaker_configure()
77 GPx_MFPx = ((uint32_t *)&SYS->GPA_MFP0) + port_index * 4 + (pin / 4); in gpio_numaker_configure()
Dgpio_gd32.c85 uint8_t port_index, shift; in gpio_gd32_configure_extiss() local
120 port_index = (config->reg - GPIOA) / (GPIOB - GPIOA); in gpio_gd32_configure_extiss()
124 *extiss |= port_index << shift; in gpio_gd32_configure_extiss()