usb_host: Rename struct/ll/hal files to use "usb_dwc" prefix

This commit updates the DWC_OTG based struct/ll/hal file names to
use the prefix "usb_dwc". This naming scheme reduces ambiguity if
another USB controller implementation is added.

As a result, "hcd.c" has been renamed to "hcd_dwc.c"
This commit is contained in:
Darian Leung 2022-09-15 20:43:18 +08:00
parent 490216a2ac
commit da91dbccfa
8 changed files with 9 additions and 9 deletions

View File

@ -119,7 +119,7 @@ if(NOT BOOTLOADER_BUILD)
"esp32s2/cp_dma_hal.c"
"esp32s2/touch_sensor_hal.c"
"esp32s2/dac_hal.c"
"usbh_hal.c")
"usb_dwc_hal.c")
endif()
if(${target} STREQUAL "esp32s3")
@ -136,7 +136,7 @@ if(NOT BOOTLOADER_BUILD)
"esp32s3/hmac_hal.c"
"esp32s3/touch_sensor_hal.c"
"esp32s3/rtc_cntl_hal.c"
"usbh_hal.c")
"usb_dwc_hal.c")
endif()
if(${target} STREQUAL "esp32c3")

View File

@ -17,8 +17,8 @@ NOTE: Thread safety is the responsibility fo the HAL user. All USB Host HAL
#include <stdlib.h>
#include <stddef.h>
#include "soc/usbh_struct.h"
#include "hal/usbh_ll.h"
#include "soc/usb_dwc_struct.h"
#include "hal/usb_dwc_ll.h"
#include "hal/usb_types_private.h"
#include "hal/assert.h"

View File

@ -12,7 +12,7 @@ extern "C" {
#include <stdint.h>
#include <stdbool.h>
#include "soc/usbh_struct.h"
#include "soc/usb_dwc_struct.h"
#include "hal/usb_types_private.h"
#include "hal/misc.h"

View File

@ -8,8 +8,8 @@
#include <stdint.h>
#include <string.h>
#include "sdkconfig.h"
#include "hal/usbh_hal.h"
#include "hal/usbh_ll.h"
#include "hal/usb_dwc_hal.h"
#include "hal/usb_dwc_ll.h"
#include "hal/assert.h"
// ------------------------------------------------ Macros and Types ---------------------------------------------------

View File

@ -7,7 +7,7 @@ set(priv_include)
set(priv_require driver) # usb_phy driver relies on gpio driver API
if(CONFIG_USB_OTG_SUPPORTED)
list(APPEND srcs "hcd.c"
list(APPEND srcs "hcd_dwc.c"
"hub.c"
"usb_helpers.c"
"usb_host.c"

View File

@ -14,7 +14,7 @@
#include "esp_intr_alloc.h"
#include "esp_err.h"
#include "esp_rom_gpio.h"
#include "hal/usbh_hal.h"
#include "hal/usb_dwc_hal.h"
#include "hal/usb_types_private.h"
#include "soc/gpio_pins.h"
#include "soc/gpio_sig_map.h"