rp2/boards: Remove all I2C,SPI pin defs that already match pico-sdk.

I.e. for whichever SPI/I2C instance is PICO_DEFAULT_I2C, there's no need to
set MICROPY_HW_SPIn_SCK.

The only ones remaining are for the non-default instance.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
Jim Mussared 2022-09-06 23:32:34 +10:00 committed by Damien George
parent 315e74236f
commit dec0ff7a10
9 changed files with 5 additions and 62 deletions

View File

@ -7,14 +7,6 @@
#define MICROPY_HW_USB_VID (0x239A)
#define MICROPY_HW_USB_PID (0x80F2)
// STEMMA QT / Qwiic on I2C1
#define MICROPY_HW_I2C1_SCL (3)
#define MICROPY_HW_I2C1_SDA (2)
#define MICROPY_HW_SPI0_SCK (18)
#define MICROPY_HW_SPI0_MOSI (19)
#define MICROPY_HW_SPI0_MISO (20)
// NeoPixel GPIO16, power not toggleable
// Red user LED GPIO13

View File

@ -7,13 +7,6 @@
#define MICROPY_HW_USB_VID (0x239A)
#define MICROPY_HW_USB_PID (0x80FE)
#define MICROPY_HW_I2C0_SCL (3)
#define MICROPY_HW_I2C0_SDA (2)
#define MICROPY_HW_SPI0_SCK (18)
#define MICROPY_HW_SPI0_MOSI (19)
#define MICROPY_HW_SPI0_MISO (20)
// NeoPixel data GPIO17, power GPIO16
// Red user LED GPIO11

View File

@ -12,17 +12,10 @@
#define MICROPY_HW_UART1_CTS (10)
#define MICROPY_HW_UART1_RTS (7)
#define MICROPY_HW_I2C0_SCL (25)
#define MICROPY_HW_I2C0_SDA (24)
// STEMMA QT / Qwiic on I2C1
// STEMMA QT / Qwiic on (non-default) I2C1
#define MICROPY_HW_I2C1_SCL (23)
#define MICROPY_HW_I2C1_SDA (22)
#define MICROPY_HW_SPI0_SCK (6)
#define MICROPY_HW_SPI0_MOSI (3)
#define MICROPY_HW_SPI0_MISO (4)
// NeoPixel data GPIO12, power GPIO11
// Boot button GPIO21

View File

@ -22,16 +22,12 @@
#define MICROPY_HW_UART1_CTS (10)
#define MICROPY_HW_UART1_RTS (11)
// SPI 1 config.
// SPI 1 config (non-default).
#define MICROPY_HW_SPI1_SCK (14)
#define MICROPY_HW_SPI1_MOSI (11)
#define MICROPY_HW_SPI1_MISO (8)
// I2C0 config.
#define MICROPY_HW_I2C0_SCL (13)
#define MICROPY_HW_I2C0_SDA (12)
// I2C1 config.
// I2C1 config (non-default).
#define MICROPY_HW_I2C1_SCL (27)
#define MICROPY_HW_I2C1_SDA (26)

View File

@ -11,14 +11,6 @@
#define MICROPY_HW_UART1_CTS (10)
#define MICROPY_HW_UART1_RTS (11)
// Qwiic on I2C0
#define MICROPY_HW_I2C0_SCL (4)
#define MICROPY_HW_I2C0_SDA (5)
#define MICROPY_HW_SPI0_SCK (18)
#define MICROPY_HW_SPI0_MOSI (19)
#define MICROPY_HW_SPI0_MISO (16)
// User LED GPIO25
// VBUS_SENSE GPIO24

View File

@ -11,14 +11,6 @@
#define MICROPY_HW_UART1_CTS (10)
#define MICROPY_HW_UART1_RTS (11)
// Qwiic on I2C0
#define MICROPY_HW_I2C0_SCL (4)
#define MICROPY_HW_I2C0_SDA (5)
#define MICROPY_HW_SPI0_SCK (18)
#define MICROPY_HW_SPI0_MOSI (19)
#define MICROPY_HW_SPI0_MISO (16)
// User LED GPIO25
// VBUS_SENSE GPIO24

View File

@ -6,6 +6,7 @@
#define MICROPY_HW_USB_VID (0x16D0)
#define MICROPY_HW_USB_PID (0x08C7)
// I2C0 (non-default)
#define MICROPY_HW_I2C0_SCL (4)
#define MICROPY_HW_I2C0_SDA (5)

View File

@ -11,12 +11,4 @@
#define MICROPY_HW_UART1_CTS (10)
#define MICROPY_HW_UART1_RTS (11)
// Qwiic on I2C0
#define MICROPY_HW_I2C0_SCL (17)
#define MICROPY_HW_I2C0_SDA (16)
#define MICROPY_HW_SPI0_SCK (22)
#define MICROPY_HW_SPI0_MOSI (23)
#define MICROPY_HW_SPI0_MISO (20)
// NeoPixel data GPIO25, power not toggleable

View File

@ -9,15 +9,7 @@
#define MICROPY_HW_I2C0_SCL (17)
#define MICROPY_HW_I2C0_SDA (16)
// Qwiic on I2C1
#define MICROPY_HW_I2C1_SCL (7)
#define MICROPY_HW_I2C1_SDA (6)
#define MICROPY_HW_SPI0_SCK (2)
#define MICROPY_HW_SPI0_MOSI (3)
#define MICROPY_HW_SPI0_MISO (4)
// MicroSD on SPI1
// MicroSD on SPI1 (non-default)
#define MICROPY_HW_SPI1_SCK (14)
#define MICROPY_HW_SPI1_MOSI (15)
#define MICROPY_HW_SPI1_MISO (12)