aboutsummaryrefslogtreecommitdiffstats
path: root/src/systemtask/SystemTask.h
Commit message (Collapse)AuthorAgeFilesLines
* Refactor into defined statesmark90642024-10-271-1/+1
|
* Refactor doNotGoToSleep to a wakelock countermark90642024-09-211-2/+2
|
* Refactor SystemTask state handling for resiliencemark90642024-09-211-2/+3
| | | | | | 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
|
* TimerController: Make TimerController reusableRiku Isokoski2023-04-161-3/+0
| | | | TimerController instance was moved to DisplayApp.
* inactivity: Use LVGL inactivity timersRiku Isokoski2023-03-181-4/+4
| | | | | | | | | | | | | | | | | 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.
* SystemTask: Move lcd to DisplayAppRiku Isokoski2023-02-251-2/+0
| | | | SystemTask should never write to the lcd
* LittleVgl: Instantiate in DisplayAppRiku Isokoski2023-02-251-4/+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-251-3/+0
| | | | | Vibrations should be associated with something happening on the UI. Therefore SystemTask should not be controlling the motor.
* Format header filesFinlay Davidson2023-01-091-0/+3
| | | | In my PR updating clang-format, I forgot to also format the headers.
* Systemtask : replace enum SystemTaskState by an enum class.Jean-François Milants2022-05-081-3/+3
|
* Simplify systemtask statesRiku Isokoski2022-05-081-5/+4
|
* SystemMonitor: implement FreeRtosMonitor only if trace facility is setReinhold Gschweicher2022-03-081-5/+1
| | | | | | | | | | | | | | | Split SystemMonitor into h and cpp file and move the logging code of the `Process` function into the cpp file. Depending of the `configUSE_TRACE_FACILITY` define from `src/FreeRTOSConfig.h` create either a "FreeRtosMonitor" or a "DummyMonitor". Make the `Process()` function non-const, as the FreeRtosMonitor changes the member variable `lastTick`. In `SystemTask.h` we then only need to use `SystemMonitor`, without knowledge of the `configUSE_TRACE_FACILITY` define.
* SystemTask: forward declare BatteryController to fix of cyclic dependencyReinhold Gschweicher2022-02-191-1/+1
| | | | | | | | | SystemTask.h included BatteryController.h, and BatteryController.h included SystemTask.h. If unlucky the class SystemTask isn't created yet when BatteryController wants to use it. Fix that cyclic dependency by forward declaring the BatteryController class and including it in the SystemTask.cpp file, where it is needed.
* SystemTask: add missing queue.h include for QueueHandle_tReinhold Gschweicher2022-01-161-0/+1
|
* Update includes to to be relative to src directoryReinhold Gschweicher2021-11-151-2/+2
| | | | | | | 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.
* Make it so special actions can be input while sleeping, like in #480Riku Isokoski2021-10-251-0/+2
|
* Return button action instead of pushing messagesRiku Isokoski2021-10-251-0/+2
|
* Newer buttonhandlerRiku Isokoski2021-10-251-2/+5
|
* Improve battery percentage calculation and reportingRiku Isokoski2021-10-041-2/+0
| | | | | While charging, percentage should only go up, and while discharging, percentage should only go down.
* Merge branch 'PersistantStorage' of git://github.com/geekbozu/InfiniTime ↵Jean-François Milants2021-09-181-0/+1
|\ | | | | | | | | | | | | into geekbozu-PersistantStorage # Conflicts: # src/systemtask/SystemTask.cpp
| * Move Backup to the system task.Tim Keller2021-08-191-0/+1
| |
* | resolve conflict in src/systemtask/Messages.hMark Russell2021-09-161-11/+5
|\ \
| * \ Merge branch 'develop' into pinmaphubmartin2021-09-131-2/+4
| |\ \
| | * \ Merge branch 'develop' into timer_battery_readingRiku Isokoski2021-08-281-3/+8
| | |\ \
| | * | | Make battery reading periodic. Add events. Disable pullupRiku Isokoski2021-08-141-2/+4
| | | |/ | | |/|
| * | | Merge branch 'develop' into pinmaphubmartin2021-08-291-3/+8
| |\ \ \ | | | |/ | | |/|
| * | | PinMap with namespace and constexprhubmartin2021-08-031-9/+0
| | | |
| * | | DRAFT: Put gpio pins to separate filehubmartin2021-08-021-1/+2
| | |/ | |/|
* | | Revert "Merge upstream"Mark Russell2021-09-161-5/+11
| | | | | | | | | | | | This reverts commit 1d43adcdfa7bd15ba45c0c9d7c59c0ff99176b9c.
* | | Merge upstreamMark Russell2021-09-161-11/+5
| | |
* | | Created basic alarm appMark Russell2021-09-101-0/+3
| |/ |/|
* | Merge branch 'develop' into new_touch_handlerRiku Isokoski2021-07-251-3/+4
|\|
| * Dim screen before sleep (#464)Riku Isokoski2021-07-241-3/+4
| | | | | | * Implement dimming
* | Fix touch wakeup and code cleanupRiku Isokoski2021-07-161-4/+9
|/
* Notify battery level every 10 minutes when connected to a BLE host.Jean-François Milants2021-07-111-0/+2
| | | | Refactor battery percent : only use uint8_t to store the battery % remaining.
* Using littlefs (#438)joaquim.org2021-07-111-4/+8
| | | | | | | | | * add submodule littlefs * base fs * Save settings using littlefs * Small fixes and suggestions from PR * More small fixes from PR suggestions * Code clean up * Change SpiNorFlash functions to be private in FS
* SPI flash sleep if bootloader >= 1.0.0 (#322)Neil O'Fix2021-06-261-0/+4
| | | | | | * Retrieve and display bootloader version - Display bootloader version on System Info screen - Enable SPI flash sleep mode if bootloader version >= 1.0.0 * Wait for SPI flash to wakeup before starting OTA DFU
* Initialize SystemTask, DisplayApp and HeartRateTask as global static ↵Jean-François Milants2021-06-061-32/+21
| | | | variable instead of variables on the heap. We don't need them on the heap as we know their size at build time, it'll reduce memory fragmentation and it'll make memory analysis easier.
* Timer App (#355)Florian2021-05-201-0/+3
| | | | | | | | | | | * built timer app * Style improvements * making sure buttons stay hidden when the app is reopened and reappear after the timer runs out * more sensible calculations of time deltas. eliminated that mysterious scaling factor * changing the timer icon
* Emit event on power-present toggle (#320)David Ventura2021-05-161-1/+3
| | | | | | | | | | | | | | | * Emit event on power-present toggle * clang-format on changes * also update battery status on any event * update comments; remove double battery update * Fix formatting * Vibrate shortly on charging event * debounce charge event
* Changed access modified indentationAvamander2021-04-241-2/+2
|
* Reformatted all the files according to clang-format styleAvamander2021-04-241-73/+91
|
* Merge branch 'develop' into motion-sensorJean-François Milants2021-04-091-3/+2
|\ | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # src/CMakeLists.txt # src/displayapp/Apps.h # src/displayapp/DisplayApp.cpp # src/displayapp/DisplayApp.h # src/displayapp/lv_pinetime_theme.c # src/displayapp/screens/ApplicationList.cpp # src/drivers/TwiMaster.cpp # src/systemtask/SystemTask.h
| * Fix wake up lock in twiJoaquim2021-04-051-1/+1
| | | | | | | | optimize battery code
| * Big UI and navigation RewriteJoaquim2021-04-041-3/+2
| | | | | | | | | | | | | | | | | | | | | | new navigation add some color to the apps redesign menus new settings menu new quick settings code clean up size reduction by converting navigation images to font and more...
* | Reset the step count every day at midnight.Jean-François Milants2021-04-041-3/+4
| |
* | First integration of the motion sensor (bma 421) : step counting + wake on ↵Jean-François Milants2021-04-041-0/+6
|/ | | | wrist rotation + app to see the value of the 3 axis in "real time".
* Merge branch 'develop' of github.com:JF002/Pinetime into developJean-François Milants2021-03-201-1/+5
|\ | | | | | | | | | | # Conflicts: # src/main.cpp # src/systemtask/SystemTask.h
| * Multi face support, analog clock, 12/24 configJoaquim2021-02-241-1/+4
| |