Skip to content

Commit e4b0144

Browse files
Merge pull request #503 from espressif/fix/s3_eye_missing_include
Fix I2C NG includes
2 parents 347c82e + 27859d9 commit e4b0144

File tree

15 files changed

+35
-36
lines changed

15 files changed

+35
-36
lines changed

bsp/esp-box-3/include/bsp/esp-box-3.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -16,7 +16,6 @@
1616
#include "driver/i2s_std.h"
1717
#include "driver/i2c_master.h"
1818
#include "driver/sdmmc_host.h"
19-
#include "soc/usb_pins.h"
2019
#include "lvgl.h"
2120
#include "esp_lvgl_port.h"
2221
#include "esp_codec_dev.h"
@@ -63,8 +62,8 @@
6362
#define BSP_LCD_TOUCH_INT (GPIO_NUM_3)
6463

6564
/* USB */
66-
#define BSP_USB_POS USBPHY_DP_NUM
67-
#define BSP_USB_NEG USBPHY_DM_NUM
65+
#define BSP_USB_POS (GPIO_NUM_20)
66+
#define BSP_USB_NEG (GPIO_NUM_19)
6867

6968
/* Buttons */
7069
#define BSP_BUTTON_CONFIG_IO (GPIO_NUM_0)

bsp/esp-box-lite/include/bsp/esp-box-lite.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -14,7 +14,6 @@
1414
#include "sdkconfig.h"
1515
#include "driver/gpio.h"
1616
#include "driver/i2c.h"
17-
#include "soc/usb_pins.h"
1817
#include "lvgl.h"
1918
#include "esp_lvgl_port.h"
2019
#include "esp_codec_dev.h"
@@ -63,8 +62,8 @@
6362
#define BSP_LCD_BACKLIGHT (GPIO_NUM_45)
6463

6564
/* USB */
66-
#define BSP_USB_POS USBPHY_DP_NUM
67-
#define BSP_USB_NEG USBPHY_DM_NUM
65+
#define BSP_USB_POS (GPIO_NUM_20)
66+
#define BSP_USB_NEG (GPIO_NUM_19)
6867

6968
/* Buttons */
7069
#define BSP_BUTTON_CONFIG_IO (GPIO_NUM_0)

bsp/esp-box/include/bsp/esp-box.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -14,7 +14,6 @@
1414
#include "sdkconfig.h"
1515
#include "driver/gpio.h"
1616
#include "driver/i2c.h"
17-
#include "soc/usb_pins.h"
1817
#include "lvgl.h"
1918
#include "esp_lvgl_port.h"
2019
#include "esp_codec_dev.h"
@@ -65,8 +64,8 @@
6564
#define BSP_LCD_TOUCH_INT (GPIO_NUM_3)
6665

6766
/* USB */
68-
#define BSP_USB_POS USBPHY_DP_NUM
69-
#define BSP_USB_NEG USBPHY_DM_NUM
67+
#define BSP_USB_POS (GPIO_NUM_20)
68+
#define BSP_USB_NEG (GPIO_NUM_19)
7069

7170
/* Buttons */
7271
#define BSP_BUTTON_CONFIG_IO (GPIO_NUM_0)

bsp/esp32_c3_lcdkit/include/bsp/esp32_c3_lcdkit.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
#define BSP_I2S_CLK (GPIO_NUM_NC)
5454

5555
/* USB */
56-
#define BSP_USB_POS USBPHY_DP_NUM
57-
#define BSP_USB_NEG USBPHY_DM_NUM
56+
#define BSP_USB_POS (GPIO_NUM_20)
57+
#define BSP_USB_NEG (GPIO_NUM_19)
5858

5959
/* Buttons */
6060
typedef enum {

bsp/esp32_s3_eye/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ idf_component_register(
22
SRCS "esp32_s3_eye.c" "esp32_s3_eye_idf5.c"
33
INCLUDE_DIRS "include"
44
PRIV_INCLUDE_DIRS "priv_include"
5-
REQUIRES esp_driver_gpio esp_driver_sdmmc spiffs
6-
PRIV_REQUIRES fatfs esp_lcd esp_driver_i2c esp_driver_ledc esp_driver_spi
5+
REQUIRES esp_driver_gpio esp_driver_sdmmc spiffs esp_driver_i2c
6+
PRIV_REQUIRES fatfs esp_lcd esp_driver_ledc esp_driver_spi
77
)

bsp/esp32_s3_eye/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "4.0.1"
1+
version: "4.0.2"
22
description: Board Support Package (BSP) for ESP32-S3-EYE
33
url: https://github.com/espressif/esp-bsp/tree/master/bsp/esp32_s3_eye
44

bsp/esp32_s3_eye/include/bsp/esp32_s3_eye.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -19,6 +19,7 @@
1919
#include "bsp/config.h"
2020
#include "bsp/display.h"
2121
#include "driver/i2s_std.h"
22+
#include "driver/i2c_master.h"
2223

2324
#if (BSP_CONFIG_NO_GRAPHIC_LIB == 0)
2425
#include "lvgl.h"

bsp/esp32_s3_korvo_2/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# ChangeLog
22

3+
## v3.0.1
4+
5+
* Added missing public driver/i2c_master.h include
6+
37
## v3.0.0
48

59
* Migrated to I2C Driver-NG (https://docs.espressif.com/projects/esp-idf/en/stable/esp32/migration-guides/release-5.x/5.2/peripherals.html#i2c)

bsp/esp32_s3_korvo_2/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ idf_component_register(
22
SRCS "esp32_s3_korvo_2.c" "esp32_s3_korvo_2_idf5.c"
33
INCLUDE_DIRS "include"
44
PRIV_INCLUDE_DIRS "priv_include"
5-
REQUIRES esp_driver_gpio esp_driver_i2s esp_driver_sdmmc esp_adc
6-
PRIV_REQUIRES spiffs fatfs esp_lcd esp_driver_i2c esp_driver_spi esp_driver_ledc
5+
REQUIRES esp_driver_gpio esp_driver_i2s esp_driver_sdmmc esp_driver_i2c esp_adc
6+
PRIV_REQUIRES spiffs fatfs esp_lcd esp_driver_spi esp_driver_ledc
77
)

bsp/esp32_s3_korvo_2/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "3.0.0"
1+
version: "3.0.1"
22
description: Board Support Package (BSP) for ESP32-S3-Korvo-2
33
url: https://github.com/espressif/esp-bsp/tree/master/bsp/esp32_s3_korvo_2
44

0 commit comments

Comments
 (0)