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 /supervisor/serial.h | |
| 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 'supervisor/serial.h')
| -rw-r--r-- | supervisor/serial.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/supervisor/serial.h b/supervisor/serial.h index 9446ee71c..84b3062a3 100644 --- a/supervisor/serial.h +++ b/supervisor/serial.h @@ -30,8 +30,18 @@ #include <stdbool.h> #include <stdint.h> +#include "py/mpconfig.h" + +#ifdef CIRCUITPY_BOOT_OUTPUT_FILE +#include "lib/oofatfs/ff.h" + +FIL* boot_output_file; +#endif + void serial_init(void); void serial_write(const char* text); +// Only writes up to given length. Does not check for null termination at all. +void serial_write_substring(const char* text, uint32_t length); char serial_read(void); bool serial_bytes_available(void); bool serial_connected(void); |
