Skip to content

Commit f603143

Browse files
authored
Merge pull request adafruit#9607 from tannewt/idf5.3.1
Update to IDF 5.3.1
2 parents 561578f + bd9cff5 commit f603143

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

.gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
[submodule "ports/espressif/esp-idf"]
144144
path = ports/espressif/esp-idf
145145
url = https://github.com/adafruit/esp-idf.git
146-
branch = circuitpython-v5.3
146+
branch = circuitpython-v5.3.1
147147
[submodule "ports/espressif/esp-protocols"]
148148
path = ports/espressif/esp-protocols
149149
url = https://github.com/espressif/esp-protocols.git

ports/espressif/Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ CFLAGS += -DSTACK_CANARY_VALUE=0xa5a5a5a5
155155
# one must provide `-u` arguments to state the symbols are missing. This would
156156
# normally happen implicitly by another function calling to these.
157157
REGISTRATION_FUNCTIONS = \
158-
-u newlib_include_pthread_impl \
159158
-u ld_include_highint_hdl \
160159
-u __cxx_fatal_exception \
161160
-u esp_app_desc \
@@ -169,8 +168,10 @@ REGISTRATION_FUNCTIONS = \
169168
-u newlib_include_syscalls_impl \
170169
-u newlib_include_pthread_impl \
171170
-u newlib_include_assert_impl \
172-
-u newlib_include_getentropy_impl \
173-
-u newlib_include_init_funcs
171+
-u newlib_include_init_funcs \
172+
-u include_esp_phy_override \
173+
-u vfs_include_syscalls_impl
174+
174175

175176
#Debugging/Optimization
176177
ifeq ($(DEBUG), 1)
@@ -311,7 +312,6 @@ CHIP_COMPONENTS = \
311312
else ifeq ($(IDF_TARGET),esp32s3)
312313
LDFLAGS += \
313314
-Tesp32s3.rom.newlib.ld \
314-
-Tesp32s3.rom.newlib-time.ld \
315315
-Tesp32s3.rom.version.ld \
316316
-Tesp32s3.rom.systimer.ld \
317317
-Tesp32s3.rom.wdt.ld

ports/espressif/common-hal/busio/I2C.c

+5-8
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ void common_hal_busio_i2c_construct(busio_i2c_obj_t *self,
7373
mp_raise_ValueError(MP_ERROR_TEXT("All I2C peripherals are in use"));
7474
}
7575

76-
// Delete any previous driver.
77-
i2c_driver_delete(self->i2c_num);
78-
7976
const i2c_config_t i2c_conf = {
8077
.mode = I2C_MODE_MASTER,
8178
.sda_io_num = self->sda_pin->number,
@@ -136,7 +133,7 @@ static esp_err_t i2c_zero_length_write(busio_i2c_obj_t *self, uint8_t addr, Tick
136133
}
137134

138135
bool common_hal_busio_i2c_probe(busio_i2c_obj_t *self, uint8_t addr) {
139-
esp_err_t result = i2c_zero_length_write(self, addr, 1);
136+
esp_err_t result = i2c_zero_length_write(self, addr, pdMS_TO_TICKS(10));
140137
return result == ESP_OK;
141138
}
142139

@@ -175,21 +172,21 @@ static uint8_t convert_esp_err(esp_err_t result) {
175172

176173
uint8_t common_hal_busio_i2c_write(busio_i2c_obj_t *self, uint16_t addr, const uint8_t *data, size_t len) {
177174
return convert_esp_err(len == 0
178-
? i2c_zero_length_write(self, addr, 100)
179-
: i2c_master_write_to_device(self->i2c_num, (uint8_t)addr, data, len, 100 /* wait in ticks */)
175+
? i2c_zero_length_write(self, addr, pdMS_TO_TICKS(1000))
176+
: i2c_master_write_to_device(self->i2c_num, (uint8_t)addr, data, len, pdMS_TO_TICKS(1000))
180177
);
181178
}
182179

183180
uint8_t common_hal_busio_i2c_read(busio_i2c_obj_t *self, uint16_t addr, uint8_t *data, size_t len) {
184181
return convert_esp_err(
185-
i2c_master_read_from_device(self->i2c_num, (uint8_t)addr, data, len, 100 /* wait in ticks */));
182+
i2c_master_read_from_device(self->i2c_num, (uint8_t)addr, data, len, pdMS_TO_TICKS(1000)));
186183
}
187184

188185
uint8_t common_hal_busio_i2c_write_read(busio_i2c_obj_t *self, uint16_t addr,
189186
uint8_t *out_data, size_t out_len, uint8_t *in_data, size_t in_len) {
190187
return convert_esp_err(
191188
i2c_master_write_read_device(self->i2c_num, (uint8_t)addr,
192-
out_data, out_len, in_data, in_len, 100 /* wait in ticks */));
189+
out_data, out_len, in_data, in_len, pdMS_TO_TICKS(1000)));
193190
}
194191

195192
void common_hal_busio_i2c_never_reset(busio_i2c_obj_t *self) {

ports/espressif/esp-idf

Submodule esp-idf updated 716 files

ports/espressif/esp-idf-config/sdkconfig-debug.defaults

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ CONFIG_COMPILER_OPTIMIZATION_SIZE=y
1515
#
1616
CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT=y
1717
CONFIG_ESP_PANIC_HANDLER_IRAM=y
18+
CONFIG_ESP_CONSOLE_SECONDARY_NONE=y
19+
# CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG is not set
1820
# end of ESP System Settings
1921

2022
# end of Component config

ports/espressif/esp-idf-config/sdkconfig.defaults

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ CONFIG_MBEDTLS_SSL_PROTO_DTLS=y
123123
# CONFIG_MBEDTLS_ECP_DP_BP384R1_ENABLED is not set
124124
# CONFIG_MBEDTLS_ECP_DP_BP512R1_ENABLED is not set
125125
# CONFIG_MBEDTLS_ECP_FIXED_POINT_OPTIM is not set
126+
# CONFIG_MBEDTLS_ERROR_STRINGS is not set
126127
# end of mbedTLS
127128

128129
#

0 commit comments

Comments
 (0)