summaryrefslogtreecommitdiff
path: root/main.c
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 /main.c
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 'main.c')
-rwxr-xr-xmain.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index c1379c571..ac55b72ba 100755
--- a/main.c
+++ b/main.c
@@ -51,6 +51,7 @@
#include "supervisor/shared/autoreload.h"
#include "supervisor/shared/translate.h"
#include "supervisor/shared/rgb_led_status.h"
+#include "supervisor/shared/status_leds.h"
#include "supervisor/shared/stack.h"
#include "supervisor/serial.h"
@@ -388,6 +389,8 @@ int __attribute__((used)) main(void) {
// initialise the cpu and peripherals
safe_mode_t safe_mode = port_init();
+ // Turn on LEDs
+ init_status_leds();
rgb_led_status_init();
stack_init();