aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2024-02-17targets/wasm_unknown: remove _start to _initialize to match WASIdeadprogram
Signed-off-by: deadprogram <[email protected]>
2024-02-17targets/wasm_unknown: use proper defaults for GCdeadprogram
Signed-off-by: deadprogram <[email protected]>
2024-02-15examples: add example for use with wasm-unknown targetdeadprogram
Signed-off-by: deadprogram <[email protected]>
2024-02-15target/wasm_unknown: remove bulk memory and use imported memory for extreme ↵deadprogram
tinyness Signed-off-by: deadprogram <[email protected]>
2024-02-15runtime, targets: some WIP on wasm unknown in part from PR #3072deadprogram
Signed-off-by: deadprogram <[email protected]>
2024-02-12nrf52840: generic board support (#4121)BCG
machine/nrf52840: generic board support
2024-02-11machine/rp2040: set XOSC startup delay multiplierXudong Zheng
XOSC requires additional time to stablize on certain RP2040 boards. Signed-off-by: Xudong Zheng <[email protected]>
2024-02-09esp32: switch over to the official SVD fileAyke van Laethem
2024-01-31reflect: move indirect values into interface when setting interfacesDamian Gryski
Fixes #4040
2024-01-29rp2040: add definition for machine.PinToggleBCG
2024-01-26sync: implement trylocksoypat
2024-01-23targets: add motor control pin definitions for MKS Nano V3x boardsElias Naur
Signed-off-by: Elias Naur <[email protected]>
2024-01-23targets: add support for the MKS Robin Nano V3.xElias Naur
Signed-off-by: Elias Naur <[email protected]>
2024-01-23fix typoDaniel Esteban
2024-01-20reflect: update to Go 1.22 semanticsAyke van Laethem
The IsZero function was changed slightly in Go 1.22, so we'll need to update it. While this could in theory break existing programs that rely on the old behavior, they'd also break with the imminent Go 1.22 release so I don't think this is a real problem.
2024-01-19runtime: add runtime.rand functionAyke van Laethem
This function is needed for Go 1.22, and is used from various packages like math/rand. When there is no random number generator available, it falls back to a static sequence of numbers. I think this is fine, because as far as I can see it is only used for non-cryptographic needs.
2024-01-19reflect: add TypeFor[T]Ayke van Laethem
This function was added in Go 1.22. See: https://github.com/golang/go/commit/42d2dfb4305aecb3a6e5494db6b8f6e48a09b420
2024-01-17bytealg: update to Go 1.22Ayke van Laethem
A few non-generic functions like HashStrBytes have been kept for backwards compatibility, so this package should continue to work with older Go versions (as long as they support generics).
2024-01-17machine/samd51: add UART hardware flow control supportdeadprogram
Signed-off-by: deadprogram <[email protected]>
2024-01-15targets: add ninafw pins and settings to Adafruit PyBadge board with AirLift ↵deadprogram
Featherwing Signed-off-by: deadprogram <[email protected]>
2024-01-15targets: add ninafw pins and settings to Adafruit Metro M4 Airlift boarddeadprogram
Signed-off-by: deadprogram <[email protected]>
2024-01-06machine/pyportal: add needed values to board file for ninafw BLE supportdeadprogram
Signed-off-by: deadprogram <[email protected]>
2024-01-05machine, targets: ninafw support for arduino-nano33 and nano-rp2040 boardsdeadprogram
Signed-off-by: deadprogram <[email protected]>
2024-01-05machine/samd21: add hardware flow control for UARTdeadprogram
Signed-off-by: deadprogram <[email protected]>
2023-12-31expose UART4 on wioterminal boardScott Feldman
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/
2023-12-30os/user: add bare-bones implementation of the os/user packageElias Naur
Signed-off-by: Elias Naur <[email protected]>
2023-12-23main: add -serial=rtt supportAyke van Laethem
2023-12-20machine/nano-rp2040: add UART1 and correct mappings for NINA via UART.deadprogram
Signed-off-by: deadprogram <[email protected]>
2023-12-20machine/serial, rp2040: add support for hardware flow controldeadprogram
Signed-off-by: deadprogram <[email protected]>
2023-12-19net: update to latest main branch with accept fixdeadprogram
Signed-off-by: deadprogram <[email protected]>
2023-12-17stub out more types/funcs to compile against ↵Scott Feldman
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-09net: update to latest main branch with TCPListenerdeadprogram
Signed-off-by: deadprogram <[email protected]>
2023-12-09modules: update net submodule to latest commit with http Client Transport ↵deadprogram
interface Signed-off-by: deadprogram <[email protected]>
2023-12-08runtime: stub out Breakpoint() functiondeadprogram
Signed-off-by: deadprogram <[email protected]>
2023-12-06modules: switch to main branch of net submoduledeadprogram
Signed-off-by: deadprogram <[email protected]>
2023-12-06move syscall constants for networking into net space to avoid windows build ↵Scott Feldman
issue
2023-12-06move IPPROTO_TLS to netdev to avoid src/syscall dependencyScott Feldman
2023-12-06Add network device driver model, netdevScott Feldman
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-06modules: add tinygo net package as submoduledeadprogram
Signed-off-by: deadprogram <[email protected]>
2023-12-06src/net: remove existing files to replace with submoduledeadprogram
Signed-off-by: deadprogram <[email protected]>
2023-12-05machine/atmega: uart double speed modeYurii Soldak
Less errors and higher throughput. Example: default / slow mode is problematic for 115200 on 16Mhz CPU.
2023-12-04machine/esp32c3: implement RNGdeadprogram
Signed-off-by: deadprogram <[email protected]>
2023-12-03machine/esp32c3: move i2c implementation into separate file to skip ↵deadprogram
m5stamp-c3 since it does not appear to expose those pins Signed-off-by: deadprogram <[email protected]>
2023-12-03machine/esp32c3: corrected implementation for error handling and when to ↵deadprogram
expect NACK Signed-off-by: deadprogram <[email protected]>
2023-12-03machine/esp32c3: handle defaults for I2C configurationdeadprogram
Signed-off-by: deadprogram <[email protected]>
2023-12-03machine/esp32c3: implement i2c for esp32-c3Dmitriy
2023-12-03machine/atmega: bufferSize = 32Yurii Soldak
to save memory on 2k ram targets also updates sizediff tool to show ram differences
2023-12-02machine/atmega328pb: refactor to enable extra uartYurii Soldak
2023-11-28targets: add Adafruit qtpy-esp32c3 board supportdeadprogram
Signed-off-by: deadprogram <[email protected]>
2023-11-28machine/esp32c3: implement USB_SERIAL for USBCDC communicationdeadprogram
Signed-off-by: deadprogram <[email protected]>