esp32: Revert "esp32/mpconfigport: Disable I2CTarget on ESP32-C6 to ..".
This reverts commit3c9546ea09. I2CTarget now fits on ESP32-C6 because it's compiled with -Os, see commit5b98126c21. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
704c70c5bb
commit
3adf016376
@ -137,8 +137,7 @@
|
||||
#define MICROPY_PY_MACHINE_I2C_TRANSFER_WRITE1 (1)
|
||||
#ifndef MICROPY_PY_MACHINE_I2C_TARGET
|
||||
// I2C target hardware is limited on ESP32 (eg read event comes after the read) so we only support newer SoCs.
|
||||
// ESP32C6 does not have enough flash space so also disable it on that SoC.
|
||||
#define MICROPY_PY_MACHINE_I2C_TARGET (SOC_I2C_SUPPORT_SLAVE && !CONFIG_IDF_TARGET_ESP32 && !CONFIG_IDF_TARGET_ESP32C6)
|
||||
#define MICROPY_PY_MACHINE_I2C_TARGET (SOC_I2C_SUPPORT_SLAVE && !CONFIG_IDF_TARGET_ESP32)
|
||||
#define MICROPY_PY_MACHINE_I2C_TARGET_INCLUDEFILE "ports/esp32/machine_i2c_target.c"
|
||||
#define MICROPY_PY_MACHINE_I2C_TARGET_MAX (2)
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user