mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-06 03:40:18 +00:00
fix esp ci build with IDF version 5
This commit is contained in:
parent
76987fb357
commit
e635c16de0
@ -98,7 +98,11 @@ static void configure_pins(usb_hal_context_t *usb)
|
|||||||
esp_rom_gpio_connect_out_signal(iopin->pin, iopin->func, false, false);
|
esp_rom_gpio_connect_out_signal(iopin->pin, iopin->func, false, false);
|
||||||
} else {
|
} else {
|
||||||
esp_rom_gpio_connect_in_signal(iopin->pin, iopin->func, false);
|
esp_rom_gpio_connect_in_signal(iopin->pin, iopin->func, false);
|
||||||
|
#if ESP_IDF_VERSION_MAJOR > 4
|
||||||
|
if ((iopin->pin != GPIO_MATRIX_CONST_ZERO_INPUT) && (iopin->pin != GPIO_MATRIX_CONST_ONE_INPUT)) {
|
||||||
|
#else
|
||||||
if ((iopin->pin != GPIO_FUNC_IN_LOW) && (iopin->pin != GPIO_FUNC_IN_HIGH)) {
|
if ((iopin->pin != GPIO_FUNC_IN_LOW) && (iopin->pin != GPIO_FUNC_IN_HIGH)) {
|
||||||
|
#endif
|
||||||
gpio_ll_input_enable(&GPIO, iopin->pin);
|
gpio_ll_input_enable(&GPIO, iopin->pin);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user