diff options
| author | Lucian Copeland <hierophect@gmail.com> | 2020-01-29 16:29:43 -0500 |
|---|---|---|
| committer | Lucian Copeland <hierophect@gmail.com> | 2020-01-29 16:29:43 -0500 |
| commit | 100409961aa32e84810d6c86309e66277b4ea902 (patch) | |
| tree | 927e42d1de371b1cfcd02a83a1f62ff96a818a45 /main.c | |
| parent | b9bed98538fb236dc4fa300192c59bf03ac4743b (diff) | |
Move board_init to main.c
Diffstat (limited to 'main.c')
| -rwxr-xr-x | main.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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(); |
