diff options
| author | Jim Mussared <jim.mussared@gmail.com> | 2019-09-13 23:04:13 +1000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2019-09-17 12:25:36 +1000 |
| commit | 96008ff59a8af9883af17d01b951029d9d02eec9 (patch) | |
| tree | b219c2d1b55a316702c15cdfda9c625d7ce8d5f4 /ports/esp32/esp32_ulp.c | |
| parent | b45f9de8096f37a5f588f833e6b6a00b59e67e3f (diff) | |
esp32: Support building with ESP IDF 4.0-beta1.
This commit adds support for a second supported hash (currently set to the
4.0-beta1 tag). When this hash is detected, the relevant changes are
applied.
This allows to start using v4 features (e.g. BLE with Nimble), and also
start doing testing, while still supporting the original, stable, v3.3 IDF.
Note: this feature is experimental, not well tested, and network.LAN and
network.PPP are currently unsupported.
Diffstat (limited to 'ports/esp32/esp32_ulp.c')
| -rw-r--r-- | ports/esp32/esp32_ulp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/esp32/esp32_ulp.c b/ports/esp32/esp32_ulp.c index 3772639f4..bf11de330 100644 --- a/ports/esp32/esp32_ulp.c +++ b/ports/esp32/esp32_ulp.c @@ -85,7 +85,11 @@ STATIC const mp_rom_map_elem_t esp32_ulp_locals_dict_table[] = { { MP_ROM_QSTR(MP_QSTR_set_wakeup_period), MP_ROM_PTR(&esp32_ulp_set_wakeup_period_obj) }, { MP_ROM_QSTR(MP_QSTR_load_binary), MP_ROM_PTR(&esp32_ulp_load_binary_obj) }, { MP_ROM_QSTR(MP_QSTR_run), MP_ROM_PTR(&esp32_ulp_run_obj) }, + #if !MICROPY_ESP_IDF_4 { MP_ROM_QSTR(MP_QSTR_RESERVE_MEM), MP_ROM_INT(CONFIG_ULP_COPROC_RESERVE_MEM) }, + #else + { MP_ROM_QSTR(MP_QSTR_RESERVE_MEM), MP_ROM_INT(CONFIG_ESP32_ULP_COPROC_RESERVE_MEM) }, + #endif }; STATIC MP_DEFINE_CONST_DICT(esp32_ulp_locals_dict, esp32_ulp_locals_dict_table); |
