Skip to content

Commit ae97837

Browse files
committed
Fix pin validation for target XDOT_MAX32670
1 parent fcda884 commit ae97837

File tree

1 file changed

+8
-7
lines changed
  • targets/TARGET_Maxim/TARGET_MAX32670/TARGET_XDOT_MAX32670

1 file changed

+8
-7
lines changed

targets/TARGET_Maxim/TARGET_MAX32670/TARGET_XDOT_MAX32670/PinNames.h

+8-7
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ typedef enum {
8383

8484
// ----- Start of xDot external pin definitions -----
8585
WAKE = P0_19,
86-
LED1 = P0_30,
8786
GPIO0 = P0_30,
8887
GPIO1 = P0_27,
8988
GPIO2 = P0_26,
@@ -111,18 +110,12 @@ typedef enum {
111110
// I2C
112111
I2C1_SCL = P0_12,
113112
I2C1_SDA = P0_13,
114-
I2C_SCL = I2C1_SCL,
115-
I2C_SDA = I2C1_SDA,
116113

117114
// SPI
118115
SPI0_SCK = P0_4,
119116
SPI0_MOSI = P0_3,
120117
SPI0_MISO = P0_2,
121118
SPI0_SS = P0_5,
122-
SPI_MISO = SPI0_MISO,
123-
SPI_MOSI = SPI0_MOSI,
124-
SPI_SCK = SPI0_SCK,
125-
SPI_NSS = SPI0_SS,
126119
// ----- End of xDot external pin definitions -----
127120

128121
// ----- Start of xDot dedicated internal pins. -----
@@ -169,6 +162,14 @@ typedef enum {
169162
NC = NOT_CONNECTED
170163
} PinName;
171164

165+
#define LED1 P0_30
166+
#define I2C_SCL I2C1_SCL
167+
#define I2C_SDA I2C1_SDA
168+
#define SPI_MISO SPI0_MISO
169+
#define SPI_MOSI SPI0_MOSI
170+
#define SPI_SCK SPI0_SCK
171+
#define SPI_NSS SPI0_SS
172+
172173
typedef enum {
173174
PullNone = 0,
174175
PullUp = 1,

0 commit comments

Comments
 (0)