Ayke van Laethem
e11df5c212
cgo: add support for bitwise operators
2023-01-12 08:51:03 +01:00
deadprogram
656805d91f
docs: update README with missing boards
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-01-11 21:51:03 +01:00
Thomas Richner
05ec4e6bd0
Support for Adafruit Feather M0 Express board
2023-01-11 10:07:11 +01:00
Achille Roussel
ae65b37762
add comment about where src/os/file.go came from
...
Signed-off-by: Achille Roussel <achille.roussel@gmail.com>
2023-01-10 20:40:53 +01:00
John Clark
aa12579864
Add SPI support for for the ESP32-C3 device.
...
Signed-off-by: John Clark <inindev@gmail.com>
2023-01-10 15:52:25 +01:00
Damian Gryski
715b269f78
src/runtime: add xorshift-based fastrand64
2023-01-08 10:35:31 +01:00
sago35
5f3534fe72
machine/usb: change to not send before endpoint initialization
2023-01-08 08:44:27 +01:00
irieda
a7ff2731b9
Add USB HID joystick support ( #3366 )
...
machine/usb: add USB HID joystick support
2023-01-07 22:30:40 +01:00
Anuraag Agrawal
0566bbfeb4
Use renamed EXTRA_CFLAGS when building wasi-libc
2023-01-07 19:53:48 +01:00
sago35
70c4e1cf96
machine/usb: improve buffer size definition
2023-01-07 17:57:19 +01:00
Ayke van Laethem
9fd0567fb5
compiler: fix stack overflow when creating recursive pointer types
...
There were two types that could result in a compiler stack overflow.
This is difficult to fix in LLVM 14, so I won't even bother. However,
this is trivial to fix with opaque pointers in LLVM 15. Therefore, this
fix is for LLVM 15 only.
Fixes: https://github.com/tinygo-org/tinygo/issues/3341
2022-12-22 17:45:05 +01:00
BCG
481aba6536
board: Adafruit KB2040 ( https://www.adafruit.com/product/5302 )
2022-12-22 11:49:31 +01:00
Adrian Cole
a700f58581
wasi: makes wasmtime "run" explicit
...
wasmtime by default will assume the subcommand is "run" vs one of its
others, but being explicit helps clarify the actual command invoked.
For example, we pass similar looking args to wasmtime and also wasi.
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2022-12-22 09:22:17 +01:00
Jesús Espino
e71e289e8b
Add basic atmega32u support ( #3337 )
...
machine/atmega32u: add support for arduino leonardo
2022-12-20 16:57:55 +01:00
sago35
6cdc718bfb
rp2040: drop deprecated build tags
2022-12-20 15:53:02 +01:00
sago35
70c94c6d01
rp2040: add version check for RP2040-E5
2022-12-20 15:53:02 +01:00
sago35
762a6f1256
rp2040: fix usb device enumeration (RP2040-E5)
2022-12-20 15:53:02 +01:00
Yurii Soldak
8d4d3c6201
build: drop deprecated build tags
2022-12-19 23:20:11 +01:00
Yurii Soldak
146e2cd376
build: generate files with go:build tags
2022-12-19 23:20:11 +01:00
Jesús Espino
d304e6706b
Adding support for waveshare rp2040-zero ( #3321 )
...
machine: adding support for waveshare rp2040-zero
2022-12-19 12:15:03 +01:00
deadprogram
c5c6464175
compileopts: replace 'retries' with more correct 'timeout' param
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2022-12-19 08:44:39 +01:00
sago35
c90ff1e1cf
rp2040: fix interrupt issue (2)
2022-12-19 08:43:56 +01:00
sago35
0f6dfedcfd
rp2040: fix interrupt issue
2022-12-17 12:52:19 +01:00
Ron Evans
69a284bd36
Revert "Bump CMSIS to 5.9.0"
...
This reverts commit 92be61534e
.
2022-12-16 21:26:49 +01:00
Anton D. Kachalov
92be61534e
Bump CMSIS to 5.9.0
2022-12-16 15:42:35 +01:00
Damian Gryski
675b8e3f3c
builder: always run wasm-opt for wasm32 binaries
2022-12-16 10:11:39 +01:00
Ayke van Laethem
f3d0195d35
runtime: move KeepAlive/SetFinalizer to common code
...
We don't support these yet so let's just put them in a central location.
Once these functions are supported we can think about how to structure
the code again.
2022-12-15 19:25:27 +01:00
sago35
398c284480
usbhid: change usage-maximum to 0xFF
2022-12-15 18:24:54 +01:00
Damian Gryski
86f125cf72
reflect: track flags when size changes from fits-in-pointer to not
...
Fixes #3328
2022-12-07 23:11:40 +01:00
sago35
5293d3e5f0
atsame5x: reduce heap allocation
2022-12-01 22:27:12 +01:00
Ayke van Laethem
7aca814954
windows: update mingw-w64 version
...
This gets rid of the following messages:
ld.lld: warning: duplicate /export option: hypot
ld.lld: warning: duplicate /export option: nextafter
I've wanted to wait for the next release but that may take a long while,
so I've simply set the submodule to the commit that fixes this message.
2022-11-26 21:42:15 +01:00
deadprogram
1d52e6be29
machine/nrf51: add ADC implementation
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2022-11-26 20:17:11 +01:00
sago35
acb2391439
atsame5x: fix extendedID handling
2022-11-25 17:57:16 +01:00
Ayke van Laethem
49007891c8
all: re-enable AVR tests
...
I have some confidence they'll work reliably now.
2022-11-25 10:56:42 +01:00
Ayke van Laethem
54aec042b7
avr: add channel test
...
It is working now, so add it as a test. Not sure why, maybe the ThinLTO
change fixed something here?
2022-11-25 10:56:42 +01:00
sago35
baca8a643e
xiao-rp2040: add pin definitions
2022-11-23 09:01:48 +01:00
Anuraag Agrawal
b731919f97
Fix panic when size 0 passed to malloc
2022-11-21 21:00:36 +01:00
Julia Ogris
c759e6fc2d
reflect: Add Value.IsZero() method
...
Add Value.IsZero() with tests, largely copied from the Go source code.
The tests were altered to remove the parts calling `Zero()` as that is
still unimplemented in tinygo, and to remove a test that tries to catch
a panic which is not supported on wasi.
A new case for `UnsafePointer` in `Value.IsNil()` was required for
unsafe.Pointer tests to pass.
Link: https://cs.opensource.google/go/go/+/refs/tags/go1.19.3:src/reflect/value.go;l=1568
Link: https://cs.opensource.google/go/go/+/refs/tags/go1.19.3:src/reflect/all_test.go;l=1322
Co-authored-by: Cam Hutchison <camh@xdna.net>
2022-11-21 14:51:22 +01:00
goropikari
a329f56ec2
Fix xiao rp2040 pin variable assignment
...
According to official infomation(https://wiki.seeedstudio.com/XIAO-RP2040/ ), D9 and D10 are corresponding to GPIO4 and GPIO3, respectively.
2022-11-21 11:49:18 +01:00
deadprogram
6e503f5ab9
build: update docker GH action to use latest docker action versions
2022-11-21 10:59:59 +01:00
deadprogram
217449df07
machine/stm32f1, stm32f4: fix ADC by clearing the correct bit for rank after each read
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2022-11-21 08:53:21 +01:00
deadprogram
a7fc65861d
machine/stm32: always set ADC pins to pullups floating
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2022-11-21 08:53:21 +01:00
Damian Gryski
f0a271bd21
transform: remove duplicate if in gc transform
2022-11-18 20:19:47 +01:00
Ayke van Laethem
4d14d3cd54
avr: support ThinLTO
...
ThinLTO results in a small code size reduction, which is nice
(especially on these very small chips). It also brings us one step
closer to using ThinLTO everywhere.
2022-11-18 18:40:38 +01:00
Ayke van Laethem
5c622cfc43
compiler: refactor some code for the next commit
...
This is a pure refactor, it doesn't change the behavior of anything.
It's separate from the next commit so that the actual changes are easier
to read.
2022-11-18 18:40:38 +01:00
Ayke van Laethem
783c6a813a
wasm: fix scanning of the stack
...
LLVM wasn't aware that runtime.stackChainStart must be kept live and
can't be optimized away. With this hack, it is forced to consider
stackChainStart live at the time of the stack scan.
This fixes the corruption in https://github.com/tinygo-org/tinygo/issues/3277
2022-11-17 17:19:10 +01:00
Ayke van Laethem
67841207e8
Revert "Enable wasm pointer tracking for gc=none."
...
This reverts commit 0b3a7280fa
and updates
the documentation a little bit to explain the purpose of -gc=none. (I'm
thinking about the attiny10 by the way where defaulting to -gc=none
makes sense).
2022-11-17 15:50:57 +01:00
tachyonicbytes
d92e16e6dc
Stubbed Setuid and friends. Stubbed Exec ( #3290 )
...
Co-authored-by: TachyonicBytes <TB>
2022-11-16 10:14:27 +01:00
Dan Kegel
4daf4fa0a0
corpus: add buger/jsonparser
2022-11-15 11:03:05 +01:00
Anuraag Agrawal
0b3a7280fa
Enable wasm pointer tracking for gc=none.
2022-11-15 10:21:11 +01:00