summaryrefslogtreecommitdiff
path: root/src/systemtask/SystemTask.cpp
AgeCommit message (Collapse)Author
2022-05-28Only use alarmController for time updates when alarm is setMichele Bini
2022-04-17Merge branch 'alarm-reliability-and-switch-to-freertos-timers' into edgeMichele Bini
# Conflicts: # src/components/alarm/AlarmController.cpp # src/components/datetime/DateTimeController.cpp # src/components/motor/MotorController.cpp # src/components/timer/TimerController.cpp # src/components/timer/TimerController.h # src/systemtask/Messages.h # src/systemtask/SystemTask.cpp
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-17Remove systemTask reference from MotorControllerMichele Bini
2022-04-17Simplify MotorController timer codeMichele Bini
2022-04-16Make Init methods more uniform among timer and alarm controllersMichele Bini
2022-04-16Renamed RescheduleAlarm to OnAdjustTimeMichele Bini
2022-04-16Differentiate 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-16remove app timer, with the exception of header, to keep APP_TIMER_TICKS ↵Michele Bini
definition.
2022-04-16Merge branch 'alarm-fix-work' into edgeMichele Bini
# Conflicts: # src/components/timer/TimerController.cpp
2022-04-16Run ScheduleAlarm from System task events only.Michele Bini
2022-04-13Uncommited changed in last commitMichele Bini
2022-04-13Attempt to fix lost alarmsMichele 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-04-10New chimes engineMichele Bini
2022-04-10Bluetooth Passkey Toggle settingMichele Bini
2022-04-10reduce conditional branching and tests for motion activity interactionsMichele Bini
2022-04-10Integrate hatmajster's timer codeMichele Bini
2022-04-09Integrate FintasticMan's RaiseWake and LowerToSleep modsMichele Bini
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-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-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.
2021-12-09Connect and bond with a passkeyJames A. Jerkins
This commit adds the following: Passkey pairing - passkey is displayed on watch Swipe down to clear passkey screen Connection encryption Connection bonding Automatic reconnects to a bonded peripheral Trusted device on Android Note that persisting the bond between reboots is NOT included in this commit. Therefore, rebooting the watch will cause reconnect failures. You must delete the bond from the phone to reconnect/pair.
2021-11-15Update includes to to be relative to src directoryReinhold Gschweicher
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.
2021-11-07Fix previous commit, call touchPanel.Init() even if we disabled the touch ↵Jean-François Milants
controller boot error.
2021-11-07Disable the warning that is displayed when the initialization of the touch ↵Jean-François Milants
controller fails, as some users reported that it was displayed when a valid touch controller was installed.