Skip to content

Commit 2fbfee3

Browse files
committed
spi fix
1 parent 2b7afb5 commit 2fbfee3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

variants/hallowing_m0_express/variant.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static const uint8_t ATN = PIN_ATN;
137137
/*
138138
* SPI Interfaces
139139
*/
140-
#define SPI_INTERFACES_COUNT 1
140+
#define SPI_INTERFACES_COUNT 2
141141

142142
#define PIN_SPI_MISO (28u)
143143
#define PIN_SPI_MOSI (29u)
@@ -156,13 +156,13 @@ static const uint8_t SCK = PIN_SPI_SCK ;
156156
#define PIN_SPI1_MOSI (34u)
157157
#define PIN_SPI1_SCK (35u)
158158
#define PERIPH_SPI1 sercom4
159-
#define PAD_SPI1_TX SPI_PAD_3_SCK_3
159+
#define PAD_SPI1_TX SPI_PAD_2_SCK_3
160160
#define PAD_SPI1_RX SERCOM_RX_PAD_1
161161

162162
static const uint8_t SS1 = 36;
163-
static const uint8_t MOSI1 = PIN_SPI_MOSI ;
164-
static const uint8_t MISO1 = PIN_SPI_MISO ;
165-
static const uint8_t SCK1 = PIN_SPI_SCK ;
163+
static const uint8_t MOSI1 = PIN_SPI1_MOSI ;
164+
static const uint8_t MISO1 = PIN_SPI1_MISO ;
165+
static const uint8_t SCK1 = PIN_SPI1_SCK ;
166166

167167

168168
/*

0 commit comments

Comments
 (0)