Dan Halbert
b6206406de
new pin validation routines; don't use mp_const_none if NULL will do
3 years ago
Dan Halbert
634d246910
relicense nrf SPI.c to MIT
3 years ago
Dan Halbert
e00b3269fe
use properly-sized SPI transactions
3 years ago
Dan Halbert
2e029d55fc
nrf: add SPIM3 support
3 years ago
Dan Halbert
be4e681d07
fix UICR check; do not use NULL for no MISO
3 years ago
Scott Shawcroft
6afb8dadbc
Change SPI and I2C in the same way.
3 years ago
hathach
894cad2e17
upgrade nrfx API to v2
3 years ago
Scott Shawcroft
6797ec6ed3
Add support for grayscale displays that are < 8 bit depth.
...
This also improves Palette so it stores the original RGB888 colors.
Lastly, it adds I2CDisplay as a display bus to talk over I2C. Particularly
useful for the SSD1306.
Fixes #1828 . Fixes #1956
4 years ago
Dan Halbert
a1b5d800f3
Update copyrights; get ready for Central
4 years ago
Scott Shawcroft
049b9ca094
Remove terse TODOs
4 years ago
Radomir Dopieralski
8323721232
Stop hard-coding SPI frequency in FourWire
...
Instead remember and use the frequency, polarity and phase that was
set when the bus was first created.
4 years ago
Scott Shawcroft
9d91111b1b
Move atmel-samd to tinyusb and support nRF flash.
...
This started while adding USB MIDI support (and descriptor support is
in this change.) When seeing that I'd have to implement the MIDI class
logic twice, once for atmel-samd and once for nrf, I decided to refactor
the USB stack so its shared across ports. This has led to a number of
changes that remove items from the ports folder and move them into
supervisor.
Furthermore, we had external SPI flash support for nrf pending so I
factored out the connection between the usb stack and the flash API as
well. This PR also includes the QSPI support for nRF.
4 years ago
Dan Halbert
91a88cf568
Allow variable freq PWMOut; use multiple channels if same freq
4 years ago
Dan Halbert
21d331c8cc
round SPI freq down; check max freq
4 years ago
Dan Halbert
aa95526428
nrf: remove error check for SPI baudrate too high; round to nearest baudrate
4 years ago
Dan Halbert
48a3aafdd2
reset I2C and SPI on ctrl-D
4 years ago
Dan Halbert
2c15d12f2f
allow multiple I2C and SPI; improve nrfx_config.h
4 years ago
Dan Halbert
2309e60c0d
WIP; problem with staticly allocated IRQ handlers
4 years ago
Dan Halbert
9ea809bef7
add pin claiming to devices
4 years ago
Dan Halbert
585597a252
pin files rework; implement pin claiming; add more boards
4 years ago
arturo182
ac74edb4e4
nrf: Fix SPI transfers with data larger than HW allows
5 years ago
arturo182
2f1e678d60
nrf: Rewrite the SPI common-hal using nrfx
...
Use SPIM2 on nRF52832 and SPIM3 on nRF52840. SPIM3 is able to go
up to 32MHz!
5 years ago
arturo182
76f5c01798
nrf: Get the port working on pca10056 (nRF52840)
5 years ago
arturo182
d0b451be94
nrf: Use the right SPI registers on nRF52840
5 years ago
Dan Halbert
64831f4e7d
add SPI.frequency to nRF
5 years ago
Dan Halbert
19d353ccd9
nrf: fixups for changes from 2.2
...
1. bidirectional SPI support (@microbuilder please check)
2. slight changes in DigitalIO types
3. placeholders (not implemented yet) for single/double-click bootloader support
5 years ago
microbuilder
60a23f0fb6
nRF52 update with internal file system support
5 years ago