Skip to content

Commit

Permalink
feature(esp_tinyusb): Added config option to select FS periph on esp32p4
Browse files Browse the repository at this point in the history
  • Loading branch information
roma-jam committed Jan 10, 2025
1 parent d8041fd commit d9c5e8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion device/esp_tinyusb/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ menu "TinyUSB Stack"
prompt "TinyUSB PHY"
default TINYUSB_RHPORT_HS
help
Allows set the USB PHY Controller for TinyUSB: HS (USB OTG2.0 PHY for HighSpeed)
Allows set the USB PHY Controller for TinyUSB:
- HS (USB OTG2.0 PHY for HighSpeed)
- FS (USB OTG1.1 PHY for FullSpeed)

config TINYUSB_RHPORT_HS
bool "HS"
config TINYUSB_RHPORT_FS
bool "FS"
endchoice

menu "TinyUSB DCD"
Expand Down
1 change: 1 addition & 0 deletions device/esp_tinyusb/tinyusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ 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,
.otg_speed = (TUD_OPT_HIGH_SPEED) ? USB_PHY_SPEED_HIGH : USB_PHY_SPEED_FULL,
};

// External PHY IOs config
Expand Down

0 comments on commit d9c5e8b

Please sign in to comment.