Skip to content

Commit 092036e

Browse files
authored
Merge branch 'micropython:master' into esp32_bitstream
2 parents da3f016 + 255d74b commit 092036e

File tree

6 files changed

+13
-3
lines changed

6 files changed

+13
-3
lines changed

.github/workflows/ports_esp32.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
ci_func: # names are functions in ci.sh
2626
- esp32_build_cmod_spiram_s2
2727
- esp32_build_s3_c3
28+
- esp32_build_c2_c6
2829
runs-on: ubuntu-latest
2930
steps:
3031
- uses: actions/checkout@v4

lib/micropython-lib

Submodule micropython-lib updated 52 files

ports/esp32/mpconfigport.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@
140140
#define MICROPY_PY_MACHINE_I2C (1)
141141
#define MICROPY_PY_MACHINE_I2C_TRANSFER_WRITE1 (1)
142142
// I2C target hardware is limited on ESP32 (eg read event comes after the read) so we only support newer SoCs.
143-
#define MICROPY_PY_MACHINE_I2C_TARGET (SOC_I2C_SUPPORT_SLAVE && !CONFIG_IDF_TARGET_ESP32)
143+
// ESP32C6 does not have enough flash space so also disable it on that SoC.
144+
#define MICROPY_PY_MACHINE_I2C_TARGET (SOC_I2C_SUPPORT_SLAVE && !CONFIG_IDF_TARGET_ESP32 && !CONFIG_IDF_TARGET_ESP32C6)
144145
#define MICROPY_PY_MACHINE_I2C_TARGET_INCLUDEFILE "ports/esp32/machine_i2c_target.c"
145146
#define MICROPY_PY_MACHINE_I2C_TARGET_MAX (2)
146147
#define MICROPY_PY_MACHINE_SOFTI2C (1)

ports/renesas-ra/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
#ifndef MICROPY_FLOAT_IMPL // can be configured by each board via mpconfigboard.mk
100100
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)
101101
#endif
102+
#define MICROPY_TIME_SUPPORT_Y1969_AND_BEFORE (1)
102103
#define MICROPY_USE_INTERNAL_ERRNO (1)
103104
#define MICROPY_SCHEDULER_DEPTH (8)
104105
#define MICROPY_SCHEDULER_STATIC_NODES (1)

py/parse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,13 +671,13 @@ static bool binary_op_maybe(mp_binary_op_t op, mp_obj_t lhs, mp_obj_t rhs, mp_ob
671671
nlr_buf_t nlr;
672672
if (nlr_push(&nlr) == 0) {
673673
mp_obj_t tmp = mp_binary_op(op, lhs, rhs);
674+
nlr_pop();
674675
#if MICROPY_PY_BUILTINS_COMPLEX
675676
if (mp_obj_is_type(tmp, &mp_type_complex)) {
676677
return false;
677678
}
678679
#endif
679680
*res = tmp;
680-
nlr_pop();
681681
return true;
682682
} else {
683683
return false;

tools/ci.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,13 @@ function ci_esp32_build_s3_c3 {
214214
make ${MAKEOPTS} -C ports/esp32 BOARD=ESP32_GENERIC_C3
215215
}
216216

217+
function ci_esp32_build_c2_c6 {
218+
ci_esp32_build_common
219+
220+
make ${MAKEOPTS} -C ports/esp32 BOARD=ESP32_GENERIC_C2
221+
make ${MAKEOPTS} -C ports/esp32 BOARD=ESP32_GENERIC_C6
222+
}
223+
217224
########################################################################################
218225
# ports/esp8266
219226

0 commit comments

Comments
 (0)