Skip to content

Commit a780f1f

Browse files
committed
[zero] prepare variant for SPI and Wire board parameters
1 parent f2cfe52 commit a780f1f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: variants/arduino_zero/variant.h

+5
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ static const uint8_t ATN = PIN_ATN;
129129
#define PIN_SPI_MISO (22u)
130130
#define PIN_SPI_MOSI (23u)
131131
#define PIN_SPI_SCK (24u)
132+
#define PERIPH_SPI sercom4
133+
#define PAD_SPI_TX SPI_PAD_2_SCK_3
134+
#define PAD_SPI_RX SERCOM_RX_PAD_0
132135

133136
static const uint8_t SS = PIN_A2 ; // SERCOM4 last PAD is present on A2 but HW SS isn't used. Set here only for reference.
134137
static const uint8_t MOSI = PIN_SPI_MOSI ;
@@ -142,6 +145,8 @@ static const uint8_t SCK = PIN_SPI_SCK ;
142145

143146
#define PIN_WIRE_SDA (20u)
144147
#define PIN_WIRE_SCL (21u)
148+
#define PERIPH_WIRE sercom3
149+
#define WIRE_IT_HANDLER SERCOM3_Handler
145150

146151
/*
147152
* USB

0 commit comments

Comments
 (0)