Lines Matching refs:pin_cfg
20 XMC_GPIO_CONFIG_t pin_cfg = {0}; in pinctrl_configure_pin() local
31 pin_cfg.mode = XMC_GPIO_MODE_INPUT_PULL_DOWN; in pinctrl_configure_pin()
35 pin_cfg.mode = XMC_GPIO_MODE_INPUT_PULL_UP; in pinctrl_configure_pin()
39 pin_cfg.mode |= 0x4; in pinctrl_configure_pin()
43 pin_cfg.mode = XMC_GPIO_MODE_OUTPUT_OPEN_DRAIN; in pinctrl_configure_pin()
47 pin_cfg.mode = XMC_GPIO_MODE_OUTPUT_PUSH_PULL; in pinctrl_configure_pin()
51 pin_cfg.mode |= alt_fun << PORT0_IOCR0_PC0_Pos; in pinctrl_configure_pin()
55 pin_cfg.output_level = XMC_GPIO_OUTPUT_LEVEL_HIGH; in pinctrl_configure_pin()
60 pin_cfg.output_level = XMC_GPIO_OUTPUT_LEVEL_LOW; in pinctrl_configure_pin()
64 pin_cfg.output_strength = XMC4XXX_PINMUX_GET_DRIVE(pinmux); in pinctrl_configure_pin()
67 XMC_GPIO_Init(gpio_port, pin, &pin_cfg); in pinctrl_configure_pin()