deadprogram
c6609a02fa
machine/esp32c3: move i2c implementation into separate file to skip m5stamp-c3 since it does not appear to expose those pins
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-12-03 22:05:08 +01:00
deadprogram
a449c4813a
build: can only build boards with board files for pin mapping
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-12-03 22:05:08 +01:00
deadprogram
19fb1bfafc
machine/esp32c3: corrected implementation for error handling and when to expect NACK
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-12-03 22:05:08 +01:00
deadprogram
f91b6ad0df
machine/esp32c3: handle defaults for I2C configuration
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-12-03 22:05:08 +01:00
Dmitriy
94459cefe5
machine/esp32c3: implement i2c for esp32-c3
2023-12-03 22:05:08 +01:00
Yurii Soldak
803ba4f54d
tools/sizediff: cleanup and calculate ram
2023-12-03 20:08:48 +01:00
Yurii Soldak
2919fa8b14
machine/atmega: bufferSize = 32
...
to save memory on 2k ram targets
also updates sizediff tool to show ram differences
2023-12-03 12:55:22 +01:00
Yurii Soldak
6420e90124
machine/atmega328pb: refactor to enable extra uart
2023-12-02 13:26:59 +01:00
deadprogram
2d289addb7
builds: update all GH action workflows to use latest versions
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-11-29 08:58:27 +01:00
sago35
4df145dcb4
m5stamp-c3: change settings to explicitly use UART
2023-11-29 08:11:46 +01:00
deadprogram
e065da20cb
targets: add Adafruit qtpy-esp32c3 board support
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-11-28 23:57:30 +01:00
deadprogram
d7c77b6761
machine/esp32c3: implement USB_SERIAL for USBCDC communication
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-11-28 23:05:07 +01:00
deadprogram
f51029484a
builds: free space before doing docker build job
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-11-28 20:56:08 +01:00
deadprogram
03cfcbc17c
docker: makefile was renamed but did not show error util cache was busted
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-11-28 19:52:43 +01:00
deadprogram
649f49e000
docker: remove lists after update to reduce image size
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-11-28 19:52:43 +01:00
deadprogram
3bcd4dc3e0
lib/cmsis-svd: switch to new location and latest version of shared SVD repository
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-11-25 15:34:20 +01:00
deadprogram
772c71ec27
make/gen-device-esp: change order of generating ESP32 device wrappers to avoid community ESP32 being overwritten by the official one
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-11-25 15:34:20 +01:00
Rado M
9b896dc981
refactor: reuse OptLevel() to get the opt level
2023-11-24 16:19:18 +01:00
Scott Feldman
d4189feca6
Bump default stack size for target pico to 8kb from 2kb
2023-11-12 19:22:50 +01:00
Damian Gryski
777048cfa9
compiler: fix crash on type assert on interfaces with no methods
2023-11-08 19:41:25 +01:00
sago35
2b215955ca
machine/usb: add support for ISERIAL descriptor
2023-11-07 00:11:40 +01:00
Elliott Sales de Andrade
ce25f00769
Bump wasi-libc to SDK 20
...
The version 17 SDK adds `getpagesize`, so use it instead of hardcoding a
number (even if their implementation is _also_ a hardcoded number.)
2023-11-04 23:32:42 +01:00
Elliott Sales de Andrade
1a59aecb63
Point wasi-libc submodule to new location.
2023-11-04 23:32:42 +01:00
Shane O'Donovan
cca32e67a9
reflect: stub FuncOf()
2023-11-04 22:44:56 +01:00
Randy Reddig
174d492355
compileopts, targets, main: support Wasmtime v14 ( #3972 )
...
compileopts, targets, main: support Wasmtime v14
2023-11-02 19:49:52 +01:00
Christian Ege
5355473dce
doc: fix a typo in the rtcinterrupt example ( #3981 )
...
docs: fix a typo in the rtcinterrupt example, also provide a link to the interrupt online doc
2023-11-02 18:13:22 +01:00
sago35
a531ed614a
main, compileopts: move GetTargetSpecs() to compileopts package
2023-11-02 15:37:43 +01:00
sago35
24ae6fdf29
main: add -info option to tinygo monitor
2023-11-02 15:37:43 +01:00
deadprogram
938ce22307
machine/stm32: implement DeviceID() with unique ID per processor
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-10-27 17:44:53 +02:00
Kenneth Bell
9fb5a5b9a4
nrf,sam,rp2040: add machine.HardwareID function
2023-10-27 13:25:32 +02:00
deadprogram
9fd9d9c05a
compileopts: add cflag '-isystem' for resource directory search since needed for Xtensa
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-10-25 08:57:39 +02:00
deadprogram
fd50227a3d
build: pin wasmtime version used for testing to v13.0.0
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-10-24 13:10:09 +02:00
Kenneth Bell
a90295430c
ci: work-around for broken links in github runners
2023-10-23 21:25:41 +02:00
deadprogram
fa4ca63ff2
machine/spi: use interface to ensure uniformity for all machine implementations
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-10-17 13:41:32 +02:00
Flavio Castelli
7019c4e8fc
Binaryen116 ( #3958 )
...
dependencies: update binaryen submodule to version 116
Signed-off-by: Flavio Castelli <fcastelli@suse.com>
Co-authored-by: DarkByteBen <ben@darkbytelabs.com>
2023-10-16 18:34:20 +02:00
deadprogram
b79e0e8528
docs: add Nix badge for builds to README
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-10-15 21:02:25 +02:00
Ayke van Laethem
51bed3afae
nix: fix md5sum on MacOS
...
The default on MacOS is `md5`, while Nix only has `md5sum` available.
Therefore, make it possible to override the variable via the environment
so that flake.nix can set the correct binary name.
2023-10-15 17:51:13 +02:00
Ayke van Laethem
4d4ccddad8
nix: support make wasi-libc
on MacOS
2023-10-15 17:51:13 +02:00
Ayke van Laethem
f55f5315cc
builder: generalize build ID fallback to darwin
...
This is to support NixOS, who have added -no_uuid to the linker.
Upstream bug report: https://github.com/NixOS/nixpkgs/issues/178366
2023-10-15 17:51:13 +02:00
Ayke van Laethem
7468a00ef4
all: fix a small incompatibility with Nix
...
Hopefully this won't break anybody: while all tests still pass, there
could in theory be systems where not supplying those libraries leads to
linker errors.
2023-10-15 17:51:13 +02:00
ginglis13
8d77278c6b
refactor: rm io/ioutil funcs
...
io/ioutil has been deprecated since Go 1.16
https://pkg.go.dev/io/ioutil
Signed-off-by: ginglis13 <ginglis05@gmail.com>
2023-10-15 12:12:07 +02:00
Ayke van Laethem
dde9b5ad3a
goenv: re-add support for Clang headers on darwin
...
When TinyGo is installed using `go install` or `go build`, it uses the
Clang resource directory from the host. This works for Linux, but
doesn't work anymore on macOS with a recent change I made.
This re-adds support for Darwin in that case (with much, much simpler
code than there used to be).
2023-10-15 10:51:06 +02:00
Ayke van Laethem
2d4307647e
nix: improve docs and add support for wasi-libc
...
I forgot a few things in the flake file, but now everything should be
included.
2023-10-14 17:32:56 +02:00
Ron Evans
935a293106
machine/i2c: add interface check and implementation where missing for SetBaudRate() ( #3406 )
...
* machine/i2c: add interface check and placeholder implementation where missing for SetBaudRate()
2023-10-14 13:17:24 +02:00
Ayke van Laethem
72b715fa99
all: add Nix flake file
...
This adds a flake.nix file that makes it possible to quickly create a
development environment.
You can download Nix here, for use on your Linux or macOS system:
https://nixos.org/download.html
After you have installed Nix, you can enter the development environment
as follows:
nix develop
This drops you into a bash shell, where you can install TinyGo simply
using the following command:
go install
That's all! Assuming you've set up your $PATH correctly, you can now use
the tinygo command as usual:
tinygo version
You can also do many other things from this environment. Building and
flashing should work as you're used to: it's not a VM or container so
there are no access restrictions.
2023-10-14 11:35:26 +02:00
Ayke van Laethem
d801d0cd53
builder: refactor clang include headers
...
Set -resource-dir in a central place instead of passing the header path
around everywhere and adding it using the `-I` flag. I believe this is
closer to how Clang is intended to be used.
This change was inspired by my attempt to add a Nix flake file to
TinyGo.
2023-10-14 11:35:26 +02:00
Anuraag Agrawal
c2f1965e03
Fix bitstring order in precise GC docs ( #3947 )
...
docs: Fix bitstring order in precise GC docs
2023-10-13 08:57:30 +02:00
sago35
75bba42b60
goenv: update to new v0.31.0 development version
2023-10-11 02:24:58 +02:00
Ayke van Laethem
18b50db0dc
all: add initial LLVM 17 support
...
This allows us to test and use LLVM 17, now that it is available in
Homebrew.
Full support for LLVM 17 (including using it by default) will have to
wait until Espressif rebases their Xtensa fork of LLVM.
2023-10-06 09:05:07 +02:00
Ayke van Laethem
499fce9cee
avr: don't compile large parts of picolibc (math, stdio)
...
These parts aren't critical and lead to crashes on small chips without
long jumps (like the attiny85) with LLVM 17. (Older LLVM versions would
emit long jumps regardless, even if the chip didn't support those).
For more information, see: https://github.com/llvm/llvm-project/issues/67042
2023-10-06 09:05:07 +02:00