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.
This commit is contained in:
Ayke van Laethem
2025-03-07 10:18:18 +01:00
committed by Ron Evans
parent 7d6d93f7aa
commit e49663809b
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -585,6 +585,8 @@ ifneq ($(WASM), 0)
@$(MD5SUM) test.wasm
GOOS=js GOARCH=wasm $(TINYGO) build -size short -o test.wasm -tags=gopher_badge examples/blinky1
@$(MD5SUM) test.wasm
GOOS=js GOARCH=wasm $(TINYGO) build -size short -o test.wasm -tags=pico examples/blinky1
@$(MD5SUM) test.wasm
endif
# test all targets/boards
$(TINYGO) build -size short -o test.hex -target=pca10040-s132v6 examples/blinky1
+1 -1
View File
@@ -1,4 +1,4 @@
//go:build rp2040 || rp2350 || gopher_badge
//go:build rp2040 || rp2350 || gopher_badge || pico
package machine