micropython/ports
Thorsten von Eicken 1ae7e0e561 esp32: Consolidate check_esp_err functions and add IDF error string.
This commit consolidates a number of check_esp_err functions that check
whether an ESP-IDF return code is OK and raises an exception if not.  The
exception raised is an OSError with the error code as the first argument
(negative if it's ESP-IDF specific) and the ESP-IDF error string as the
second argument.

This commit also fixes esp32.Partition.set_boot to use check_esp_err, and
uses that function for a unit test.
2020-04-23 10:59:07 +10:00
..
bare-arm ports: Enable error text compression for various ports, but not all. 2020-04-05 15:02:06 +10:00
cc3200 ports: Enable error text compression for various ports, but not all. 2020-04-05 15:02:06 +10:00
esp32 esp32: Consolidate check_esp_err functions and add IDF error string. 2020-04-23 10:59:07 +10:00
esp8266 ports: Enable error text compression for various ports, but not all. 2020-04-05 15:02:06 +10:00
javascript all: Enable extra conversion warnings where applicable. 2020-04-18 22:42:28 +10:00
mimxrt all: Enable extra conversion warnings where applicable. 2020-04-18 22:42:28 +10:00
minimal all: Enable extra conversion warnings where applicable. 2020-04-18 22:42:28 +10:00
nrf all: Clean up error strings to use lowercase and change cannot to can't. 2020-04-13 22:19:37 +10:00
pic16bit all: Use MP_ERROR_TEXT for all error messages. 2020-04-05 15:02:06 +10:00
powerpc all: Enable extra conversion warnings where applicable. 2020-04-18 22:42:28 +10:00
qemu-arm all: Enable extra conversion warnings where applicable. 2020-04-18 22:42:28 +10:00
samd all: Remove spaces inside and around parenthesis. 2020-03-28 23:36:44 +11:00
stm32 stm32/mboot: Expose custom DFU USB VID/PID values at makefile level. 2020-04-18 23:02:00 +10:00
teensy ports: Enable error text compression for various ports, but not all. 2020-04-05 15:02:06 +10:00
unix all: Enable extra conversion warnings where applicable. 2020-04-18 22:42:28 +10:00
windows all: Enable extra conversion warnings where applicable. 2020-04-18 22:42:28 +10:00
zephyr all: Use MP_ERROR_TEXT for all error messages. 2020-04-05 15:02:06 +10:00