mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 20:54:32 +02:00
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:
@@ -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"
|
||||||
|
@@ -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"
|
||||||
|
@@ -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")
|
||||||
|
@@ -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)
|
||||||
{
|
{
|
@@ -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"
|
||||||
|
Reference in New Issue
Block a user