mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
refactor(soc): Rename usb_otg_periph to usb_dwc_periph
- Renamed usb_otg_periph.h/c to usb_dwc_periph.h/c to match naming convention of other DWC OTG related files - Added compatibility header for usb_otg_periph.h
This commit is contained in:
parent
50b3a35c52
commit
b07a43e630
@ -107,7 +107,7 @@ endif()
|
||||
|
||||
if(CONFIG_SOC_USB_OTG_SUPPORTED)
|
||||
list(APPEND srcs "${target}/usb_periph.c"
|
||||
"${target}/usb_otg_periph.c")
|
||||
"${target}/usb_dwc_periph.c")
|
||||
endif()
|
||||
|
||||
if(CONFIG_SOC_DAC_SUPPORTED)
|
||||
|
@ -1,10 +1,10 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include "soc/usb_otg_periph.h"
|
||||
#include "soc/usb_dwc_periph.h"
|
||||
#include "soc/gpio_sig_map.h"
|
||||
|
||||
/*
|
@ -1,10 +1,10 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include "soc/usb_otg_periph.h"
|
||||
#include "soc/usb_dwc_periph.h"
|
||||
#include "soc/gpio_sig_map.h"
|
||||
|
||||
/*
|
46
components/soc/include/soc/usb_dwc_periph.h
Normal file
46
components/soc/include/soc/usb_dwc_periph.h
Normal file
@ -0,0 +1,46 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
#include "soc/soc_caps.h"
|
||||
#include "soc/periph_defs.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
Stores a bunch of USB-peripheral data.
|
||||
*/
|
||||
typedef struct {
|
||||
const uint8_t extphy_vp_in;
|
||||
const uint8_t extphy_vm_in;
|
||||
const uint8_t extphy_rcv_in;
|
||||
const uint8_t extphy_oen_out;
|
||||
const uint8_t extphy_vpo_out;
|
||||
const uint8_t extphy_vmo_out;
|
||||
const uint8_t extphy_suspend_in;
|
||||
const uint8_t extphy_speed_in;
|
||||
const uint8_t srp_bvalid_in;
|
||||
const uint8_t srp_sessend_in;
|
||||
const uint8_t srp_chrgvbus_out;
|
||||
const uint8_t srp_dischrgvbus_out;
|
||||
const uint8_t otg_iddig_in;
|
||||
const uint8_t otg_avalid_in;
|
||||
const uint8_t otg_vbusvalid_in;
|
||||
const uint8_t otg_idpullup_out;
|
||||
const uint8_t otg_dppulldown_out;
|
||||
const uint8_t otg_dmpulldown_out;
|
||||
const uint8_t otg_drvvbus_out;
|
||||
const periph_module_t module;
|
||||
} usb_phy_signal_conn_t;
|
||||
|
||||
extern const usb_phy_signal_conn_t usb_otg_periph_signal;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
@ -1,46 +1,12 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
#include "soc/soc_caps.h"
|
||||
#include "soc/periph_defs.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
/* Todo: Remove in ESP-IDF v6.0 (IDF-9052) */
|
||||
#warning "This header is deprecated, please use usb_dwc_periph.h instead"
|
||||
|
||||
/*
|
||||
Stores a bunch of USB-peripheral data.
|
||||
*/
|
||||
typedef struct {
|
||||
const uint8_t extphy_vp_in;
|
||||
const uint8_t extphy_vm_in;
|
||||
const uint8_t extphy_rcv_in;
|
||||
const uint8_t extphy_oen_out;
|
||||
const uint8_t extphy_vpo_out;
|
||||
const uint8_t extphy_vmo_out;
|
||||
const uint8_t extphy_suspend_in;
|
||||
const uint8_t extphy_speed_in;
|
||||
const uint8_t srp_bvalid_in;
|
||||
const uint8_t srp_sessend_in;
|
||||
const uint8_t srp_chrgvbus_out;
|
||||
const uint8_t srp_dischrgvbus_out;
|
||||
const uint8_t otg_iddig_in;
|
||||
const uint8_t otg_avalid_in;
|
||||
const uint8_t otg_vbusvalid_in;
|
||||
const uint8_t otg_idpullup_out;
|
||||
const uint8_t otg_dppulldown_out;
|
||||
const uint8_t otg_dmpulldown_out;
|
||||
const uint8_t otg_drvvbus_out;
|
||||
const periph_module_t module;
|
||||
} usb_phy_signal_conn_t;
|
||||
|
||||
extern const usb_phy_signal_conn_t usb_otg_periph_signal;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#include "soc/usb_dwc_periph.h"
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include "esp_check.h"
|
||||
#include "esp_private/periph_ctrl.h"
|
||||
#include "esp_private/usb_phy.h"
|
||||
#include "soc/usb_otg_periph.h"
|
||||
#include "soc/usb_dwc_periph.h"
|
||||
#include "hal/usb_fsls_phy_hal.h"
|
||||
#include "hal/usb_fsls_phy_ll.h"
|
||||
#include "esp_rom_gpio.h"
|
||||
|
Loading…
Reference in New Issue
Block a user