Skip to content

Commit e496638

Browse files
aykevldeadprogram
authored andcommitted
machine: fix RP2040 Pico board on the playground
Right now it doesn't compile, with errors like the following: # machine /app/tinygo/src/machine/board_pico.go:7:13: undefined: GPIO0 /app/tinygo/src/machine/board_pico.go:8:13: undefined: GPIO1 /app/tinygo/src/machine/board_pico.go:9:13: undefined: GPIO2 /app/tinygo/src/machine/board_pico.go:10:13: undefined: GPIO3 [...etc...] This patch should fix that.
1 parent 7d6d93f commit e496638

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

GNUmakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,8 @@ ifneq ($(WASM), 0)
585585
@$(MD5SUM) test.wasm
586586
GOOS=js GOARCH=wasm $(TINYGO) build -size short -o test.wasm -tags=gopher_badge examples/blinky1
587587
@$(MD5SUM) test.wasm
588+
GOOS=js GOARCH=wasm $(TINYGO) build -size short -o test.wasm -tags=pico examples/blinky1
589+
@$(MD5SUM) test.wasm
588590
endif
589591
# test all targets/boards
590592
$(TINYGO) build -size short -o test.hex -target=pca10040-s132v6 examples/blinky1

src/machine/machine_rp2_pins.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build rp2040 || rp2350 || gopher_badge
1+
//go:build rp2040 || rp2350 || gopher_badge || pico
22

33
package machine
44

0 commit comments

Comments
 (0)