circuitpython/ports
Tomas Vanek 3305ec44a2 esp32/machine_hw_spi: Fix SPI default pins reordering on ESP32-S2/S3.
The index of machine_hw_spi_obj and machine_hw_spi_default_pins arrays is
assigned to 0 for ARG_id==HSPI_HOST and 1 for another SPI.  On ESP32S2 and
S3 HSPI_HOST=2 so the first set (idx=0) of default pins is used for
SPI(id=2) aka HSPI/SPI3 and the second set (idx=1) for SPI(id=1) aka
FSPI/SPI2.  This makes a misleading mess in MICROPY_HW_SPIxxxx definitions
and it is also in contradiction to the comments around the definitions.

Change the test of ARG_id to fix the order of machine_hw_spi_default_pins.

This change might require adjusting MICROPY_HW_SPIxxxx definitions in
mpconfigboard.h of S2/S3 based boards.

Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
2021-12-15 15:49:23 +11:00
..
bare-arm bare-arm/mpconfigport.h: Disable remaining optional features. 2021-11-01 14:23:06 +11:00
cc3200 ports: Add images, features and urls to board.json. 2021-10-28 15:25:38 +11:00
esp32 esp32/machine_hw_spi: Fix SPI default pins reordering on ESP32-S2/S3. 2021-12-15 15:49:23 +11:00
esp8266 esp32,esp8266: Extract qstr from object when comparing keys in config(). 2021-12-14 14:27:13 +11:00
javascript javascript/Makefile: Change variable to EXPORTED_RUNTIME_METHODS. 2021-09-01 00:42:40 +10:00
mimxrt mimxrt: Tidy up the board flash related files. 2021-12-14 20:31:20 +01:00
minimal minimal/mpconfigport.h: Disable features that are not needed. 2021-11-05 13:12:18 +11:00
nrf nrf/main: Use VFS helper function to mount fs and chdir. 2021-11-19 15:43:04 +11:00
pic16bit all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
powerpc all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
qemu-arm all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
rp2 rp2/machine_uart: Handle and clear UART RX timeout IRQ. 2021-12-14 14:59:39 +11:00
samd samd/README.md: Update README to reflect new features and boards. 2021-11-19 11:49:10 +11:00
stm32 stm32/sdcard: Add config option to force MM card capacity. 2021-12-14 10:48:01 +11:00
teensy all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
unix unix/Makefile: Use -Og instead of -O0 for debug builds. 2021-12-09 12:53:09 +11:00
windows py/builtinimport: Refactor module importing. 2021-12-01 13:23:34 +11:00
zephyr extmod/modbluetooth: Add connection interval to gap_connect. 2021-10-26 00:16:53 +11:00