summaryrefslogtreecommitdiff
path: root/src/systemtask
AgeCommit message (Collapse)Author
2022-06-11Revert "Revert "Integrate hatmajster's timer code""Michele Bini
This reverts commit b0aadd14e6867b80f7357d4e162180aa9d9ba075.
2022-06-10Revert "Integrate hatmajster's timer code"Michele Bini
This reverts commit b72a3ed87d9797f7746d6fbdb348972401e4414b.
2022-06-10Integrate hatmajster's timer codeMichele Bini
2022-06-06Merge remote-tracking branch 'origin/develop' into analog24Michele Bini
2022-06-06Switch to freertos timers (#1095)Michele Bini
* 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>
2022-06-05System: Refactor pin and interrupt setupChristoph Honal
This should ensure better readability of the pin setup procedure, as well as allow the configuration of the hardware button enable pin and the accelerometer interrupt pin via the pin mapping header.
2022-06-05SystemTask: Use "&&" instead of "and" for operatorsChristoph Honal
As per the coding style, only primary spelling should be used for operators.
2022-06-05Fix various typosluz paz
Found via `codespell -q 3 -S ./src/libs -L ans,doubleclick,trough`
2022-06-05Apply clang-format to all C++ filesFinlay Davidson
2022-05-28Only use alarmController for time updates when alarm is setMichele Bini
2022-05-12Compilation fix for infinisimMichele Bini
2022-05-12More intuitive name for lvalue reference getter: Obtain[...]Michele Bini
2022-05-12Add 5-minutes chimesMichele Bini
2022-05-12Bluetooth Passkey Toggle settingMichele Bini
2022-05-12Add Jumpscore appMichele Bini
2022-05-08Fix and test workflowRiku Isokoski
2022-05-08Systemtask : replace enum SystemTaskState by an enum class.Jean-François Milants
2022-05-08Simplify systemtask statesRiku Isokoski
2022-04-25Replace app_timer with FreeRTOS timersRiku Isokoski
2022-04-17Differentiate time adjustment (< 3h for example time zone change when ↵Michele Bini
crossing a border or because of daylight saving) and time setting (for example when the firmware is booted for the first time and the companion app sends the time)
2022-04-17Remove app_timer component from compilationMichele Bini
2022-04-17Switch MotorController and TimerController to FreeRTOS timersMichele Bini
2022-04-17Use FreeRTOS timer for AlarmControllerMichele Bini
2022-04-13Let TouchHandler return TouchEvents instead of driver specific enumReinhold Gschweicher
Let the TouchHandler::GestureGet() function return a TouchEvent instead of the touchpanel-driver specific enum. This helps to move the driver specific helper function `ConvertGesture` from `DisplayApp` into `TouchHandler`.
2022-03-21In current configuration, the timer task (the one from FreeRTOS) has the ↵Jean-François Milants
lowest priority (0). Both display and system tasks are also set on priority 0. In cases where any other task takes too much time to execute (it can happen in Display Task, see https://github.com/InfiniTimeOrg/InfiniTime/issues/825), the timer task does not have the opportunity to run fast enough to detect and debounce presses on the button. This commit sets the following priorities: - [0] : Display Task - [1] : Timer and System tasks - [2] : BLE Host - [3] : BLE LL This way, we ensure that button presses will always be detected, even if the rendering of the display takes a huge amount of time.
2022-03-08SystemMonitor: implement FreeRtosMonitor only if trace facility is setReinhold Gschweicher
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.
2022-02-20Merge branch 'airplane-mode' of https://github.com/evergreen22/InfiniTime ↵Jean-François Milants
into evergreen22-airplane-mode Apply a few changes that were requested in the PR during the review. # Conflicts: # src/CMakeLists.txt # src/displayapp/Apps.h # src/displayapp/DisplayApp.cpp # src/displayapp/Messages.h # src/displayapp/screens/settings/Settings.cpp
2022-02-20Merge branch 'airplane-mode' of https://github.com/evergreen22/InfiniTime ↵Jean-François Milants
into evergreen22-airplane-mode # Conflicts: # src/CMakeLists.txt # src/displayapp/Apps.h # src/displayapp/DisplayApp.cpp # src/displayapp/Messages.h # src/displayapp/screens/settings/Settings.cpp
2022-02-19SystemTask: forward declare BatteryController to fix of cyclic dependencyReinhold Gschweicher
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.
2022-02-19SystemTask: remove unused ble includesReinhold Gschweicher
Remove unused includes. The firmware still compiles fine without the includes.
2022-02-12SystemTask: fix static cast missing brackets syntaxReinhold Gschweicher
The static_cast syntax requires brackets around the input variable. The implementation worked because the used input are defines, which add the missing brackets like the following: ```cpp #define GPIO_PIN_CNF_SENSE_Low (3UL) ```
2022-01-26Merge pull request #949 from Riksu9000/fix_alarmJF
Fix alarm on time change
2022-01-26Merge pull request #903 from Riksu9000/improved_notif_timeoutJF
Improved notification timeout
2022-01-22Fix alarm on time changeRiku Isokoski
2022-01-16SystemTask: add missing queue.h include for QueueHandle_tReinhold Gschweicher
2022-01-04Merge branch 'ShakeWake' of https://github.com/geekbozu/InfiniTime into ↵Jean-François Milants
geekbozu-ShakeWake # Conflicts: # src/CMakeLists.txt # src/displayapp/Apps.h # src/displayapp/DisplayApp.cpp # src/displayapp/screens/settings/Settings.cpp
2022-01-04Adds enum class for chimes optionSteveAmor
2022-01-04Add start of settings app for senstivity.Tim Keller
really just debugging. I want to make it more configurable then high med low. Position of setting needs a new location...dynamicly adding it currently at the end. Which honestly im fine with.
2022-01-04CleanupTim Keller
2022-01-04Added Shake to wakeTim Keller
2022-01-02resolves conflictsSteveAmor
2022-01-01Improved notification timeoutRiku Isokoski
2021-12-24Add airplane mode featureJames A. Jerkins
Implements 'Airplane mode' feature to disable and enable bluetooth/ble Adds airplaneMode as a non-persisted setting Adds a setting menu for switching airplane mode on and off Displays an airplane symbol on the Digital watch face and the PineTimeStyle watch face when airplane mode is enabled Always enables bluetooth/ble on boot (disable airplane mode) Alphabetizes the settings menu options Style cleanups Closes #632
2021-12-10List Dir works?Tim Keller
2021-12-09Fixed unpopped diagnosticAvamander
2021-12-09Improved format specifiers, bracing, removed C-style casts, whitespace fixes ↵Avamander
and removed Tiles shadowing
2021-12-09Break not return thanks @FintasticManTim Keller
2021-12-09Adjust systemtask to respect doNotGoToSleep.Tim Keller
2021-12-09Adjust BLE/LL stacks, style, comments, refactoringJames A. Jerkins
Increase BLE task stack +200 and decrease LL task stack -200 more braces!
2021-12-09Persist bond between rebootsJames A. Jerkins
Save bond information in the FS after a disconnect or encryption change if the bond is not already stored. The bond is restored on boot enabling automatic reconnection to a previously bonded central. Two consecutive watch reboots with the central out of range (or BLE off) will remove the stored bond from the watch.