Skip to content

Commit

Permalink
change(esp_tinyusb): Changed dep from OTG20_HSPHY_INTERFACE to SOC_US…
Browse files Browse the repository at this point in the history
…B_OTG_PERIPH_NUM for v5.0
  • Loading branch information
roma-jam committed Jan 14, 2025
1 parent 14be063 commit 8237a96
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions device/esp_tinyusb/tinyusb.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2020-2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2020-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand All @@ -11,7 +11,6 @@
#include "esp_private/periph_ctrl.h"
#include "esp_private/usb_phy.h"
#include "soc/usb_pins.h"
#include "soc/usb_dwc_cfg.h" // To get awailable OTG interfaces
#include "tinyusb.h"
#include "descriptors_control.h"
#include "tusb.h"
Expand All @@ -33,9 +32,9 @@ esp_err_t tinyusb_driver_install(const tinyusb_config_t *config)
usb_phy_config_t phy_conf = {
.controller = USB_PHY_CTRL_OTG,
.otg_mode = USB_OTG_MODE_DEVICE,
#if OTG20_HSPHY_INTERFACE
#if (SOC_USB_OTG_PERIPH_NUM > 1)
.otg_speed = (TUD_OPT_HIGH_SPEED) ? USB_PHY_SPEED_HIGH : USB_PHY_SPEED_FULL,
#endif // OTG20_HSPHY_INTERFACE
#endif // SOC_USB_OTG_PERIPH_NUM > 1
};

// External PHY IOs config
Expand Down

0 comments on commit 8237a96

Please sign in to comment.