micropython/ports/esp32/boards
Damien George cb31c0ae9c esp32: Add support for board-named pins and the Pin.board dict.
This adds named-pins support to the esp32 port, following other ports.
Since the name of esp32 CPU pins is just GPIOx, where x is an integer, the
Pin.cpu dict is not supported and CPU pins are just retrieved via their
existing integer "name" (the cost of adding Pin.cpu is about 800 bytes,
mostly due to the additional qstrs).

What this commit supports is the Pin.board dict and constructing a pin by
names given by a board.  These names are defined in a pins.csv file at the
board level.  If no such file exists then Pin.board exists but is empty.

As part of this commit, pin and pin IRQ objects are optimised to reduce
their size in flash (by removing their gpio_num_t entry).  The net change
in firmware size for this commit is about -132 bytes.

Signed-off-by: Damien George <damien@micropython.org>
2023-07-20 18:17:36 +10:00
..
ESP32_S2_WROVER esp32/boards: Change SDK config parameters from deprecated to new ones. 2023-06-24 18:20:56 +10:00
GENERIC esp32: Allow overriding cmake frozen manifest from the command line. 2022-04-04 23:49:10 +10:00
GENERIC_C3 esp32: Allow overriding cmake frozen manifest from the command line. 2022-04-04 23:49:10 +10:00
GENERIC_C3_USB esp32: Update port to support IDF v5.0.2. 2023-06-23 15:34:22 +10:00
GENERIC_D2WD esp32: Update port to support IDF v5.0.2. 2023-06-23 15:34:22 +10:00
GENERIC_OTA esp32/boards/GENERIC_OTA: Enable silent checks to reduce firmware size. 2023-07-12 00:12:13 +10:00
GENERIC_S2 esp32: Add MICROPY_HW_ENABLE_UART_REPL and enable on generic S2/S3. 2022-04-14 14:39:20 +10:00
GENERIC_S3 esp32/boards: Change SDK config parameters from deprecated to new ones. 2023-06-24 18:20:56 +10:00
GENERIC_S3_SPIRAM esp32/boards: Change SDK config parameters from deprecated to new ones. 2023-06-24 18:20:56 +10:00
GENERIC_S3_SPIRAM_OCT esp32/boards: Change SDK config parameters from deprecated to new ones. 2023-06-24 18:20:56 +10:00
GENERIC_SPIRAM esp32: Update port to support IDF v5.0.2. 2023-06-23 15:34:22 +10:00
GENERIC_UNICORE esp32/boards/GENERIC_UNICORE: Add board definition for unicore chips. 2023-01-19 22:38:02 +11:00
LILYGO_TTGO_LORA32 esp32: Use extmod/modnetwork.c instead of port-specific version. 2023-03-01 01:26:54 +11:00
LOLIN_C3_MINI esp32: Update port to support IDF v5.0.2. 2023-06-23 15:34:22 +10:00
LOLIN_S2_MINI esp32/boards: Change SDK config parameters from deprecated to new ones. 2023-06-24 18:20:56 +10:00
LOLIN_S2_PICO esp32/boards: Change SDK config parameters from deprecated to new ones. 2023-06-24 18:20:56 +10:00
M5STACK_ATOM esp32/boards: Change SDK config parameters from deprecated to new ones. 2023-06-24 18:20:56 +10:00
OLIMEX_ESP32_POE esp32/boards/OLIMEX_ESP32_POE: Remove id from and update board.json. 2023-01-28 15:29:01 +11:00
SIL_WESP32 esp32/boards: Change SDK config parameters from deprecated to new ones. 2023-06-24 18:20:56 +10:00
UM_FEATHERS2 esp32/boards: Change SDK config parameters from deprecated to new ones. 2023-06-24 18:20:56 +10:00
UM_FEATHERS2NEO esp32/boards: Change SDK config parameters from deprecated to new ones. 2023-06-24 18:20:56 +10:00
UM_FEATHERS3 esp32/boards: Change SDK config parameters from deprecated to new ones. 2023-06-24 18:20:56 +10:00
UM_PROS3 esp32/boards: Change SDK config parameters from deprecated to new ones. 2023-06-24 18:20:56 +10:00
UM_TINYPICO esp32/boards: Change SDK config parameters from deprecated to new ones. 2023-06-24 18:20:56 +10:00
UM_TINYS2 esp32/boards: Change SDK config parameters from deprecated to new ones. 2023-06-24 18:20:56 +10:00
UM_TINYS3 esp32/boards: Change SDK config parameters from deprecated to new ones. 2023-06-24 18:20:56 +10:00
deploy_c3.md esp32/boards: Provide custom deploy_c3.md for ESP32-C3 boards. 2022-01-22 11:18:50 +11:00
deploy_s2.md esp32: Add specific deploy_s2.md instructions for esp32-s2. 2021-10-28 09:47:47 +11:00
deploy_s3.md esp32/boards: Add specific deploy instructions for S3 variant. 2022-02-25 16:52:58 +11:00
deploy.md esp32: Add specific deploy_s2.md instructions for esp32-s2. 2021-10-28 09:47:47 +11:00
make-pins.py esp32: Add support for board-named pins and the Pin.board dict. 2023-07-20 18:17:36 +10:00
manifest_test.py esp32/boards: Add test manifest to test freezing during build. 2022-04-14 14:06:38 +10:00
manifest.py extmod/asyncio: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
pins_prefix.c esp32: Add support for board-named pins and the Pin.board dict. 2023-07-20 18:17:36 +10:00
sdkconfig.240mhz esp32: Update port to support IDF v5.0.2. 2023-06-23 15:34:22 +10:00
sdkconfig.base esp32/machine_timer: Switch from legacy driver to timer HAL. 2023-07-14 10:02:42 +10:00
sdkconfig.ble esp32: Update port to support IDF v5.0.2. 2023-06-23 15:34:22 +10:00
sdkconfig.spiram esp32: Update port to support IDF v5.0.2. 2023-06-23 15:34:22 +10:00
sdkconfig.spiram_oct esp32/boards/GENERIC_S3_SPIRAM_OCT: Add ESP32S3 board with Octal SPIRAM. 2022-12-19 13:29:33 +11:00
sdkconfig.spiram_sx esp32/boards: Change SDK config parameters from deprecated to new ones. 2023-06-24 18:20:56 +10:00
sdkconfig.usb esp32: Update port to support IDF v5.0.2. 2023-06-23 15:34:22 +10:00