Use InfiniTime Watchdog.h by providing mdk/nrf.h and others

This commit is contained in:
Reinhold Gschweicher
2023-05-03 20:58:31 +02:00
parent beea678fce
commit 4b0c2dc3eb
8 changed files with 569 additions and 223 deletions

View File

@@ -52,6 +52,7 @@
#include <nrfx_gpiote.h>
#include <hal/nrf_gpio.h>
#include <mdk/nrf52.h> // initialize NRF_WDT and NRF_POWER
#include <iostream>
#include <typeinfo>
@@ -420,6 +421,9 @@ public:
SDL_RenderPresent(renderer); // Reflects the changes done in the
// window.
}
init_NRF_WDT();
init_NRF_POWER();
motorController.Init();
settingsController.Init();