mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 13:44:32 +02:00
Merge branch 'refactor/remove_old_usb_pins' into 'master'
refactor(usb): Remove deprecated USB pin definitions Closes IDF-9029 See merge request espressif/esp-idf!40144
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
Note: These macros are deprecated.
|
||||
We define them for P4 only for backward compatibility with older version of esp_tinyusb
|
||||
|
||||
Todo: Remove in IDF v6.0 (IDF-9029)
|
||||
*/
|
||||
#define USBPHY_VP_NUM -1
|
||||
#define USBPHY_VM_NUM -1
|
||||
#define USBPHY_RCV_NUM -1
|
||||
#define USBPHY_OEN_NUM -1
|
||||
#define USBPHY_VPO_NUM -1
|
||||
#define USBPHY_VMO_NUM -1
|
@@ -1,25 +1,11 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2020-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
Note: These macros are deprecated. When connecting USB OTG to an external FSLS
|
||||
PHY, the FSLS Serial Interface signals can be routed to any GPIO via the GPIO
|
||||
matrix. Thus, these macros are meaningless.
|
||||
|
||||
Todo: Remove in IDF v6.0 (IDF-9029)
|
||||
*/
|
||||
#define USBPHY_VP_NUM 33
|
||||
#define USBPHY_VM_NUM 34
|
||||
#define USBPHY_RCV_NUM 35
|
||||
#define USBPHY_OEN_NUM 36
|
||||
#define USBPHY_VPO_NUM 37
|
||||
#define USBPHY_VMO_NUM 38
|
||||
|
||||
/* GPIOs corresponding to the pads of the internal USB PHY */
|
||||
#define USBPHY_DP_NUM 20
|
||||
#define USBPHY_DM_NUM 19
|
||||
|
@@ -1,25 +1,11 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2020-2024 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2020-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
Note: These macros are deprecated. When connecting USB OTG to an external FSLS
|
||||
PHY, the FSLS Serial Interface signals can be routed to any GPIO via the GPIO
|
||||
matrix. Thus, these macros are meaningless.
|
||||
|
||||
Todo: Remove in IDF v6.0 (IDF-9029)
|
||||
*/
|
||||
#define USBPHY_VP_NUM 42
|
||||
#define USBPHY_VM_NUM 41
|
||||
#define USBPHY_RCV_NUM 21
|
||||
#define USBPHY_OEN_NUM 40
|
||||
#define USBPHY_VPO_NUM 39
|
||||
#define USBPHY_VMO_NUM 38
|
||||
|
||||
/* GPIOs corresponding to the pads of the internal USB PHY */
|
||||
#define USBPHY_DP_NUM 20
|
||||
#define USBPHY_DM_NUM 19
|
||||
|
@@ -415,6 +415,10 @@
|
||||
re_variables: ['ESP_HF_CME_MEMEORY_FAILURE']
|
||||
hint_variables: ['ESP_HF_CME_MEMEORY_FAILURE', 'ESP_HF_CME_MEMORY_FAILURE ']
|
||||
|
||||
-
|
||||
re: "error: 'USBPHY_\\w+' undeclared"
|
||||
hint: "USBPHY_* pin definitions from <soc/usb_pins.h> have been removed.\nTo use an external USB PHY, wire it to any GPIOs and declare those pin mappings in your application to match your hardware."
|
||||
|
||||
-
|
||||
re: "intr_alloc: No free interrupt inputs for [_\\w]+ interrupt"
|
||||
hint: "For troubleshooting instructions related to interrupt allocation, run 'idf.py docs -sp api-reference/system/intr_alloc.html'"
|
||||
|
Reference in New Issue
Block a user