Skip to content

Commit 5839907

Browse files
committed
[INITIAL] Start supporting internal SPI for NiNa
1 parent 501b140 commit 5839907

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

variants/mkrvidor/variant.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,12 @@ static const uint8_t SCK1 = PIN_SPI1_SCK;
121121
#define SDCARD_SCK_PIN PIN_SPI1_SCK
122122
#define SDCARD_SS_PIN PIN_SPI1_SS
123123

124-
// TEMP: NINA passthrough
125-
#define SPIWIFI SPI
126-
#define SPIWIFI_SS 5
127-
#define SPIWIFI_ACK 4
128-
#define SPIWIFI_RESET 7
124+
// NINA signals
125+
#define SPIWIFI SPIEx
126+
#define NINA_GPIO0 (100 + 64 + 10) // WM_PIO27 -> NiNa GPIO0 -> FPGA N9
127+
#define SPIWIFI_RESET (100 + 64 + 0) // WM_RESET -> NiNa RESETN -> FPGA R1
128+
#define SPIWIFI_ACK (100 + 64 + 5) // WM_PIO7 -> NiNa GPIO33 -> FPGA P6
129+
#define SPIWIFI_SS (100 + 64 + 11) // WM_PIO28 -> NiNa GPIO5 -> FPGA N11
129130

130131
// Wire Interfaces
131132
// ---------------

0 commit comments

Comments
 (0)