MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / init

Function init

Tactility/Source/hal/Hal.cpp:63–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void 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
79const Configuration* getConfiguration() {
80 return tt::getConfiguration()->hardware;

Callers 1

runFunction · 0.50

Calls 5

publishSystemEventFunction · 0.85
registerDevicesFunction · 0.85
mountAllFunction · 0.85
startDisplaysFunction · 0.85
checkFunction · 0.50

Tested by

no test coverage detected