aboutsummaryrefslogtreecommitdiffstats
path: root/src/systemtask/SystemTask.h
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | Merge branch 'develop' into recovery-firmwareJean-François Milants2021-03-071-4/+5
|\| | | | | | | | | | | | | | | # Conflicts: # src/CMakeLists.txt # src/displayapp/DisplayApp.h # src/systemtask/SystemTask.cpp # src/systemtask/SystemTask.h
| * Fix merge conflict.Jean-François Milants2021-02-141-0/+3
| |\
| | * create motorcontroller in main and pass by referencepetter2021-01-251-0/+3
| | |
| * | Handle call notification the same way than other notifications.Jean-François Milants2021-01-241-2/+1
| | | | | | | | | | | | Display the call notifications in the Notification app, with buttons to accept/reject the call.
| * | Add incoming call functionalityRasmus Schenstrom2021-01-211-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Add categories to AlertNotification Add new alert notification screens bases Add Incoming Call Add Modal Add event to AlertNotification Co-authored-by: Robin Karlsson <robin.karlsson@protonmail.com>
* / Generate pinetime-recovery : a light version of InfiniTime design to be used ↵Jean-François Milants2021-01-261-0/+9
|/ | | | | | | | | as a recovery firmware : it only provides basic UI and BLE connectivity for OTA. This new FW is build on the same codebasse than the actual InfiniTime. Only the display task is different (this allows to remove lvgl from the recovery fw, which is very heavy). CMake builds and docker have been modified accordingly. Note than the fw is converted into an image and then into a DFU in the cmake build (previously, it was only done in the
* Add heart rate BLE service.Jean-François Milants2021-01-171-1/+1
|
* HR Sensor : Add start/stop button to the HeartRate app (the HR sensors stays ↵Jean-François Milants2021-01-171-2/+1
| | | | ON when the app is closed), display the HR value on the Clock app.
* HR Sensor : do not go to sleep when the HR app is running.Jean-François Milants2021-01-101-1/+2
|
* First implementation of the HR sensor using 100% foss code (ported from waspos)Jean-François Milants2021-01-101-2/+9
|