Skip to content

Commit 7b8033b

Browse files
committed
board: Add I2C driver config.
Signed-off-by: hlym123 <lwylwt@qq.com>
1 parent c39e44a commit 7b8033b

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

m5stack/boards/M5STACK_Basic/sdkconfig.board

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
#
33
# SPDX-License-Identifier: MIT
44

5+
# esp_codec_dev: use new I2C master API on IDF 5.3+ (avoids legacy driver/i2c.h)
6+
CONFIG_CODEC_I2C_BACKWARD_COMPATIBLE=n
7+
58
# SSL
69
CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC=n
710
CONFIG_MBEDTLS_CUSTOM_MEM_ALLOC=y

m5stack/boards/M5STACK_Basic_4MB/sdkconfig.board

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
#
33
# SPDX-License-Identifier: MIT
44

5+
# esp_codec_dev: use new I2C master API on IDF 5.3+ (avoids legacy driver/i2c.h)
6+
CONFIG_CODEC_I2C_BACKWARD_COMPATIBLE=n
7+
58
# SSL
69
CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC=n
710
CONFIG_MBEDTLS_CUSTOM_MEM_ALLOC=y

m5stack/partitions_4mb.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild
33
nvs, data, nvs, 0x9000, 0x6000,
44
phy_init, data, phy, 0xf000, 0x1000,
5-
factory, app, factory, 0x10000, 0x360000,
6-
vfs, data, fat, 0x370000,0x8E000,
5+
factory, app, factory, 0x10000, 0x361000,
6+
vfs, data, fat, 0x371000,0x8D000,

0 commit comments

Comments
 (0)