Skip to content

Commit d09c714

Browse files
committed
use constant values for SPI / I2C pins
1 parent 656dca0 commit d09c714

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

variants/particle_xenon/variant.h

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -140,27 +140,27 @@ static const uint8_t A5 = PIN_A5;
140140
/*
141141
* Serial interfaces
142142
*/
143-
#define PIN_SERIAL1_RX D9
144-
#define PIN_SERIAL1_TX D10
145-
#define PIN_SERIAL1_CTS D4
146-
#define PIN_SERIAL1_RTS D3
147-
#define PIN_SERIAL2_RX D5
148-
#define PIN_SERIAL2_TX D4
149-
#define PIN_SERIAL2_CTS D6
150-
#define PIN_SERIAL2_RTS D8
143+
#define PIN_SERIAL1_RX 9
144+
#define PIN_SERIAL1_TX 10
145+
#define PIN_SERIAL1_CTS 4
146+
#define PIN_SERIAL1_RTS 3
147+
#define PIN_SERIAL2_RX 5
148+
#define PIN_SERIAL2_TX 4
149+
#define PIN_SERIAL2_CTS 6
150+
#define PIN_SERIAL2_RTS 8
151151

152152
/*
153153
* SPI Interfaces
154154
*/
155155
#define SPI_INTERFACES_COUNT 2
156156

157-
#define PIN_SPI_SS D14
158-
#define PIN_SPI_MISO D11
159-
#define PIN_SPI_MOSI D12
160-
#define PIN_SPI_SCK D13
161-
#define PIN_SPI1_MISO D4
162-
#define PIN_SPI1_MOSI D3
163-
#define PIN_SPI1_SCK D2
157+
#define PIN_SPI_SS 14
158+
#define PIN_SPI_MISO 11
159+
#define PIN_SPI_MOSI 12
160+
#define PIN_SPI_SCK 13
161+
#define PIN_SPI1_MISO 4
162+
#define PIN_SPI1_MOSI 3
163+
#define PIN_SPI1_SCK 2
164164

165165
static const uint8_t SS = PIN_SPI_SS;
166166
static const uint8_t MOSI = PIN_SPI_MOSI;
@@ -175,10 +175,10 @@ static const uint8_t SCK1 = PIN_SPI1_SCK;
175175
*/
176176
#define WIRE_INTERFACES_COUNT 2
177177

178-
#define PIN_WIRE_SDA D0
179-
#define PIN_WIRE_SCL D1
180-
#define PIN_WIRE1_SDA D2
181-
#define PIN_WIRE1_SCL D3
178+
#define PIN_WIRE_SDA 0
179+
#define PIN_WIRE_SCL 1
180+
#define PIN_WIRE1_SDA 2
181+
#define PIN_WIRE1_SCL 3
182182

183183
// On-board QSPI Flash
184184
#define EXTERNAL_FLASH_DEVICES GD25Q16C

0 commit comments

Comments
 (0)