summaryrefslogtreecommitdiff
path: root/shared-bindings/busio
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2018-10-19 18:46:22 -0700
committerScott Shawcroft <scott@tannewt.org>2018-11-08 17:25:30 -0800
commit9d91111b1b6a1eee77a88b13faf695ee0c5caea3 (patch)
tree97b1bf6ae67f8c91f7a32a0246e2f8ebd9a749c7 /shared-bindings/busio
parentd08747d374057b24803b429bbf6474a2e4dcea5c (diff)
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.
Diffstat (limited to 'shared-bindings/busio')
-rw-r--r--shared-bindings/busio/SPI.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared-bindings/busio/SPI.h b/shared-bindings/busio/SPI.h
index 555f32c92..2d12b8b76 100644
--- a/shared-bindings/busio/SPI.h
+++ b/shared-bindings/busio/SPI.h
@@ -61,4 +61,7 @@ extern bool common_hal_busio_spi_transfer(busio_spi_obj_t *self, uint8_t *data_o
// Return actual SPI bus frequency.
uint32_t common_hal_busio_spi_get_frequency(busio_spi_obj_t* self);
+// This is used by the supervisor to claim SPI devices indefinitely.
+extern void common_hal_busio_spi_never_reset(busio_spi_obj_t *self);
+
#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BUSIO_SPI_H