sago35
71b44e79b3
machine/usb/hid/joystick: allow joystick settings override
2023-04-03 00:50:30 +02:00
deadprogram
9e97566b5f
machine/usb/hid/joystick: move joystick under HID as it belongs and also remove duplicate code
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-04-03 00:50:30 +02:00
Ayke van Laethem
7d83e76833
rp2040: use 4MHz as default frequency for SPI
...
This matches other SPI implementations. I think the original value of
115200 was from a confusion with UART.
2023-04-02 01:04:37 +02:00
Ayke van Laethem
6eda52a289
rp2040: remove SPI deadline
...
Removing it improves SPI performance by about 20% for me (updating the
display of a Gopher Badge).
2023-04-01 11:18:51 +02:00
Ayke van Laethem
568c2a4363
rp2040: remove SPI DataBits property
...
As discussed on Slack, I believe this property does more harm than good:
* I don't think it's used anywhere. None of the drivers use it.
* It is not fully implemented. While values <= 8 might work fine,
values larger than 8 result in extra zero bits (instead of anything
sensible).
* Worse, it doesn't return an error when it's out of range. This is
not an optional property: if the SPI peripheral doesn't support a
particular number of bits, it should return an error instead of
silently limiting the number of bits. This will be confusing to
users.
Therefore, I propose we drop it. Maybe there are good uses for it
(perhaps for displays that use big endian 16-bit values?), but without a
good use case like a driver in tinygo.org/x/drivers, I think it's more
trouble than it's worth.
2023-03-29 09:30:16 +02:00
deadprogram
dfb8c996a1
machine/lorae5: correct mapping for I2C bus, add pin mapping to enable power
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-03-28 15:28:14 +02:00
Daniel Esteban
4b0e56cbec
Added Gopher Badge support
2023-03-22 16:17:12 +01:00
deadprogram
e8f6df928c
machine/usb: add ability to override default VID, PID, manufacturer name, and product name
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-03-22 08:35:42 +01:00
Ayke van Laethem
5ed0cecf0d
nrf: fix memory issue in ADC read
...
There was a very subtle bug in the ADC read code: it stores a pointer to
a variable in a register, waits for the hardware to complete the read,
and then reads the value again from the local variable. Unfortunately,
the compiler doesn't know there is some form of synchronization
happening in between.
This can be fixed in roughly two ways:
* Introduce some sort of synchronization.
* Do a volatile read from the variable.
I chose the second one as it is probably the least intrusive. We
certainly don't need atomic instructions (the chip is single threaded),
we just need to tell the compiler the value could have changed by making
the read volatile.
2023-03-22 00:34:43 +01:00
deadprogram
c5598630c9
machine/stm32: correct Flash implementation
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-03-18 11:18:17 +01:00
deadprogram
383e7ae14a
machine, runtime/interrupt: switch to use register definitions from device/gba
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-03-16 15:27:15 +01:00
deadprogram
e6580bfff4
machine/rp2040: correct Flash implementation
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-03-12 23:53:59 +01:00
deadprogram
5db83f11df
machine/flash: refactor to keep use of pure offset relative to start
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-03-12 23:53:59 +01:00
deadprogram
60366adfa8
machine/rp2040: implement Flash interface
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-03-12 23:53:59 +01:00
sago35
08cf2b25c5
machine/rp2040: change uart to allow for a single pin
2023-03-12 13:41:29 +01:00
sago35
d6103222f7
wioterminal: fix pin definition of BCM13
2023-03-12 10:52:15 +01:00
deadprogram
0bc19735f3
machine/samd51: disable/restore Flash cache on write/erase
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-03-09 06:42:41 +01:00
deadprogram
51c1579c3d
machine/samd51: implement Flash interface
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-03-09 06:42:41 +01:00
sago35
45f119de34
machine/atsamd51: remove extra BK0RDY clear
2023-03-08 09:40:01 +01:00
Ron Evans
fc28f513c7
machine/samd21: implement Flash interface ( #3496 )
...
machine/samd21: implement Flash interface
2023-03-08 06:06:49 +01:00
sago35
7ca45d61fc
machine/rp2040: correct issue with spi pin validation
2023-03-07 21:11:57 +09:00
Ayke van Laethem
4ec1e58aa6
all: use unsafe.Add instead of unsafe.Pointer(uintptr(...) + ...)
...
We have an optimization for this specific pattern, but it's really just
a hack. With the addition of unsafe.Add in Go 1.17 we can directly
specify the intent instead and eventually remove this special case.
The code is also easier to read.
2023-03-03 16:55:13 +01:00
Ron Evans
6e1b8a54aa
machine/stm32, nrf: flash API ( #3472 )
...
machine/stm32, nrf: implement machine.Flash
Implements the machine.Flash interface using the same definition as the tinyfs BlockDevice.
This implementation covers the stm32f4, stm32l4, stm32wlx, nrf51, nrf52, and nrf528xx processors.
2023-02-27 13:55:38 +01:00
Bjoern Poetzschke
cfe971d723
Rearrange switch case for get pin cfg
2023-02-24 08:53:51 +01:00
John Clark
bad7bfc4d5
Pins D4 & D5 are I2C1. Use pins D2 & D3 for I2C0.
...
Signed-off-by: John Clark <inindev@gmail.com>
2023-02-24 02:20:26 +01:00
deadprogram
ad1da7d26f
machine/rp2040: correct issue with spi pin validation
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-02-24 01:05:58 +01:00
deadprogram
6df303ff19
machine/rp2040: correct issue with i2c pin validation
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-02-24 01:05:58 +01:00
Patricio Whittingslow
96b70fd619
rp2040: provide better errors for invalid pins on i2c and spi ( #3443 )
...
machine/rp2040: provide better errors for invalid pins on i2c and spi
2023-02-23 13:26:14 +01:00
Yurii Soldak
4d0dfbd6fd
rp2040: rtc delayed interrupt
2023-02-23 09:23:37 +01:00
deadprogram
1065f06e57
machine/lorae5: add needed definition for UART2
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-02-20 14:15:31 +01:00
deadprogram
e066e67baf
machine/rp2040: change calling order for device enumeration fix to do first
...
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-02-19 08:32:39 +01:00
Andy Shinn
9296332151
fix bad qt py pin assignment
2023-02-19 00:39:41 +01:00
sago35
e21ab04fad
machine/usb/hid: add MediaKey support ( #3436 )
...
machine/usb/hid: add MediaKey support
2023-02-18 01:27:15 +01:00
John Clark
45c8817ddd
Support for the Espressif ESP32-C3-DevKit-RUST-1 development board
...
Signed-off-by: John Clark <inindev@gmail.com>
2023-01-29 22:50:12 +01:00
John Clark
1adfdf8fa5
Support for Makerfabs ESP32C3SPI35 TFT Touchscreen board
...
Signed-off-by: John Clark <inindev@gmail.com>
2023-01-26 20:16:11 +01:00
Olivier Fauchon
eec915170d
stm32wl: Fix incomplete RNG initialisation
2023-01-24 16:16:56 +01:00
Ayke van Laethem
159317a5fe
all: remove remaining +build lines
2023-01-17 23:35:53 +01:00
Marcus Sorensen
e7ba07dd5a
Add PDM support for circuitplay-bluefruit ( #3359 )
...
machine/nrf52840: add PDM support
Signed-off-by: Marcus Sorensen <marcus@turboio.com>
2023-01-17 12:32:01 +01:00
Thomas Richner
05ec4e6bd0
Support for Adafruit Feather M0 Express board
2023-01-11 10:07:11 +01:00
John Clark
aa12579864
Add SPI support for for the ESP32-C3 device.
...
Signed-off-by: John Clark <inindev@gmail.com>
2023-01-10 15:52:25 +01:00
sago35
5f3534fe72
machine/usb: change to not send before endpoint initialization
2023-01-08 08:44:27 +01:00
irieda
a7ff2731b9
Add USB HID joystick support ( #3366 )
...
machine/usb: add USB HID joystick support
2023-01-07 22:30:40 +01:00
sago35
70c4e1cf96
machine/usb: improve buffer size definition
2023-01-07 17:57:19 +01:00
BCG
481aba6536
board: Adafruit KB2040 ( https://www.adafruit.com/product/5302 )
2022-12-22 11:49:31 +01:00
Jesús Espino
e71e289e8b
Add basic atmega32u support ( #3337 )
...
machine/atmega32u: add support for arduino leonardo
2022-12-20 16:57:55 +01:00
sago35
6cdc718bfb
rp2040: drop deprecated build tags
2022-12-20 15:53:02 +01:00
sago35
70c94c6d01
rp2040: add version check for RP2040-E5
2022-12-20 15:53:02 +01:00
sago35
762a6f1256
rp2040: fix usb device enumeration (RP2040-E5)
2022-12-20 15:53:02 +01:00
Yurii Soldak
8d4d3c6201
build: drop deprecated build tags
2022-12-19 23:20:11 +01:00
Jesús Espino
d304e6706b
Adding support for waveshare rp2040-zero ( #3321 )
...
machine: adding support for waveshare rp2040-zero
2022-12-19 12:15:03 +01:00