Skip to content

Commit cb611d5

Browse files
committed
bugfix: output misconfigured
1 parent 9fb57e2 commit cb611d5

File tree

3 files changed

+72
-1
lines changed

3 files changed

+72
-1
lines changed

internal/legacy/pinhal_baremetal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package legacy
55
import "machine"
66

77
func configurePinOut(p PinOutput) {
8-
configurePin(p, machine.PinInputPulldown)
8+
configurePin(p, machine.PinOutput)
99
}
1010

1111
func configurePinInputPulldown(p PinInput) {

internal/legacy/pinhal_pulls.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ package legacy
44

55
import "machine"
66

7+
// If you are getting a build error here you then we missed adding
8+
// your CPU build tag to the list of CPUs that do not have pulldown/pullups.
9+
// Add it above and in pinhal_nopulls! You should also add a smoketest for it :)
710
const (
811
pulldown = machine.PinInputPulldown
912
pullup = machine.PinInputPullup

smoketest

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#!/bin/sh
2+
# These commands are run when running `make smoke-test`.
3+
# They are all run in parallel with the -o flag changed to something unique (to
4+
# avoid a race condition between writing the output and reading the result to
5+
# get an md5sum).
6+
7+
8+
9+
tinygo build -size short -o ./build/test.hex -target=hifive1b ./examples/ssd1351/main.go
10+
tinygo build -size short -o ./build/test.hex -target=circuitplay-express ./examples/lis2mdl/main.go
11+
tinygo build -size short -o ./build/test.hex -target=arduino-nano33 ./examples/max72xx/main.go
12+
tinygo build -size short -o ./build/test.hex -target=feather-m0 ./examples/dht/main.go
13+
# tinygo build -size short -o ./build/test.hex -target=arduino ./examples/keypad4x4/main.go
14+
tinygo build -size short -o ./build/test.hex -target=feather-rp2040 ./examples/pcf8523/
15+
tinygo build -size short -o ./build/test.hex -target=xiao ./examples/pcf8563/alarm/
16+
tinygo build -size short -o ./build/test.hex -target=xiao ./examples/pcf8563/clkout/
17+
tinygo build -size short -o ./build/test.hex -target=xiao ./examples/pcf8563/time/
18+
tinygo build -size short -o ./build/test.hex -target=xiao ./examples/pcf8563/timer/
19+
tinygo build -size short -o ./build/test.hex -target=pico ./examples/qmi8658c/main.go
20+
tinygo build -size short -o ./build/test.hex -target=feather-rp2040 ./examples/pcf8591/
21+
tinygo build -size short -o ./build/test.hex -target=feather-m0 ./examples/ina260/main.go
22+
tinygo build -size short -o ./build/test.hex -target=feather-m0 ./examples/ina219/main.go
23+
tinygo build -size short -o ./build/test.hex -target=nucleo-l432kc ./examples/aht20/main.go
24+
tinygo build -size short -o ./build/test.hex -target=feather-m4 ./examples/sdcard/console/
25+
tinygo build -size short -o ./build/test.hex -target=feather-m4 ./examples/i2csoft/adt7410/
26+
tinygo build -size short -o ./build/test.elf -target=wioterminal ./examples/axp192/m5stack-core2-blinky/
27+
tinygo build -size short -o ./build/test.uf2 -target=pico ./examples/xpt2046/main.go
28+
tinygo build -size short -o ./build/test.elf -target=m5stack-core2 ./examples/ft6336/basic/
29+
tinygo build -size short -o ./build/test.elf -target=m5stack-core2 ./examples/ft6336/touchpaint/
30+
tinygo build -size short -o ./build/test.hex -target=nucleo-wl55jc ./examples/sx126x/lora_rxtx/
31+
tinygo build -size short -o ./build/test.uf2 -target=pico ./examples/ssd1289/main.go
32+
tinygo build -size short -o ./build/test.hex -target=pico ./examples/irremote/main.go
33+
tinygo build -size short -o ./build/test.hex -target=badger2040 ./examples/uc8151/main.go
34+
tinygo build -size short -o ./build/test.uf2 -target=pico ./examples/scd4x/main.go
35+
tinygo build -size short -o ./build/test.uf2 -target=circuitplay-express ./examples/makeybutton/main.go
36+
tinygo build -size short -o ./build/test.hex -target=arduino-nano33 ./examples/ds18b20/main.go
37+
tinygo build -size short -o ./build/test.hex -target=nucleo-wl55jc ./examples/lora/lorawan/atcmd/
38+
tinygo build -size short -o ./build/test.uf2 -target=pico ./examples/as560x/main.go
39+
tinygo build -size short -o ./build/test.uf2 -target=pico ./examples/mpu6886/main.go
40+
tinygo build -size short -o ./build/test.hex -target=arduino-nano33 ./examples/ttp229/main.go
41+
tinygo build -size short -o ./build/test.hex -target=pico ./examples/ndir/main_ndir.go
42+
tinygo build -size short -o ./build/test.hex -target=microbit ./examples/ndir/main_ndir.go
43+
tinygo build -size short -o ./build/test.hex -target=arduino-nano33 ./examples/ndir/main_ndir.go
44+
tinygo build -size short -o ./build/test.uf2 -target=pico ./examples/mpu9150/main.go
45+
tinygo build -size short -o ./build/test.hex -target=macropad-rp2040 ./examples/sh1106/macropad_spi
46+
tinygo build -size short -o ./build/test.hex -target=macropad-rp2040 ./examples/encoders/quadrature-interrupt
47+
tinygo build -size short -o ./build/test.uf2 -target=pico ./examples/mcp9808/main.go
48+
tinygo build -size short -o ./build/test.uf2 -target=pico ./examples/tmc2209/main.go
49+
tinygo build -size short -o ./build/test.hex -target=pico ./examples/tmc5160/main.go
50+
tinygo build -size short -o ./build/test.uf2 -target=nicenano ./examples/sharpmem/main.go
51+
tinygo build -size short -o ./build/test.hex -target=feather-nrf52840 ./examples/max6675/main.go
52+
# network examples (espat)
53+
tinygo build -size short -o ./build/test.hex -target=challenger-rp2040 ./examples/net/ntpclient/
54+
# network examples (wifinina)
55+
tinygo build -size short -o ./build/test.hex -target=pyportal -stack-size 8kb ./examples/net/http-get/
56+
tinygo build -size short -o ./build/test.hex -target=arduino-nano33 -stack-size 8kb ./examples/net/tcpclient/
57+
tinygo build -size short -o ./build/test.hex -target=nano-rp2040 -stack-size 8kb ./examples/net/websocket/dial/
58+
tinygo build -size short -o ./build/test.hex -target=metro-m4-airlift -stack-size 8kb ./examples/net/socket/
59+
tinygo build -size short -o ./build/test.hex -target=matrixportal-m4 -stack-size 8kb ./examples/net/webstatic/
60+
tinygo build -size short -o ./build/test.hex -target=arduino-mkrwifi1010 -stack-size 8kb ./examples/net/tlsclient/
61+
tinygo build -size short -o ./build/test.hex -target=nano-rp2040 -stack-size 8kb ./examples/net/mqttclient/natiu/
62+
# network examples (rtl8720dn)
63+
tinygo build -size short -o ./build/test.hex -target=wioterminal -stack-size 8kb ./examples/net/webclient/
64+
tinygo build -size short -o ./build/test.hex -target=wioterminal -stack-size 8kb ./examples/net/webserver/
65+
tinygo build -size short -o ./build/test.hex -target=wioterminal -stack-size 8kb ./examples/net/mqttclient/paho/
66+
# network examples (comboat)
67+
tinygo build -size short -o ./build/test.hex -target=elecrow-rp2040 -stack-size 8kb ./examples/net/tlsclient/
68+
tinygo build -size short -o ./build/test.hex -target=elecrow-rp2350 -stack-size 8kb ./examples/net/ntpclient/

0 commit comments

Comments
 (0)