aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/Watchdog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Application selection at build timeJean-François Milants2023-11-191-1/+1
| | | | | | | A list of "user applications" is built at compile time. It contains all the info needed to create the application at runtime (ptr to a create() function) and to display the app in the application menu. All applications declare a TypeTrait with these information. When a new app must be loaded, DisplayApp first check if this app is a System app (in which case it creates it like it did before). If it's not a System app, it looks for the app in the list of User applications and creates it if it found it. Those changes allow to more easily add new app and to select which app must be built into the firmware. Switch to C++20 (and fix a few issues in SpiMaster.cpp and Watchdog.cpp.
* Refactor, document and fix the Watchdog driver (#1710)JF2023-04-301-47/+121
| | | | | | | * Refactor and document the Watchdog driver to make it more readable. Fix the configuration of the behaviours configuration that was not properly implemented (but it didn't cause any side effect since the correct value was eventually set in NRF_WDT->CONFIG). Fix the wrong interpretation of the reset reasons caused by implicit conversions of int to bool.
* Update includes to to be relative to src directoryReinhold Gschweicher2021-11-151-1/+1
| | | | | | | Don't use relative imports like `../foo.h` as those depend on the relative position of both files. Rather than that use imports relative to the `src` directory, which explicitly is part of the include directories.
* Reformatted all the files according to clang-format styleAvamander2021-04-241-22/+39
|
* Include cleanup: driversokaestne2020-11-151-3/+1
|
* Fix reset reason (it returns the actual reset reason instead of hard coded ↵JF2020-06-071-11/+11
| | | | 'hard reset' value).
* Integration of nimble, work in progress.JF2020-04-191-10/+10
| | | | Advertising is working.
* Add new App : Sysinfo. It displays various info about the running system : ↵JF2020-03-221-9/+11
| | | | version, date/time, battery, brightness and resetreason. It contains placeholder for future use (like mac address, uptime,...).
* Enable watchdog, and issue a WDT reset when the button is pushed for more ↵JF2020-02-231-0/+60
than 7s.