aboutsummaryrefslogtreecommitdiffstats
path: root/src/systemtask
Commit message (Collapse)AuthorAgeFilesLines
* Setting to disable DFU and FS access (#1891)Dāvis Mošenkovs2025-09-031-0/+8
| | | | | | | | | | | | | | * Expose SystemTask dependency controllers Expose NotificationManager and Settings for use by the feature in next commit. This is a memory efficient way for accessing SystemTask dependencies from controllers that have SystemTask injected as a dependency. Looks like each direct dependency injection uses 4 bytes RAM. As InfiniTime is close to running out of RAM (using 16 more bytes causes build to fail with "ld: region RAM overflowed with stack") it might be helpful to use this approach more. * Add setting to disable DFU and FS access
* Remove the vibration while charging (#1768)Max Friedrich2025-05-161-1/+0
| | | | | | | | | | | * DisplayApp.cpp: Remove the vibration from OnChargingEvent This fixes a bug where the vibration interupts the physical connection with the charger and therefore triggers a new charging event and vibration, ending in a cycle of vibrations while charging. * remove OnChargingEvent message from DisplayApp --------- Co-authored-by: minacode <minamoto9@web.de>
* Remove OnTouchEventmark90642024-10-272-6/+0
|
* Unify touch panel handlingmark90642024-10-272-24/+17
|
* Restrict hardware reactivation when not sleepingmark90642024-10-271-9/+11
|
* Refactor into defined statesmark90642024-10-273-10/+22
|
* Alarm persist to flash (#1367)NeroBurner2024-09-281-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | * AlarmController: Add saving alarm time to file Save the set alarm time to the SPI NOR flash, so it does not reset to the default value when the watch resets, e.g. due to watchdog timeout or reflashing of a new version of InfiniTime. Just like the `Settings.h` `LoadSettingsFromFile()` the previous alarm at boot (if available) and `SaveSettingsToFile()` the current alarm when the `Alarm.h` screen is closed (only if the settings have changed). The alarm-settings file is stored in `.system/alarm.dat`. The `.system` folder is created if it doesn't yet exist. Fixes: https://github.com/InfiniTimeOrg/InfiniTime/issues/1330 * alarmController: close .system dir after usage Close the `lfs_dir` object for the `.system` dir after usage. Otherwise on the second changed alarm the system will lockup because the `.system` dir is already open and was never closed. --------- Co-authored-by: Galdor Takacs <g@ldor.de>
* Refactor doNotGoToSleep to a wakelock countermark90642024-09-214-12/+54
|
* Refactor SystemTask state handling for resiliencemark90642024-09-212-80/+67
| | | | | | State transitions now happen immediately where possible This simplifies state management in general, and prevents bugs such as the chime issue from occurring in the first place
* Remove unused method declarationsmark90642024-09-211-3/+0
|
* Restrict debugging monitor to debug buildsmark90642024-09-141-1/+1
|
* Clean unused DisplayApp messagesmark90642024-09-141-5/+0
|
* aod: fix brightness getting stuck highmark90642024-08-051-5/+5
|
* aod: integrate with display timeoutJohn Crawford2024-08-051-2/+2
|
* aod: PPI/RTC-based backlight brightnessmark90642024-08-051-1/+3
|
* feat: always on displayKaffeinatedKat2024-08-051-4/+11
|
* Continuous time updatesmark90642024-06-091-2/+0
|
* Simplify ISR task wake checksmark90642024-03-121-4/+1
| | | | The macro checks the variable, so we don't need to check it ourselves
* Fix chimesmark90642024-03-121-0/+8
|
* Only inhibit sleep if motion notifications are enabled, not just Bluetoothapilat2024-01-231-3/+3
|
* Keep updating motion during sleep when Bluetooth is onapilat2024-01-231-2/+3
|
* Application selection at build timeJean-François Milants2023-11-191-0/+3
| | | | | | | 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.
* lowersleep: Implement Lower to Sleep functionality (#827)FintasticMan2023-08-271-0/+4
|
* raisewake: Improve raise to wake algorithmFinlay Davidson2023-08-171-1/+1
| | | | | | | | | | | | | This new algorithm calculates the number of degrees that the wrist has rolled, and checks if that is above a threshold. First it checks if the wrist is still enough for the acceleration values to be considered mostly from gravity. It does this by calculating the mean over the past 2 SystemTask loops, and checking that the variance from that mean is below a threshold. Then it calculates the angle the wrist is being held at, and calculates the difference from the angle some time ago. If this difference is above the threshold, it wakes the watch.
* Refactor, document and fix the Watchdog driver (#1710)JF2023-04-301-3/+3
| | | | | | | * 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.
* TimerController: Make TimerController reusableRiku Isokoski2023-04-163-13/+0
| | | | TimerController instance was moved to DisplayApp.
* MotionController: Remove IsOk variableRiku Isokoski2023-04-161-1/+0
| | | | We should be able to assume MotionController is safe to use.
* inactivity: Use LVGL inactivity timersRiku Isokoski2023-03-183-68/+9
| | | | | | | | | | | | | | | | | Replace custom FreeRTOS inactivity timers with LVGL inactivity timers. DisplayApp: Trigger display activity on timer done. inactivity: Add additional checks The backlight could be turned on by RestoreBrightness() on ble connect event. inactivity: Trigger activity on screen switch A notification timing out could put the watch to sleep immediately. While this could be ideal behaviour, it was caused by delay in processing the EnableSleeping event and pushing RestoreBrightness to DisplayApp.
* raisewake: Change names in line with the style guideFinlay Davidson2023-03-091-1/+1
|
* shakewake: Fix names according to style guideFinlay Davidson2023-03-091-1/+1
|
* Revert "added low battery message"Riku Isokoski2023-03-022-13/+0
| | | | This reverts PR https://github.com/InfiniTimeOrg/InfiniTime/pull/1352
* SystemTask: Move lcd to DisplayAppRiku Isokoski2023-02-252-7/+0
| | | | SystemTask should never write to the lcd
* LittleVgl: Instantiate in DisplayAppRiku Isokoski2023-02-252-6/+0
| | | | | | | LVGL is only a part of the main DisplayApp. Other "DisplayApps" can be implemented without LVGL. DummyLittleVgl isn't needed anymore and has been removed
* SystemTask: Move MotorController to DisplayAppRiku Isokoski2023-02-253-18/+3
| | | | | Vibrations should be associated with something happening on the UI. Therefore SystemTask should not be controlling the motor.
* TouchHandler: Do not store touch panel referenceRiku Isokoski2023-02-241-2/+2
|
* touchhandler: Remove LVGL dependencyRiku Isokoski2023-02-241-3/+2
| | | | Move LVGL specific code to the LittleVgl class
* Format header filesFinlay Davidson2023-01-092-0/+4
| | | | In my PR updating clang-format, I forgot to also format the headers.
* Include algorithm and cstring for std::memcpy and std::minJean-François Milants2022-12-271-0/+2
|
* Update src/systemtask/SystemTask.cppMax Friedrich2022-12-271-4/+4
| | | Co-authored-by: JF <JF002@users.noreply.github.com>
* hopefully fixed crash on notificationminacode2022-12-271-1/+1
|
* formatminacode2022-12-271-1/+2
|
* removed magic numberminacode2022-12-271-1/+1
|
* added punctuationminacode2022-12-271-2/+2
|
* added message, changed UIminacode2022-12-271-2/+2
|
* formatminacode2022-12-271-11/+9
|
* added low battery messageminacode2022-12-272-0/+12
|
* Update clang-tidy configuration and fix some warnings (#1474)Riku Isokoski2022-12-182-13/+11
| | | | | Don't enable coding conventions from unrelated projects. Only enable generic checks.
* Fix clang-tidy warningsRiku Isokoski2022-10-101-1/+1
|
* Add sleep mode which disables notifications, touch- and motion wakeup (#1261)Riku Isokoski2022-08-211-11/+14
|
* Switch to freertos timers (#1095)Michele Bini2022-06-061-3/+0
| | | | | | | | | | | * Use FreeRTOS timer for AlarmController * Use FreeRTOS timer for MotorController * Remove app_timer component from compilation as we now solely use FreeROTS timer * Simplify variable and text names for AlarmController and MotorController timers * Call ScheduleAlarm directly from StopAlerting, for recurring timers Co-authored-by: Riku Isokoski <riksu9000@gmail.com> Co-authored-by: NeroBurner <pyro4hell@gmail.com>