Skip to content

Commit 94d0cf4

Browse files
committed
https://github.com/adafruit/ArduinoCore-samd/issues/50
1 parent 6596a8a commit 94d0cf4

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

variants/metro_m4/variant.h

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static const uint8_t ATN = PIN_ATN;
134134
/*
135135
* SPI Interfaces
136136
*/
137-
#define SPI_INTERFACES_COUNT 2
137+
#define SPI_INTERFACES_COUNT 1
138138

139139
#define PIN_SPI_MISO (24u)
140140
#define PIN_SPI_MOSI (26u)
@@ -148,18 +148,6 @@ static const uint8_t MOSI = PIN_SPI_MOSI ;
148148
static const uint8_t MISO = PIN_SPI_MISO ;
149149
static const uint8_t SCK = PIN_SPI_SCK ;
150150

151-
#define PIN_SPI1_MISO (33u)
152-
#define PIN_SPI1_MOSI (34u)
153-
#define PIN_SPI1_SCK (32u)
154-
#define PERIPH_SPI1 sercom1
155-
#define PAD_SPI1_TX SPI_PAD_0_SCK_1
156-
#define PAD_SPI1_RX SERCOM_RX_PAD_3
157-
158-
static const uint8_t SS1 = 35 ; // HW SS isn't used. Set here only for reference.
159-
static const uint8_t MOSI1 = PIN_SPI_MOSI ;
160-
static const uint8_t MISO1 = PIN_SPI_MISO ;
161-
static const uint8_t SCK1 = PIN_SPI_SCK ;
162-
163151

164152
/*
165153
* Wire Interfaces

0 commit comments

Comments
 (0)