Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/components/usb/
Dusb_phy.c68 const usb_iopin_dsc_t iopin = usb_periph_iopins[i]; in phy_external_iopins_configure() local
69 if (iopin.pin != -1) { in phy_external_iopins_configure()
70 ESP_RETURN_ON_FALSE((iopin.is_output && GPIO_IS_VALID_OUTPUT_GPIO(iopin.pin)) || in phy_external_iopins_configure()
71 (!iopin.is_output && GPIO_IS_VALID_GPIO(iopin.pin)), in phy_external_iopins_configure()
73 esp_rom_gpio_pad_select_gpio(iopin.pin); in phy_external_iopins_configure()
74 if (iopin.is_output) { in phy_external_iopins_configure()
75 esp_rom_gpio_connect_out_signal(iopin.pin, iopin.func, false, false); in phy_external_iopins_configure()
77 esp_rom_gpio_connect_in_signal(iopin.pin, iopin.func, false); in phy_external_iopins_configure()
78 gpio_ll_input_enable(&GPIO, iopin.pin); in phy_external_iopins_configure()
80 esp_rom_gpio_pad_unhold(iopin.pin); in phy_external_iopins_configure()