Skip to content

Commit

Permalink
Fix pin validation for target XDOT_MAX32670
Browse files Browse the repository at this point in the history
  • Loading branch information
felser committed Oct 23, 2023
1 parent fcda884 commit ae97837
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ typedef enum {

// ----- Start of xDot external pin definitions -----
WAKE = P0_19,
LED1 = P0_30,
GPIO0 = P0_30,
GPIO1 = P0_27,
GPIO2 = P0_26,
Expand Down Expand Up @@ -111,18 +110,12 @@ typedef enum {
// I2C
I2C1_SCL = P0_12,
I2C1_SDA = P0_13,
I2C_SCL = I2C1_SCL,
I2C_SDA = I2C1_SDA,

// SPI
SPI0_SCK = P0_4,
SPI0_MOSI = P0_3,
SPI0_MISO = P0_2,
SPI0_SS = P0_5,
SPI_MISO = SPI0_MISO,
SPI_MOSI = SPI0_MOSI,
SPI_SCK = SPI0_SCK,
SPI_NSS = SPI0_SS,
// ----- End of xDot external pin definitions -----

// ----- Start of xDot dedicated internal pins. -----
Expand Down Expand Up @@ -169,6 +162,14 @@ typedef enum {
NC = NOT_CONNECTED
} PinName;

#define LED1 P0_30
#define I2C_SCL I2C1_SCL
#define I2C_SDA I2C1_SDA
#define SPI_MISO SPI0_MISO
#define SPI_MOSI SPI0_MOSI
#define SPI_SCK SPI0_SCK
#define SPI_NSS SPI0_SS

typedef enum {
PullNone = 0,
PullUp = 1,
Expand Down

0 comments on commit ae97837

Please sign in to comment.