| 61 | } |
| 62 | |
| 63 | void init(const Configuration& configuration) { |
| 64 | kernel::publishSystemEvent(kernel::SystemEvent::BootInitHalBegin); |
| 65 | |
| 66 | if (configuration.initBoot != nullptr) { |
| 67 | check(configuration.initBoot(), "Init boot failed"); |
| 68 | } |
| 69 | |
| 70 | registerDevices(configuration); |
| 71 | |
| 72 | sdcard::mountAll(); // Warning: This needs to happen BEFORE displays are initialized on the SPI bus |
| 73 | |
| 74 | startDisplays(); // Warning: SPI displays need to start after SPI SD cards are mounted |
| 75 | |
| 76 | kernel::publishSystemEvent(kernel::SystemEvent::BootInitHalEnd); |
| 77 | } |
| 78 | |
| 79 | const Configuration* getConfiguration() { |
| 80 | return tt::getConfiguration()->hardware; |
no test coverage detected