Commit dec0ff7a authored by Jim Mussared's avatar Jim Mussared Committed by Damien George

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: default avatarJim Mussared <jim.mussared@gmail.com>
parent 315e7423
...@@ -7,14 +7,6 @@ ...@@ -7,14 +7,6 @@
#define MICROPY_HW_USB_VID (0x239A) #define MICROPY_HW_USB_VID (0x239A)
#define MICROPY_HW_USB_PID (0x80F2) #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 // NeoPixel GPIO16, power not toggleable
// Red user LED GPIO13 // Red user LED GPIO13
...@@ -7,13 +7,6 @@ ...@@ -7,13 +7,6 @@
#define MICROPY_HW_USB_VID (0x239A) #define MICROPY_HW_USB_VID (0x239A)
#define MICROPY_HW_USB_PID (0x80FE) #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 // NeoPixel data GPIO17, power GPIO16
// Red user LED GPIO11 // Red user LED GPIO11
......
...@@ -12,17 +12,10 @@ ...@@ -12,17 +12,10 @@
#define MICROPY_HW_UART1_CTS (10) #define MICROPY_HW_UART1_CTS (10)
#define MICROPY_HW_UART1_RTS (7) #define MICROPY_HW_UART1_RTS (7)
#define MICROPY_HW_I2C0_SCL (25) // STEMMA QT / Qwiic on (non-default) I2C1
#define MICROPY_HW_I2C0_SDA (24)
// STEMMA QT / Qwiic on I2C1
#define MICROPY_HW_I2C1_SCL (23) #define MICROPY_HW_I2C1_SCL (23)
#define MICROPY_HW_I2C1_SDA (22) #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 // NeoPixel data GPIO12, power GPIO11
// Boot button GPIO21 // Boot button GPIO21
...@@ -22,16 +22,12 @@ ...@@ -22,16 +22,12 @@
#define MICROPY_HW_UART1_CTS (10) #define MICROPY_HW_UART1_CTS (10)
#define MICROPY_HW_UART1_RTS (11) #define MICROPY_HW_UART1_RTS (11)
// SPI 1 config. // SPI 1 config (non-default).
#define MICROPY_HW_SPI1_SCK (14) #define MICROPY_HW_SPI1_SCK (14)
#define MICROPY_HW_SPI1_MOSI (11) #define MICROPY_HW_SPI1_MOSI (11)
#define MICROPY_HW_SPI1_MISO (8) #define MICROPY_HW_SPI1_MISO (8)
// I2C0 config. // I2C1 config (non-default).
#define MICROPY_HW_I2C0_SCL (13)
#define MICROPY_HW_I2C0_SDA (12)
// I2C1 config.
#define MICROPY_HW_I2C1_SCL (27) #define MICROPY_HW_I2C1_SCL (27)
#define MICROPY_HW_I2C1_SDA (26) #define MICROPY_HW_I2C1_SDA (26)
......
...@@ -11,14 +11,6 @@ ...@@ -11,14 +11,6 @@
#define MICROPY_HW_UART1_CTS (10) #define MICROPY_HW_UART1_CTS (10)
#define MICROPY_HW_UART1_RTS (11) #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 // User LED GPIO25
// VBUS_SENSE GPIO24 // VBUS_SENSE GPIO24
......
...@@ -11,14 +11,6 @@ ...@@ -11,14 +11,6 @@
#define MICROPY_HW_UART1_CTS (10) #define MICROPY_HW_UART1_CTS (10)
#define MICROPY_HW_UART1_RTS (11) #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 // User LED GPIO25
// VBUS_SENSE GPIO24 // VBUS_SENSE GPIO24
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#define MICROPY_HW_USB_VID (0x16D0) #define MICROPY_HW_USB_VID (0x16D0)
#define MICROPY_HW_USB_PID (0x08C7) #define MICROPY_HW_USB_PID (0x08C7)
// I2C0 (non-default)
#define MICROPY_HW_I2C0_SCL (4) #define MICROPY_HW_I2C0_SCL (4)
#define MICROPY_HW_I2C0_SDA (5) #define MICROPY_HW_I2C0_SDA (5)
......
...@@ -11,12 +11,4 @@ ...@@ -11,12 +11,4 @@
#define MICROPY_HW_UART1_CTS (10) #define MICROPY_HW_UART1_CTS (10)
#define MICROPY_HW_UART1_RTS (11) #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 // NeoPixel data GPIO25, power not toggleable
...@@ -9,15 +9,7 @@ ...@@ -9,15 +9,7 @@
#define MICROPY_HW_I2C0_SCL (17) #define MICROPY_HW_I2C0_SCL (17)
#define MICROPY_HW_I2C0_SDA (16) #define MICROPY_HW_I2C0_SDA (16)
// Qwiic on I2C1 // MicroSD on SPI1 (non-default)
#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
#define MICROPY_HW_SPI1_SCK (14) #define MICROPY_HW_SPI1_SCK (14)
#define MICROPY_HW_SPI1_MOSI (15) #define MICROPY_HW_SPI1_MOSI (15)
#define MICROPY_HW_SPI1_MISO (12) #define MICROPY_HW_SPI1_MISO (12)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment