deadprogram
48ef68dd86
examples: replace fmt with encoding/hex in usb-midi example
Signed-off-by: deadprogram <ron@hybridgroup.com>
2 years ago
Damian Gryski
8b9bee4cad
main: don't print `ok` for a successful compile-only
2 years ago
Elliott Sales de Andrade
b4c9b579b8
Switch interp tests to opaque pointers
2 years ago
Damian Gryski
2b1dc4fee5
testing: add -test.shuffle to order randomize test and benchmark order
2 years ago
Damian Gryski
0244bed033
testdata: add test for else/defer bug
2 years ago
Damian Gryski
60b23a7035
compiler: update test outputs
2 years ago
Damian Gryski
4326c8f10e
compiler: ensure all defers have been seen before creating rundefers
Fixes #3643
2 years ago
Damian Gryski
1672610749
testing: move runtime.GC() call to runN to match upstream
2 years ago
Damian Gryski
e00a2395d9
testing: fix benchmark logging output
2 years ago
sago35
42175496eb
machine/atsamd51: remove extra BK0RDY clear
2 years ago
Ayke van Laethem
3b4e543f4e
rp2040: use DMA for send-only SPI transfers
This improves slightly. It also is some groundwork for better DMA
support in TinyGo in the future.
I'm not entirely sure why it improves performance (in theory the old
code should already saturate the SPI bus) but it does, so 🤷
2 years ago
Kenneth Bell
ad3e9e1a77
i2c: implement target mode for rp2040 and nrf
2 years ago
Kenneth Bell
e0385e48d0
nrf: new peripheral type for nrf528xx chips
2 years ago
Kenneth Bell
feadb9c85c
nrf: move nrf52 family code to correct file name
2 years ago
Kenneth Bell
4bf7308d26
machine: make gosched available to machine package
2 years ago
Ayke van Laethem
19e4db45db
samd51: use correct SPI frequency
The SPI frequency was rounded up, not rounded down. This meant that if
you wanted to configure 15MHz for example, it would pick the next
available frequency (24MHz). That's unsafe, the safe option is to round
down and the SPI support for most other chips also rounds down for this
reason.
In addition, I've improved SPI clock selection so that it will pick the
best clock of the two, widening the available frequencies. See the
comments in the patch for details.
2 years ago
sago35
71b44e79b3
machine/usb/hid/joystick: allow joystick settings override
2 years ago
deadprogram
9e97566b5f
machine/usb/hid/joystick: move joystick under HID as it belongs and also remove duplicate code
Signed-off-by: deadprogram <ron@hybridgroup.com>
2 years ago
Ayke van Laethem
7d83e76833
rp2040: use 4MHz as default frequency for SPI
This matches other SPI implementations. I think the original value of
115200 was from a confusion with UART.
2 years ago
Damian Gryski
9e7882b1b7
reflect: uncomment a another test the fails and doc some that don't
2 years ago
Damian Gryski
0c4f9d1f19
reflect; uncomment SetZero (but comment out the parts that fail)
2 years ago
Damian Gryski
a85cb22193
reflect: uncomment TestAppend and fix a bug it found
2 years ago
Damian Gryski
60bb832c89
reflect: handle Convert'ing between identical underlying types
Needed for go-jose/v3
2 years ago
Ayke van Laethem
6eda52a289
rp2040: remove SPI deadline
Removing it improves SPI performance by about 20% for me (updating the
display of a Gopher Badge).
2 years ago
Damian Gryski
8badf79af9
testing: remove unused variable left over from `count` prototyping
2 years ago
Damian Gryski
66d3c4edb8
main: fix typos in flag usage messages
2 years ago
Damian Gryski
63aaa43072
testing: add test.skip
Fixes #3056
2 years ago
Damian Gryski
ee81c31884
testing: import new version of match.go
2 years ago
Damian Gryski
50d681359d
main: set WASMTIME_BACKTRACE_DETAILS when running in wasmtime.
I find myself consistently running tests, seeing them panic, and then
immediately running them again with this environment variable set. It's
easier to just have tinygo do this for me.
2 years ago
Damian Gryski
d50c54fce0
Makefile: compress/lzw seems to work on wasi now.
2 years ago
Damian Gryski
4a81cac53b
main: make sure all testing output goes to the same place
2 years ago
Damian Gryski
84a3273131
main: fix tests with default TestConfig.Count=0 doesn't skip all tests
2 years ago
Damian Gryski
9182664845
testing: make test output unbuffered when verbose
Fixes #3579
2 years ago
Damian Gryski
a2f95d6b87
main: stuff test runner options into their own struct
Fixes #2406
2 years ago
Damian Gryski
698b1f19c6
testing: support -test.count
This makes running benchmarks repeatedly easier.
2 years ago
Damian Gryski
e6ccdd9d1a
reflect: another obscure RO bug
2 years ago
Damian Gryski
b39a982067
reflect: uncomment another test and fix RO logic issues it uncovered
2 years ago
Ayke van Laethem
e0bf376068
rp2040: unify all linker scripts using LDFLAGS
The only thing that's different between all these chips is the flash
size, which can easily be passed as a linker flag instead. This removes
a bunch of duplicate code in an uncommon language (linker script).
I've also fixed a few boards with incorrect flash sizes:
* nano-rp2040 has 16MB instead of 2MB
* macropad-rp2040 has 8MB instead of 2MB
* gopher-badge has 8MB instead of 1MB
2 years ago
Damian Gryski
b044d4ff3d
reflect: add more RO checks
2 years ago
Damian Gryski
0cd93a3a9e
reflect: add valueFlagRO
2 years ago
Damian Gryski
5faff2e13a
reflect: add sipmlified strconv.Quote() implementation for struct tags
2 years ago
Damian Gryski
195de23d3b
reflect: Fix Kind(-1).String() and enable test
2 years ago
Damian Gryski
d4bdd836bc
reflect: implement and test Value.Comparable
2 years ago
Damian Gryski
a11f2436e3
reflect: TestAliasNames passes
2 years ago
Damian Gryski
017ab4c352
reflect: fix TestCanSetField
2 years ago
Damian Gryski
181d2ad2b4
reflect: add CanInt() and friends and uncomments tests that pass
2 years ago
Damian Gryski
53b95cad08
reflect: uncomment Type.String() tests that pass
2 years ago
Damian Gryski
e7bd22edf2
reflect: print struct tags in Type.String() (with a caveat)
2 years ago
Damian Gryski
1a60a1f526
reflect: stub channel select routines/types
2 years ago
Damian Gryski
3fbd3c4d93
compiler,reflect: support channel directions
2 years ago