From 97d48e5c0286852de319613136d2996d38fa4ab8 Mon Sep 17 00:00:00 2001 From: Yurii Soldak Date: Thu, 26 Aug 2021 12:30:10 +0200 Subject: board/nano-rp2040: define NINA_SPI and fix wifinina pins --- src/machine/board_nano-rp2040.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/machine/board_nano-rp2040.go b/src/machine/board_nano-rp2040.go index 1b799d70b..d91a26589 100644 --- a/src/machine/board_nano-rp2040.go +++ b/src/machine/board_nano-rp2040.go @@ -68,6 +68,10 @@ const ( SPI1_SDI_PIN Pin = GPIO22 ) +var ( + NINA_SPI = SPI1 +) + // NINA-W102 Pins const ( NINA_SCK Pin = GPIO14 @@ -76,7 +80,7 @@ const ( NINA_CS Pin = GPIO9 NINA_ACK Pin = GPIO10 - NINA_GPIO0 Pin = GPIO0 + NINA_GPIO0 Pin = GPIO2 NINA_RESETN Pin = GPIO3 NINA_TX Pin = GPIO9 -- cgit v1.2.3