deadprogram
cf39d8b2c8
targets: add ninafw pins and settings to Adafruit PyBadge board with AirLift Featherwing
Signed-off-by: deadprogram <ron@hybridgroup.com>
10 months ago
deadprogram
d92a31b440
targets: add ninafw pins and settings to Adafruit Metro M4 Airlift board
Signed-off-by: deadprogram <ron@hybridgroup.com>
10 months ago
deadprogram
9c77a38358
build: use llvm-17 base image correctly for faster docker dev builds
Signed-off-by: deadprogram <ron@hybridgroup.com>
10 months ago
Ayke van Laethem
d0445d6f83
cgo: fix calling CGo callback inside generic function
The package of the generic function might not be set, so we have to call
Origin() for it.
Found while porting mcufont to TinyGo.
10 months ago
BCG
a40b11f535
Adding additional build tag for boards with ninafw
10 months ago
deadprogram
8c90f4facf
machine/pyportal: add needed values to board file for ninafw BLE support
Signed-off-by: deadprogram <ron@hybridgroup.com>
10 months ago
deadprogram
c7c9a76af5
build: add step to build LLVM 17 base image
Signed-off-by: deadprogram <ron@hybridgroup.com>
10 months ago
Ayke van Laethem
6984af43a0
all: statically link to LLVM 17 instead of LLVM 16
We can now finally do it, now that Espressif has updated their fork.
1 year ago
deadprogram
81c56c3ab8
machine, targets: ninafw support for arduino-nano33 and nano-rp2040 boards
Signed-off-by: deadprogram <ron@hybridgroup.com>
10 months ago
deadprogram
3d9a1ca22a
machine/samd21: add hardware flow control for UART
Signed-off-by: deadprogram <ron@hybridgroup.com>
10 months ago
deadprogram
c2083014b3
targets: add ninafw tag to nano-rp2040 for ninafw BLE support
Signed-off-by: deadprogram <ron@hybridgroup.com>
10 months ago
Scott Feldman
603a81f194
expose UART4 on wioterminal board
The right-hand grove port on the wioterminal can be used as UART, using
D0/D1 pins. The pins D0/D1 are tied to SERCOM4, so this patch exposes a
UART4 for sercom4 access.
RX = A0/D0 = PB08/SERCOM4.0 (port 4 pad 0)
TX = A1/D1 = PB09/SERCOM4.1 (port 4 pad 1)
Tested with Lora E5 UART.
uart : = machine.UART4
tx := machine.D0
rx := machine.D1
Note: must also cross Tx/Rx wires in grove cable. See
https://www.lucadentella.it/en/2022/01/29/wio-terminal-porta-grove-di-destra-e-moduli-uart/
10 months ago
Elias Naur
cfc32794a7
os/user: add bare-bones implementation of the os/user package
Signed-off-by: Elias Naur <mail@eliasnaur.com>
11 months ago
Elias Naur
1d9c53d00e
nix: upgrade to NixOS 23.11
Signed-off-by: Elias Naur <mail@eliasnaur.com>
11 months ago
Ayke van Laethem
8d2a07b927
main: add -serial=rtt support
11 months ago
deadprogram
ffe6dfd21b
machine/nano-rp2040: add UART1 and correct mappings for NINA via UART.
Signed-off-by: deadprogram <ron@hybridgroup.com>
11 months ago
deadprogram
cf21380264
machine/serial, rp2040: add support for hardware flow control
Signed-off-by: deadprogram <ron@hybridgroup.com>
11 months ago
deadprogram
534b3b0c0b
net: update to latest main branch with accept fix
Signed-off-by: deadprogram <ron@hybridgroup.com>
11 months ago
deadprogram
ceeb233ff6
build: another try to handle python unlink/link due to homebrew
Signed-off-by: deadprogram <ron@hybridgroup.com>
11 months ago
deadprogram
de3f0af829
build: fix for macos homebrew as discussed in https://github.com/Homebrew/brew/issues/15621
Signed-off-by: deadprogram <ron@hybridgroup.com>
11 months ago
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.
11 months ago
deadprogram
731bd5cd1b
net: update to latest main branch with TCPListener
Signed-off-by: deadprogram <ron@hybridgroup.com>
11 months ago
deadprogram
4acf59546e
modules: update net submodule to latest commit with http Client Transport interface
Signed-off-by: deadprogram <ron@hybridgroup.com>
11 months ago
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>
11 months ago
deadprogram
b58b7c59ae
runtime: stub out Breakpoint() function
Signed-off-by: deadprogram <ron@hybridgroup.com>
11 months ago
deadprogram
e14b6a7009
lib/cmsis-svd: change to new repo location for the SVD files
Signed-off-by: deadprogram <ron@hybridgroup.com>
11 months ago
deadprogram
a1a2d1ab81
modules: switch to main branch of net submodule
Signed-off-by: deadprogram <ron@hybridgroup.com>
2 years ago
Scott Feldman
07591178cd
move syscall constants for networking into net space to avoid windows build issue
2 years ago
Scott Feldman
43bdc888dd
move IPPROTO_TLS to netdev to avoid src/syscall dependency
2 years ago
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 ).
2 years ago
deadprogram
76a7ad2a3e
modules: add tinygo net package as submodule
Signed-off-by: deadprogram <ron@hybridgroup.com>
2 years ago
deadprogram
e4f551ac7f
src/net: remove existing files to replace with submodule
Signed-off-by: deadprogram <ron@hybridgroup.com>
2 years ago
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.
11 months ago
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>
11 months ago
deadprogram
c6add1e769
machine/esp32c3: implement RNG
Signed-off-by: deadprogram <ron@hybridgroup.com>
11 months ago
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>
11 months ago
deadprogram
a449c4813a
build: can only build boards with board files for pin mapping
Signed-off-by: deadprogram <ron@hybridgroup.com>
11 months ago
deadprogram
19fb1bfafc
machine/esp32c3: corrected implementation for error handling and when to expect NACK
Signed-off-by: deadprogram <ron@hybridgroup.com>
11 months ago
deadprogram
f91b6ad0df
machine/esp32c3: handle defaults for I2C configuration
Signed-off-by: deadprogram <ron@hybridgroup.com>
11 months ago
Dmitriy
94459cefe5
machine/esp32c3: implement i2c for esp32-c3
3 years ago
Yurii Soldak
803ba4f54d
tools/sizediff: cleanup and calculate ram
11 months ago
Yurii Soldak
2919fa8b14
machine/atmega: bufferSize = 32
to save memory on 2k ram targets
also updates sizediff tool to show ram differences
11 months ago
Yurii Soldak
6420e90124
machine/atmega328pb: refactor to enable extra uart
11 months ago
deadprogram
2d289addb7
builds: update all GH action workflows to use latest versions
Signed-off-by: deadprogram <ron@hybridgroup.com>
12 months ago
sago35
4df145dcb4
m5stamp-c3: change settings to explicitly use UART
11 months ago
deadprogram
e065da20cb
targets: add Adafruit qtpy-esp32c3 board support
Signed-off-by: deadprogram <ron@hybridgroup.com>
12 months ago
deadprogram
d7c77b6761
machine/esp32c3: implement USB_SERIAL for USBCDC communication
Signed-off-by: deadprogram <ron@hybridgroup.com>
12 months ago
deadprogram
f51029484a
builds: free space before doing docker build job
Signed-off-by: deadprogram <ron@hybridgroup.com>
12 months ago
deadprogram
03cfcbc17c
docker: makefile was renamed but did not show error util cache was busted
Signed-off-by: deadprogram <ron@hybridgroup.com>
12 months ago
deadprogram
649f49e000
docker: remove lists after update to reduce image size
Signed-off-by: deadprogram <ron@hybridgroup.com>
12 months ago