diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2018-10-19 18:46:22 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2018-11-08 17:25:30 -0800 |
| commit | 9d91111b1b6a1eee77a88b13faf695ee0c5caea3 (patch) | |
| tree | 97b1bf6ae67f8c91f7a32a0246e2f8ebd9a749c7 /ports/nrf/background.c | |
| parent | d08747d374057b24803b429bbf6474a2e4dcea5c (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 'ports/nrf/background.c')
| -rw-r--r-- | ports/nrf/background.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ports/nrf/background.c b/ports/nrf/background.c index d19604f68..f614b6bd0 100644 --- a/ports/nrf/background.c +++ b/ports/nrf/background.c @@ -24,11 +24,12 @@ * THE SOFTWARE. */ -#include "tusb.h" +#ifdef NRF52840 +#include "supervisor/usb.h" +#endif void run_background_tasks(void) { -#ifdef NRF52840_XXAA - tusb_task(); - tud_cdc_write_flush(); -#endif + #ifdef NRF52840 + usb_background(); + #endif } |
