Home
last modified time | relevance | path

Searched refs:pinconfig (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/gpio/
Dgpio_mcux_lpc.c76 volatile uint32_t *pinconfig = (volatile uint32_t *)&(pinmux_base->PIO[port][pin]); in gpio_mcux_lpc_configure() local
82 *pinconfig |= IOPCTL_PIO_INBUF_EN; in gpio_mcux_lpc_configure()
85 *pinconfig |= IOPCTL_PIO_PSEDRAIN_EN; in gpio_mcux_lpc_configure()
87 *pinconfig &= ~IOPCTL_PIO_PSEDRAIN_EN; in gpio_mcux_lpc_configure()
90 *pinconfig &= ~(IOPCTL_PIO_FSEL_MASK); in gpio_mcux_lpc_configure()
93 volatile uint32_t *pinconfig; in gpio_mcux_lpc_configure() local
97 pinconfig = (volatile uint32_t *)&(pinmux_base->PIO[port][pin]); in gpio_mcux_lpc_configure()
101 *pinconfig |= IOCON_PIO_OD_MASK; in gpio_mcux_lpc_configure()
106 *pinconfig |= IOCON_PIO_DIGIMODE_MASK; in gpio_mcux_lpc_configure()
109 *pinconfig &= ~(IOCON_PIO_FUNC_MASK); in gpio_mcux_lpc_configure()
[all …]
Dgpio_mcux.c48 volatile uint32_t pinconfig = 0; in gpio_mcux_iopctl_configure() local
69 pinconfig |= IOPCTL_INBUF_EN; in gpio_mcux_iopctl_configure()
84 pinconfig |= IOPCTL_FUNC0; in gpio_mcux_iopctl_configure()
88 pinconfig |= (IOPCTL_PUPD_EN | IOPCTL_PULLUP_EN); in gpio_mcux_iopctl_configure()
91 pinconfig |= (IOPCTL_PUPD_EN | IOPCTL_PULLDOWN_EN); in gpio_mcux_iopctl_configure()
99 pinconfig |= IOPCTL_DRIVE_100OHM; in gpio_mcux_iopctl_configure()
103 pinconfig |= IOPCTL_DRIVE_33OHM; in gpio_mcux_iopctl_configure()
110 IOPCTL_PinMuxSet(port_no, pin, pinconfig); in gpio_mcux_iopctl_configure()