Ayke van Laethem
8d2a07b927
main: add -serial=rtt support
2023-12-23 08:14:35 -05:00
deadprogram
ffe6dfd21b
machine/nano-rp2040: add UART1 and correct mappings for NINA via UART.
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-12-20 16:51:21 -05:00
deadprogram
cf21380264
machine/serial, rp2040: add support for hardware flow control
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-12-20 16:48:12 -05:00
deadprogram
534b3b0c0b
net: update to latest main branch with accept fix
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-12-19 08:16:40 +01:00
deadprogram
ceeb233ff6
build: another try to handle python unlink/link due to homebrew
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-12-18 20:23:19 +01:00
deadprogram
de3f0af829
build: fix for macos homebrew as discussed in https://github.com/Homebrew/brew/issues/15621
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-12-17 21:26:23 +01:00
Scott Feldman
a511f18c64
stub out more types/funcs to compile against golang.org/x/net/internal/socket ( #4037 )
...
* stub out more types/funcs to compile against golang.org/x/net/internal/socket
These are changes need to compile github.com/domainr/dnsr/ with TinyGo.
See issue https://github.com/tinygo-org/net/issues/14 .
These change are mostly to fix missing symbols in src/crypto/tls and
src/net. Missing types and functions are cut-and-pasted from go1.21.4.
Functions are stubbed out returning errors.New("not implemented").
DNRS is compiled by running tinygo test:
sfeldma@nuc:~/work/dnsr$ tinygo test -target=wasi
With this patch, and a corresponding patch for tinygo-org/net to fixup
src/net, you should get a clean compile.
2023-12-17 15:32:53 +01:00
deadprogram
731bd5cd1b
net: update to latest main branch with TCPListener
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-12-09 12:11:04 +01:00
deadprogram
4acf59546e
modules: update net submodule to latest commit with http Client Transport interface
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-12-09 09:48:29 +01:00
deadprogram
2ee4d9aaa1
builder/picolib: add needed file for compiling math functions with error support.
...
Thanks to @aykevl for actually finding and providing this fix, I really just
reported the problem and tested the fix.
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-12-09 07:47:27 +01:00
deadprogram
b58b7c59ae
runtime: stub out Breakpoint() function
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-12-08 21:10:26 +01:00
deadprogram
e14b6a7009
lib/cmsis-svd: change to new repo location for the SVD files
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-12-07 14:38:36 +01:00
deadprogram
a1a2d1ab81
modules: switch to main branch of net submodule
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-12-06 13:11:44 +01:00
Scott Feldman
07591178cd
move syscall constants for networking into net space to avoid windows build issue
2023-12-06 13:11:44 +01:00
Scott Feldman
43bdc888dd
move IPPROTO_TLS to netdev to avoid src/syscall dependency
2023-12-06 13:11:44 +01:00
Scott Feldman
4229e670ce
Add network device driver model, netdev
...
This PR adds a network device driver model called netdev. There will be a companion PR for TinyGo drivers to update the netdev drivers and network examples. This PR covers the core "net" package.
An RFC for the work is here: #tinygo-org/drivers#487. Some things have changed from the RFC, but nothing major.
The "net" package is a partial port of Go's "net" package, version 1.19.3. The src/net/README file has details on what is modified from Go's "net" package.
Most "net" features are working as they would in normal Go. TCP/UDP/TLS protocol support is there. As well as HTTP client and server support. Standard Go network packages such as golang.org/x/net/websockets and Paho MQTT client work as-is. Other packages are likely to work as-is.
Testing results are here (https://docs.google.com/spreadsheets/d/e/2PACX-1vT0cCjBvwXf9HJf6aJV2Sw198F2ief02gmbMV0sQocKT4y4RpfKv3dh6Jyew8lQW64FouZ8GwA2yjxI/pubhtml?gid=1013173032&single=true ).
2023-12-06 13:11:44 +01:00
deadprogram
76a7ad2a3e
modules: add tinygo net package as submodule
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-12-06 13:11:44 +01:00
deadprogram
e4f551ac7f
src/net: remove existing files to replace with submodule
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-12-06 13:11:44 +01:00
Yurii Soldak
338590cc75
machine/atmega: uart double speed mode
...
Less errors and higher throughput.
Example: default / slow mode is problematic for 115200 on 16Mhz CPU.
2023-12-05 16:29:51 +01:00
deadprogram
22d70604d8
sizediff: cleanup before checkout of branche to allow for new/removed files to be able to still run thru size tests
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-12-04 18:26:00 +01:00
deadprogram
c6add1e769
machine/esp32c3: implement RNG
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-12-04 09:34:20 +01:00
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