Lines Matching refs:pin_config
34 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()
89 XMC_GPIO_CONFIG_t pin_config = {0}; in gpio_xmc4xxx_pin_configure() local
102 ret = gpio_xmc4xxx_convert_flags(&pin_config, flags); in gpio_xmc4xxx_pin_configure()
107 XMC_GPIO_Init(port, pin, &pin_config); in gpio_xmc4xxx_pin_configure()