Hal refactored (#99)
This commit is contained in:
committed by
GitHub
parent
0188ce721c
commit
33bb742dfb
@@ -6,9 +6,9 @@
|
||||
namespace tt::hal {
|
||||
|
||||
void init(const Configuration& configuration) {
|
||||
if (configuration.initPower != nullptr) {
|
||||
if (configuration.initBoot != nullptr) {
|
||||
TT_LOG_I(TAG, "Init power");
|
||||
tt_check(configuration.initPower(), "Init power failed");
|
||||
tt_check(configuration.initBoot(), "Init power failed");
|
||||
}
|
||||
|
||||
tt_check(i2c::init(configuration.i2c), "I2C init failed");
|
||||
@@ -23,11 +23,6 @@ void init(const Configuration& configuration) {
|
||||
TT_LOG_W(TAG, "SD card mount failed (init can continue)");
|
||||
}
|
||||
}
|
||||
|
||||
if (configuration.initLvgl != nullptr) {
|
||||
TT_LOG_I(TAG, "Init LVGL");
|
||||
tt_check(configuration.initLvgl(), "LVGL init failed");
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user