From ae97837f45d44e4bd01bcf6eca31da3cb40e2333 Mon Sep 17 00:00:00 2001 From: Leon Lindenfelser Date: Mon, 23 Oct 2023 12:16:45 -0500 Subject: [PATCH] Fix pin validation for target XDOT_MAX32670 --- .../TARGET_XDOT_MAX32670/PinNames.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/targets/TARGET_Maxim/TARGET_MAX32670/TARGET_XDOT_MAX32670/PinNames.h b/targets/TARGET_Maxim/TARGET_MAX32670/TARGET_XDOT_MAX32670/PinNames.h index f4479fac8e0..2cb3dc03e5f 100755 --- a/targets/TARGET_Maxim/TARGET_MAX32670/TARGET_XDOT_MAX32670/PinNames.h +++ b/targets/TARGET_Maxim/TARGET_MAX32670/TARGET_XDOT_MAX32670/PinNames.h @@ -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, @@ -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. ----- @@ -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,