Skip to content

Commit 148cc6e

Browse files
committed
refactor(hal/usb): Rename usb_phy files to usb_fsls_phy
This commit renames USB PHY related HAL files from "usb_phy_xxx" to "usb_fsls_phy_xxx" since they are only designed to support Full-Speed/Low-Speed Serial USB PHYs. This renmaing is done to accommodate future USB PHYs that use other PHY interfaces (e.g., UTMI, ULPI etc).
1 parent f524a59 commit 148cc6e

File tree

11 files changed

+7
-7
lines changed

11 files changed

+7
-7
lines changed

components/bootloader_support/src/bootloader_console.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "esp32s2/rom/usb/usb_common.h"
2020
#endif
2121
#if SOC_USB_SERIAL_JTAG_SUPPORTED
22-
#include "hal/usb_phy_ll.h"
22+
#include "hal/usb_fsls_phy_ll.h"
2323
#endif
2424
#include "esp_rom_gpio.h"
2525
#include "esp_rom_uart.h"

components/driver/usb_serial_jtag/usb_serial_jtag.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <stdbool.h>
99
#include "esp_log.h"
1010
#include "hal/usb_serial_jtag_ll.h"
11-
#include "hal/usb_phy_ll.h"
11+
#include "hal/usb_fsls_phy_ll.h"
1212
#include "freertos/FreeRTOS.h"
1313
#include "freertos/semphr.h"
1414
#include "freertos/ringbuf.h"

components/hal/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ if(NOT BOOTLOADER_BUILD)
183183
list(APPEND srcs
184184
"usb_hal.c"
185185
"usb_dwc_hal.c"
186-
"usb_phy_hal.c")
186+
"usb_fsls_phy_hal.c")
187187
endif()
188188

189189
if(${target} STREQUAL "esp32")

components/hal/usb_phy_hal.c renamed to components/hal/usb_fsls_phy_hal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include "hal/usb_phy_ll.h"
8-
#include "hal/usb_phy_hal.h"
7+
#include "hal/usb_fsls_phy_ll.h"
8+
#include "hal/usb_fsls_phy_hal.h"
99

1010
void usb_phy_hal_init(usb_phy_hal_context_t *hal)
1111
{

components/usb/usb_phy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
#include "esp_private/periph_ctrl.h"
1313
#include "esp_private/usb_phy.h"
1414
#include "soc/usb_otg_periph.h"
15-
#include "hal/usb_phy_hal.h"
16-
#include "hal/usb_phy_ll.h"
15+
#include "hal/usb_fsls_phy_hal.h"
16+
#include "hal/usb_fsls_phy_ll.h"
1717
#include "esp_rom_gpio.h"
1818
#include "driver/gpio.h"
1919
#include "hal/gpio_ll.h"

0 commit comments

Comments
 (0)