summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLucian Copeland <hierophect@gmail.com>2020-01-29 16:29:43 -0500
committerLucian Copeland <hierophect@gmail.com>2020-01-29 16:29:43 -0500
commit100409961aa32e84810d6c86309e66277b4ea902 (patch)
tree927e42d1de371b1cfcd02a83a1f62ff96a818a45 /main.c
parentb9bed98538fb236dc4fa300192c59bf03ac4743b (diff)
Move board_init to main.c
Diffstat (limited to 'main.c')
-rwxr-xr-xmain.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index 805888ddd..52870cc8e 100755
--- a/main.c
+++ b/main.c
@@ -57,6 +57,8 @@
#include "supervisor/shared/stack.h"
#include "supervisor/serial.h"
+#include "boards/board.h"
+
#if CIRCUITPY_DISPLAYIO
#include "shared-module/displayio/__init__.h"
#endif
@@ -425,6 +427,9 @@ int __attribute__((used)) main(void) {
// no SPI flash filesystem, and we might erase the existing one.
filesystem_init(safe_mode == NO_SAFE_MODE, false);
+ // displays init after filesystem, since they could share the flash SPI
+ board_init();
+
// Reset everything and prep MicroPython to run boot.py.
reset_port();
reset_board();