- Created `tactility-headless` to support ESP32 firmwares that don't require graphics - `tactility` subproject now contains both PC and ESP32 code (to avoid having to split up `tactility` and `tactility-headless` into separate projects, which would result in a very complex dependency tree) - `tactility` subproject is now defined as component for ESP32 and as regular module for PC - Improvements for dispatcher - Added `project-structure.puml` to docs - `Gui` service now depends on `Loader` service instead of the reverse - Added `statusbar_updater` service for updating Wi-Fi and SD card icons
23 lines
559 B
C
23 lines
559 B
C
#include "hardware_i.h"
|
|
|
|
#include "preferences.h"
|
|
#include "sdcard_i.h"
|
|
|
|
#define TAG "hardware"
|
|
|
|
void tt_hardware_init(const HardwareConfig* config) {
|
|
if (config->bootstrap != NULL) {
|
|
TT_LOG_I(TAG, "Bootstrapping");
|
|
tt_check(config->bootstrap(), "bootstrap failed");
|
|
}
|
|
|
|
tt_sdcard_init();
|
|
if (config->sdcard != NULL) {
|
|
TT_LOG_I(TAG, "Mounting sdcard");
|
|
tt_sdcard_mount(config->sdcard);
|
|
}
|
|
|
|
tt_check(config->init_graphics, "lvlg init not set");
|
|
tt_check(config->init_graphics(), "lvgl init failed");
|
|
}
|