Kenneth Bell
8a5ab5ab12
rp2040: fix gpio interrupts
2022-06-26 12:14:52 +02:00
ardnew
afae6b3795
board/teensy40: Add I2C support ( #1471 )
...
* teensy40: add I2C support
2022-06-22 11:28:50 +02:00
Yurii Soldak
c119721e3b
atmega2560: support UART1-3
...
+ example for uart
2022-06-18 09:26:12 +02:00
sago35
76bba13963
usbhid: add support for mouse buttons ( #2900 )
...
* usbhid: add support for mouse buttons
2022-06-11 16:11:04 +02:00
sago35
1b2e764835
samd21,samd51,nrf52840: add support for USBHID (keyboard / mouse)
2022-06-11 09:44:09 +02:00
sago35
906757603d
wioterminal: fix I2C definition
2022-06-08 18:32:08 +02:00
Krzysztof Jagiello
5d16811199
Attach USB DP to the correct pin on Matrix Portal M4
2022-06-03 07:42:19 +02:00
Olaf Flebbe
3dd502a928
align api for PortMaskSet, PortMaskClear
2022-05-26 21:37:03 +02:00
deadprogram
f308d7d28c
machine/badger2040: support for Badger 2040
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2022-05-24 15:02:23 +02:00
Kenneth Bell
8f40b107d9
rp2040: replace sleep 'busy loop' with timer alarm
2022-05-17 12:41:24 +02:00
deadprogram
fce42fc7fa
machine/thingplus: rename to the singular thing as that it the correct name
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2022-04-26 21:13:17 +02:00
lincolngill
9eb4a6268a
Pico adc input ch support ( #2737 )
...
machine/rp2040: ADC changes, including
* Add rp2040 ADC mux channel support. Internal temp sensor reading and fix for incorrect setting of CS.AINSEL reg bits
* Reset ADC ref voltage in InitADC
2022-04-26 11:49:38 +02:00
deadprogram
5bb3ca2618
machine/circuitplay-bluefruit: move pin mappings so board can be compiled for WASM use in Playground
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2022-04-25 11:17:42 +02:00
Yurii Soldak
a4ea85b303
xiao-ble: initial support
2022-04-24 14:50:02 +02:00
Olaf Flebbe
27d38a9663
machine/board_thingsplus_rp2040 targets/thingsplus-rp2040: support sparkfun thingsplus rp2040 board
2022-04-24 10:56:52 +02:00
Ayke van Laethem
cad6a57077
compiler: remove support for memory references in AsmFull
...
Memory references (`*m` in LLVM IR inline assembly) need a pointer type
starting in LLVM 14. This is a bit inconvenient and requires a new API
in the go-llvm package.
Instead of doing that, I'd like to remove support for memory references
from AsmFull (and possibly AsmFull entirely if possible: it's hard to
use correctly).
This breaks tinygo.org/x/drivers/ws2812 for AVR, ARM, and RISC-V which
need to be updated. Probably using CGo.
2022-04-21 15:18:18 +02:00
Dan Kegel
3000b2d15e
gofmt src/machine/machine_mimxrt1062_spi.go to please 1.18
2022-04-18 22:52:14 +02:00
ardnew
c5de68622e
board/teensy40: Add SPI support ( #1455 )
...
machine/teensy40: add SPI support
2022-04-16 15:43:52 +02:00
ardnew
2dc46a851b
board/teensy40: Add ADC support ( #1458 )
...
machine/teensy40: add ADC support
2022-04-13 17:12:31 +02:00
soypat
f613cb41a3
rp2040: fix spurious i2c STOP during write+read transaction
2022-04-09 11:10:36 +02:00
sago35
1deee3ec5a
m5stamp-c3: add pin setting of UART
2022-04-07 07:16:27 +02:00
Dmitriy
0dd521e1d1
add support for esp32c3 to receive UART data
2022-04-06 19:25:24 +02:00
Dmitriy
3d68804702
Add board support for ESP32-C3-12f Kit
2022-03-20 07:39:27 +01:00
sago35
96c60f9692
atsamd51: allow faster frequency setting when using SPI
2022-03-12 08:45:38 +01:00
sago35
a1b4eafa07
samd21,samd51: fix usbcdc initialization when -serial=uart ( #2631 )
...
machine/samd21,samd51: fix usbcdc initialization when -serial=uart by using machine.USB.Configured()
2022-03-10 12:32:19 +01:00
Dmitriy
b176494e44
add support for GPIO interrupts on esp32c3
...
Update interrupt_esp32c3.go:
make callHandler inline
save and restore MSTATUS along with MEPC
save and restore actual threshold value and call fence
print additional data during exception
2022-03-08 09:13:15 +01:00
sago35
d65e3deccf
Revert "all: move stm32 files to separate repository"
...
This reverts commit 644356c220
.
2022-02-28 10:19:26 +01:00
BCG
52ffd6aa98
board: Adafruit MacroPad RP2040
2022-02-19 11:52:24 +01:00
Ayke van Laethem
644356c220
all: move stm32 files to separate repository
2022-02-18 23:39:26 +01:00
BCG
4417374b53
board: add definition for Teensy 4.1 ( #2618 )
...
* board: add definition for Teensy 4.1
2022-02-13 08:21:03 +01:00
Ayke van Laethem
262291a80a
rp2040: fix incorrect inline assembly
...
The register r0 was used unconditionally. This is a bug: the compiler
doesn't know it is clobbered and might consider it alive across the
inline assembly expression.
The fix is simple. It could probably be optimized, but this should at
least fix the bug.
2022-02-13 07:34:40 +01:00
sago35
f2fef290c9
machine: add DefaultUART to wioterminal
2022-02-11 07:17:43 +01:00
Yurii Soldak
ac7e370c72
rp2040: i2c minor fixes
2022-02-05 18:18:20 +01:00
Ayke van Laethem
77ec9b6369
all: update build constraints to Go 1.17
...
Do it all at once in preparation for Go 1.18 support.
To make this commit, I've simply modified the `fmt-check` Makefile
target to rewrite files instead of listing the differences. So this is a
fully mechanical change, it should not have introduced any errors.
2022-02-04 07:49:46 +01:00
sago35
d139fa5e0f
esp32c3: add support for input pin
2022-02-02 18:13:09 +01:00
soypat
367fb9d40e
machine/rp2040: whole now correctly set at minimum 1 value for high frequency PWM
2022-02-02 09:52:13 +01:00
Yurii Soldak
3458726234
nano-33-ble: typo in LPS22HB peripheral definition and documentation ( #2579 )
2022-01-29 11:19:15 -05:00
Dmitriy Zakharkin
50401c05e8
move AVR interrupt related code to runtime
...
move AVR interrupt related code to runtime
address formatting
add volatile to access counters
2022-01-20 15:07:16 +01:00
Yurii Soldak
31ee1637df
nrf: fix stop condition race in i2c
2022-01-20 07:37:47 +01:00
Yurii Soldak
cc1a95a489
nrf: fix race in i2c
2022-01-17 16:19:16 +01:00
Kenneth Bell
14ce531498
stm32: add blues wireless swan
2022-01-13 07:56:08 +01:00
sago35
6cb604c752
board: add M5Stamp C3
2022-01-10 11:10:06 +01:00
Kenneth Bell
5c3ad004ab
stm32: add more MCUs with h/w RNG
2022-01-04 20:27:41 +01:00
Elias Naur
bd7ab8ddd5
targets,runtime,machine: add support for the stm32f469-disco board
...
The LEDs and button work; I haven't tested the SPI and I2C
configuration.
2021-12-31 10:30:48 +00:00
Elias Naur
302e72e84f
machine: add PG* and PK* pins
...
They're used for LEDs on the STM32F469-Discovery board.
2021-12-31 10:30:48 +00:00
Elias Naur
11ee0969b6
machine: merge stm32f405/407
...
They're no longer functionally different.
2021-12-31 10:30:48 +00:00
Elias Naur
81dbbc89d3
machine: make machine_stm32f407.go equivalent to machine_stm32f405.go
...
The only differences are a more general SPI.getBaudRate and a different
frequency limit in I2C.getFreqRange.
This is a first step towards adding stm32f469 support: a follow-up
merges machine_stm32f407.go and machine_stm32f405.go, another adds
frequency tweaks for stm32f469.
2021-12-31 10:30:48 +00:00
Dmitriy
92150bd1c5
Interrupt based time. Adjust tick cost when timer-0 is reconfigured (the time precision affected when timer-0 reconfigured). Keep all time in nanoseconds.
...
Interrupt based time. Adjust tick cost every 1 minute and when timer-0 is reconfigured (the time precision affected when timer-0 reconfigured). Keep all time in nanoseconds.
2021-12-30 11:39:28 +01:00
kenbell
8bd39d2fc2
Merge pull request #2427 from eliasnaur/remove-arrtype
...
Remove unused arrtype from package runtime
2021-12-28 19:18:35 +00:00
Olivier Fauchon
2b1a72d112
stm32wlx: I2C implementation for gnse,lora-e5,nucleo-wl55jc boards
2021-12-23 23:45:28 +01:00