Home
last modified time | relevance | path

Searched refs:pin_config (Results 1 – 10 of 10) sorted by relevance

/Zephyr-latest/drivers/pinctrl/
Dpinctrl_gecko.c29 struct soc_gpio_pin pin_config = {0, 0, 0, 0}; in pinctrl_configure_pins() local
32 pin_config.port = GECKO_GET_PORT(pins[i]); in pinctrl_configure_pins()
33 pin_config.pin = GECKO_GET_PIN(pins[i]); in pinctrl_configure_pins()
58 pin_config.mode = gpioModePushPull; in pinctrl_configure_pins()
59 pin_config.out = 1; in pinctrl_configure_pins()
60 GPIO_PinModeSet(pin_config.port, pin_config.pin, pin_config.mode, in pinctrl_configure_pins()
61 pin_config.out); in pinctrl_configure_pins()
65 pin_config.mode = gpioModeInput; in pinctrl_configure_pins()
66 pin_config.out = 1; in pinctrl_configure_pins()
67 GPIO_PinModeSet(pin_config.port, pin_config.pin, pin_config.mode, in pinctrl_configure_pins()
[all …]
Dpinctrl_ambiq.c14 am_hal_gpio_pincfg_t pin_config = {0}; in pinctrl_configure_pin() local
17 pin_config.uFuncSel = pin->alt_func; in pinctrl_configure_pin()
18 pin_config.eGPInput = in pinctrl_configure_pin()
20 pin_config.eGPOutcfg = pin->push_pull ? AM_HAL_GPIO_PIN_OUTCFG_PUSHPULL in pinctrl_configure_pin()
24 pin_config.eDriveStrength = pin->drive_strength; in pinctrl_configure_pin()
25 pin_config.uNCE = pin->iom_nce; in pinctrl_configure_pin()
27 pin_config.bIomMSPIn = pin->iom_mspi; in pinctrl_configure_pin()
29 pin_config.uIOMnum = pin->iom_num; in pinctrl_configure_pin()
32 pin_config.ePullup = pin->ambiq_pull_up_ohms + AM_HAL_GPIO_PIN_PULLUP_1_5K; in pinctrl_configure_pin()
34 pin_config.ePullup = AM_HAL_GPIO_PIN_PULLDOWN; in pinctrl_configure_pin()
[all …]
/Zephyr-latest/drivers/gpio/
Dgpio_xmc4xxx.c34 static int gpio_xmc4xxx_convert_flags(XMC_GPIO_CONFIG_t *pin_config, gpio_flags_t flags) in gpio_xmc4xxx_convert_flags() argument
50 pin_config->mode = XMC_GPIO_MODE_INPUT_TRISTATE; in gpio_xmc4xxx_convert_flags()
52 pin_config->mode = XMC_GPIO_MODE_INPUT_PULL_DOWN; in gpio_xmc4xxx_convert_flags()
55 pin_config->mode = XMC_GPIO_MODE_INPUT_PULL_UP; in gpio_xmc4xxx_convert_flags()
65 pin_config->mode = XMC_GPIO_MODE_OUTPUT_PUSH_PULL; in gpio_xmc4xxx_convert_flags()
67 pin_config->mode = XMC_GPIO_MODE_OUTPUT_OPEN_DRAIN; in gpio_xmc4xxx_convert_flags()
70 pin_config->output_level = XMC_GPIO_OUTPUT_LEVEL_LOW; in gpio_xmc4xxx_convert_flags()
73 pin_config->output_level = XMC_GPIO_OUTPUT_LEVEL_HIGH; in gpio_xmc4xxx_convert_flags()
76 pin_config->output_strength = XMC_GPIO_OUTPUT_STRENGTH_STRONG_MEDIUM_EDGE; in gpio_xmc4xxx_convert_flags()
78 pin_config->output_strength = ds - 1; in gpio_xmc4xxx_convert_flags()
[all …]
Dgpio_sedi.c133 sedi_gpio_pin_config_t pin_config = { 0 }; in gpio_sedi_configure() local
143 pin_config.enable_interrupt = false; in gpio_sedi_configure()
146 pin_config.direction = SEDI_GPIO_DIR_MODE_OUTPUT; in gpio_sedi_configure()
147 sedi_gpio_config_pin(gpio_dev, pin, pin_config); in gpio_sedi_configure()
155 pin_config.direction = SEDI_GPIO_DIR_MODE_INPUT; in gpio_sedi_configure()
156 sedi_gpio_config_pin(gpio_dev, pin, pin_config); in gpio_sedi_configure()
221 sedi_gpio_pin_config_t pin_config = { 0 }; in gpio_sedi_interrupt_configure() local
228 pin_config.direction = SEDI_GPIO_DIR_MODE_INPUT; in gpio_sedi_interrupt_configure()
229 pin_config.enable_wakeup = true; in gpio_sedi_interrupt_configure()
231 pin_config.enable_interrupt = false; in gpio_sedi_interrupt_configure()
[all …]
Dgpio_mcux_lpc.c313 gpio_interrupt_config_t pin_config; in gpio_mcux_lpc_module_interrupt_cfg() local
331 pin_config.mode = kGPIO_PinIntEnableLevel; in gpio_mcux_lpc_module_interrupt_cfg()
333 pin_config.mode = kGPIO_PinIntEnableEdge; in gpio_mcux_lpc_module_interrupt_cfg()
340 pin_config.polarity = kGPIO_PinIntEnableHighOrRise; in gpio_mcux_lpc_module_interrupt_cfg()
342 pin_config.polarity = kGPIO_PinIntEnableLowOrFall; in gpio_mcux_lpc_module_interrupt_cfg()
348 GPIO_SetPinInterruptConfig(config->gpio_base, config->port_no, pin, &pin_config); in gpio_mcux_lpc_module_interrupt_cfg()
Dgpio_creg_gpio.c107 static int pin_config(const struct device *dev, in pin_config() function
152 .pin_configure = pin_config,
Dgpio_stm32.c543 struct gpio_stm32_pin pin_config; in gpio_stm32_get_config() local
553 pin_config.type = LL_GPIO_GetPinOutputType(gpio, pin_ll); in gpio_stm32_get_config()
554 pin_config.pupd = ll_gpio_get_pin_pull(gpio, pin_ll); in gpio_stm32_get_config()
555 pin_config.mode = LL_GPIO_GetPinMode(gpio, pin_ll); in gpio_stm32_get_config()
556 pin_config.out_state = LL_GPIO_IsOutputPinSet(gpio, pin_ll); in gpio_stm32_get_config()
558 gpio_stm32_pincfg_to_flags(pin_config, flags); in gpio_stm32_get_config()
/Zephyr-latest/drivers/sensor/st/qdec_stm32/
Dqdec_stm32.c30 const struct pinctrl_dev_config *pin_config; member
86 retval = pinctrl_apply_state(dev_cfg->pin_config, PINCTRL_STATE_DEFAULT); in qdec_stm32_initialize()
150 .pin_config = PINCTRL_DT_INST_DEV_CONFIG_GET(n), \
/Zephyr-latest/drivers/serial/
Duart_renesas_rz_scif.c16 const struct pinctrl_dev_config *pin_config; member
217 ret = pinctrl_apply_state(config->pin_config, PINCTRL_STATE_DEFAULT); in uart_rz_scif_init()
277 .pin_config = PINCTRL_DT_INST_DEV_CONFIG_GET(n), .fsp_api = &g_uart_on_scif}; \
Duart_rzt2m.c24 const struct pinctrl_dev_config *pin_config; member
303 ret = pinctrl_apply_state(config->pin_config, PINCTRL_STATE_DEFAULT); in rzt2m_uart_init()
441 .pin_config = PINCTRL_DT_INST_DEV_CONFIG_GET(n)}; \