aod: PPI/RTC-based backlight brightness

This commit is contained in:
mark9064
2024-01-22 23:37:52 +00:00
committed by JF
parent 20ac7e8df3
commit 3dca742b65
4 changed files with 146 additions and 16 deletions
+3 -1
View File
@@ -102,7 +102,9 @@ void SystemTask::Work() {
watchdog.Setup(7, Drivers::Watchdog::SleepBehaviour::Run, Drivers::Watchdog::HaltBehaviour::Pause);
watchdog.Start();
NRF_LOG_INFO("Last reset reason : %s", Pinetime::Drivers::ResetReasonToString(watchdog.GetResetReason()));
APP_GPIOTE_INIT(2);
if (!nrfx_gpiote_is_init()) {
nrfx_gpiote_init();
}
spi.Init();
spiNorFlash.Init();