Ayke van Laethem
5557e97888
device: update SVD files
...
This updates lib/cmsis-svd, pulling in the updates to the Espressif SVD
files here:
https://github.com/cmsis-svd/cmsis-svd-data/pull/3
This is needed for wifi/BLE support on the ESP32-C3 (the older SVD files
were missing some necessary interrupts).
2024-02-19 19:10:21 +01:00
Ayke van Laethem
7486277012
all: make TinyGo code usable with "big Go" CGo
...
I managed to get CGo sort-of working in VSCode (meaning that it will
typecheck code in the IDE itself) using a few crude hacks, but it
requires a few minor changes to the TinyGo standard library.
I intend to eventually add this support in the TinyGo extension for
VSCode directly, but for now I've manually updated .vscode/settings.json
to get IDE support. In any case, it would be nice to have this for when
I hopefully add this to the TinyGo extension eventually.
2024-02-19 15:49:36 +01:00
BCG
828b9614c2
nrf52840: generic board support ( #4121 )
...
machine/nrf52840: generic board support
2024-02-12 10:37:19 +01:00
Xudong Zheng
f5e933cd4d
machine/rp2040: set XOSC startup delay multiplier
...
XOSC requires additional time to stablize on certain RP2040 boards.
Signed-off-by: Xudong Zheng <7pkvm5aw@slicealias.com >
2024-02-11 11:59:54 +01:00
Ayke van Laethem
edb8766aab
esp32: switch over to the official SVD file
2024-02-09 16:12:21 +01:00
BCG
0ea5cfc8fe
rp2040: add definition for machine.PinToggle
2024-01-29 12:38:06 +01:00
Elias Naur
45764325b4
targets: add motor control pin definitions for MKS Nano V3x boards
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2024-01-23 21:04:22 +01:00
Elias Naur
bb66232164
targets: add support for the MKS Robin Nano V3.x
...
Signed-off-by: Elias Naur <mail@eliasnaur.com >
2024-01-23 21:04:22 +01:00
Daniel Esteban
9679e7f1cc
fix typo
2024-01-23 16:52:37 +01:00
deadprogram
5f50c3b60b
machine/samd51: add UART hardware flow control support
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2024-01-17 12:41:15 +01:00
deadprogram
cf39d8b2c8
targets: add ninafw pins and settings to Adafruit PyBadge board with AirLift Featherwing
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2024-01-15 19:34:05 -05:00
deadprogram
d92a31b440
targets: add ninafw pins and settings to Adafruit Metro M4 Airlift board
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2024-01-15 19:34:05 -05:00
deadprogram
8c90f4facf
machine/pyportal: add needed values to board file for ninafw BLE support
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2024-01-06 22:46:47 +01:00
deadprogram
81c56c3ab8
machine, targets: ninafw support for arduino-nano33 and nano-rp2040 boards
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2024-01-05 19:04:12 +01:00
deadprogram
3d9a1ca22a
machine/samd21: add hardware flow control for UART
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2024-01-05 17:56:45 +01:00
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/
2023-12-31 10:54:11 +01:00
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
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
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
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
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
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
sago35
2b215955ca
machine/usb: add support for ISERIAL descriptor
2023-11-07 00:11:40 +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
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
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
sago35
3ad2530ee7
atsamd21, atsamd51: add support for USB INTERRUPT OUT
2023-09-16 09:30:05 +02:00
deadprogram
c4de195f04
machine/rp2040: always use the USB device enum fix, even in chips that supposedly have the HW fix.
...
Additionally, correct the amount of time spent waiting after USB reset, based on advice from @sago35
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-09-12 08:41:58 +02:00
Timothy Rule
75aca0f5ee
Board support for Adafruit Gemma M0 ( #3903 )
...
machine, targets: Board support for Adafruit Gemma M0
2023-09-11 11:11:26 +02:00
deadprogram
9d6eb1ff06
machine/usb/adc/midi: improve implementation to include several new messages
...
such as program changes and pitch bend. Also add error handling for invalid
parameter values such as MIDI channel. This however makes a somewhat breaking
change to the current implementation, in that we now use the typical MIDI user
system of counting MIDI channels from 1-16 instead of from 0-15 as the lower
level USB-MIDI API itself expects.
Also add constant values for continuous controller messages, rename SendCC
function, and add SysEx function.
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-09-07 08:41:57 +02:00
Pertti Erkkilä
806498f099
nRF52: set SPI TX/RX lengths even data is empty. Fixes #3868 ( #3877 )
...
machine/hrf: Set SPI TX/RX lengths even data is empty. Fixes #3868
2023-08-24 13:15:18 +02:00
Kenneth Bell
f4375d0452
samd51,rp2040,nrf528xx,stm32: implement watchdog
2023-08-15 11:50:07 +02:00
deadprogram
bfe9ee378f
rp2040: move flash related functions into separate file from C imports for correct LSP. Fixes #3852
...
Signed-off-by: deadprogram <ron@hybridgroup.com >
2023-08-13 14:08:57 +02:00
Unrud
0ef86e1534
Add support for HID Keyboard LEDs
2023-08-07 14:00:32 +02:00
sago35
67ec722a74
board: add AKIZUKI DENSHI AE-RP2040
2023-08-04 17:53:01 +02:00
sago35
215dd3f0be
machine/usb/hid: rename Handler() to TxHandler()
2023-08-04 09:43:53 +02:00
sago35
c51f5cea0b
machine/usb/hid: add RxHandler interface
2023-08-04 09:43:53 +02:00
sago35
395ee2d338
machine/usb: refactor endpoint configuration
2023-08-02 09:16:29 +02:00
sago35
069e4f0d98
machine/usb: allow USB Endpoint settings to be changed externally
2023-08-02 09:16:29 +02:00
sago35
d1eb642d45
machine/usb: remove usbDescriptorConfig
2023-08-01 15:24:42 +02:00
Yurii Soldak
00d46bd25d
avr: pin change interrupt
2023-07-27 18:15:22 +02:00
soypat
4da1f6bcbe
rp2040:add NoPin support
2023-07-16 16:25:30 +02:00