aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYurii Soldak <[email protected]>2021-08-26 12:30:10 +0200
committerRon Evans <[email protected]>2021-09-01 17:24:19 +0200
commit97d48e5c0286852de319613136d2996d38fa4ab8 (patch)
tree606bd6c63caf60bb07a199c1f275ae5e5e54e555
parenta7c53cce065f79a4b9e1cad1e47abf3ae0538134 (diff)
downloadtinygo-97d48e5c0286852de319613136d2996d38fa4ab8.tar.gz
tinygo-97d48e5c0286852de319613136d2996d38fa4ab8.zip
board/nano-rp2040: define NINA_SPI and fix wifinina pins
-rw-r--r--src/machine/board_nano-rp2040.go6
1 files changed, 5 insertions, 1 deletions
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