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).
This commit is contained in:
Darian Leung
2023-12-28 11:48:34 +08:00
parent f524a59875
commit 148cc6e75d
11 changed files with 7 additions and 7 deletions

View File

@@ -19,7 +19,7 @@
#include "esp32s2/rom/usb/usb_common.h" #include "esp32s2/rom/usb/usb_common.h"
#endif #endif
#if SOC_USB_SERIAL_JTAG_SUPPORTED #if SOC_USB_SERIAL_JTAG_SUPPORTED
#include "hal/usb_phy_ll.h" #include "hal/usb_fsls_phy_ll.h"
#endif #endif
#include "esp_rom_gpio.h" #include "esp_rom_gpio.h"
#include "esp_rom_uart.h" #include "esp_rom_uart.h"

View File

@@ -8,7 +8,7 @@
#include <stdbool.h> #include <stdbool.h>
#include "esp_log.h" #include "esp_log.h"
#include "hal/usb_serial_jtag_ll.h" #include "hal/usb_serial_jtag_ll.h"
#include "hal/usb_phy_ll.h" #include "hal/usb_fsls_phy_ll.h"
#include "freertos/FreeRTOS.h" #include "freertos/FreeRTOS.h"
#include "freertos/semphr.h" #include "freertos/semphr.h"
#include "freertos/ringbuf.h" #include "freertos/ringbuf.h"

View File

@@ -183,7 +183,7 @@ if(NOT BOOTLOADER_BUILD)
list(APPEND srcs list(APPEND srcs
"usb_hal.c" "usb_hal.c"
"usb_dwc_hal.c" "usb_dwc_hal.c"
"usb_phy_hal.c") "usb_fsls_phy_hal.c")
endif() endif()
if(${target} STREQUAL "esp32") if(${target} STREQUAL "esp32")

View File

@@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
#include "hal/usb_phy_ll.h" #include "hal/usb_fsls_phy_ll.h"
#include "hal/usb_phy_hal.h" #include "hal/usb_fsls_phy_hal.h"
void usb_phy_hal_init(usb_phy_hal_context_t *hal) void usb_phy_hal_init(usb_phy_hal_context_t *hal)
{ {

View File

@@ -12,8 +12,8 @@
#include "esp_private/periph_ctrl.h" #include "esp_private/periph_ctrl.h"
#include "esp_private/usb_phy.h" #include "esp_private/usb_phy.h"
#include "soc/usb_otg_periph.h" #include "soc/usb_otg_periph.h"
#include "hal/usb_phy_hal.h" #include "hal/usb_fsls_phy_hal.h"
#include "hal/usb_phy_ll.h" #include "hal/usb_fsls_phy_ll.h"
#include "esp_rom_gpio.h" #include "esp_rom_gpio.h"
#include "driver/gpio.h" #include "driver/gpio.h"
#include "hal/gpio_ll.h" #include "hal/gpio_ll.h"