aboutsummaryrefslogtreecommitdiffstats
path: root/src/systemtask/SystemTask.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'develop' into pinmaphubmartin2021-09-131-15/+20
|\
| * Merge remote-tracking branch 'upstream/develop' into timer_battery_readingRiku Isokoski2021-08-301-6/+8
| |\
| * \ Merge branch 'develop' into timer_battery_readingRiku Isokoski2021-08-281-20/+14
| |\ \
| * \ \ Merge branch 'develop' into timer_battery_readingRiku Isokoski2021-08-141-3/+2
| |\ \ \
| * | | | Make battery reading periodic. Add events. Disable pullupRiku Isokoski2021-08-141-15/+20
| | | | |
* | | | | Merge branch 'develop' into pinmaphubmartin2021-08-291-26/+22
|\ \ \ \ \ | | |_|_|/ | |/| | |
| * | | | Fix wake on tap/double tap.Jean-François Milants2021-08-281-6/+8
| | |_|/ | |/| |
| * | | Fix touchinfo typo in SystemTask.Jean-François Milants2021-08-281-1/+1
| | | |
| * | | Merge branch 'twimaster_rework' of https://github.com/Riksu9000/InfiniTime ↵Jean-François Milants2021-08-281-16/+5
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into Riksu9000-twimaster_rework # Conflicts: # src/systemtask/SystemTask.cpp
| | * | | Only enable the bus when neededRiku Isokoski2021-08-101-9/+0
| | |/ /
| * | | Merge branch 'develop' into new_touch_handlerRiku Isokoski2021-08-181-3/+2
| |\ \ \ | | | |/ | | |/|
| * | | Make diff smaller and revert some changes in DisplayAppRiku Isokoski2021-08-101-0/+1
| | | |
| * | | Rework TouchHandler into not a taskRiku Isokoski2021-08-101-3/+5
| | | |
| * | | Merge branch 'develop' into new_touch_handlerRiku Isokoski2021-07-251-9/+32
| |\ \ \ | | | |/ | | |/|
| * | | Merge branch 'develop' into new_touch_handlerRiku Isokoski2021-07-231-3/+8
| |\ \ \
| * | | | UpdateRiku Isokoski2021-07-181-0/+3
| | | | |
| * | | | Fix touch wakeup and code cleanupRiku Isokoski2021-07-161-19/+19
| | | | |
| * | | | Fix most issuesRiku Isokoski2021-07-161-1/+1
| | | | |
| * | | | New touch handler, with issuesRiku Isokoski2021-07-151-1/+0
| | | | |
* | | | | Merge branch 'develop' into pinmaphubmartin2021-08-221-3/+2
|\ \ \ \ \ | | |_|_|/ | |/| | |
| * | | | Remove leftoverRiku Isokoski2021-08-011-5/+0
| | | | |
| * | | | ImprovementsRiku Isokoski2021-08-011-4/+5
| | | | |
| * | | | Merge branch 'develop' into HEADRiku Isokoski2021-08-011-66/+144
| |\ \ \ \ | | | |_|/ | | |/| |
| * | | | cleaned up the code and reduced the size of the diff by removing things like ↵Florian Kraupa2021-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | additional whitespaces
| * | | | only activate the timeout on call notification previews after they have been ↵Florian Kraupa2021-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | interacted with
| * | | | implemented continuous vibration pattern for incoming callsFlorian Kraupa2021-05-161-1/+5
| | | | |
* | | | | PinMap with namespace and constexprhubmartin2021-08-031-9/+11
| |/ / / |/| | |
* | | | Dim screen before sleep (#464)Riku Isokoski2021-07-241-11/+34
| |_|/ |/| | | | | * Implement dimming
* | | Make firmware updating more foolproof (#469)Riku Isokoski2021-07-221-3/+8
| |/ |/| | | | | | | | | | | * Make firmware updating more foolproof and fix bugs * No need to manually handle overflow * Make startTime TickType_t * Don't process TouchEvents::None * Fix sleep getting re-enabled issue more directly
* | Multiple wakeup sources (#290)Kozova12021-07-141-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allow multiple wakeup modes at the same time. This commit adds multiple wakeup modes support. It does so by storing them as a uint8_t bitfield enum. It changes the following functions: Since multiple modes can be on now, older version would not cut it: WakeUpMode getWakeupMode() -> std::bitset<3> getWakeUpModes() Where each bit corresponds to a WakeUpMode We still need a way to check whether a specific wakeup mode is on, so: bool isWakeUpModeOn(const WakeUpMode mode) This function was changed to work correctly with the new implementation. setWakeUpMode(WakeupMode mode, bool enable) Previously, systemtask would exit SystemTask::OnTouchEvent() if the wake up mode was None or RaiseWrist, to prevent waking up when a touch was received. However, after enabling using multiple WakeUpModes, this caused a bug where when RaiseWrist was checked with SingleTap or DoubleTap, the tap detection wouldn't work. This commit fixes that bug. Next commit will update the settings WakeUpMode select UI to reflect these changes. Signed-off-by: Kozova1 <mug66kk@gmail.com> * Updated UI to reflect multiple WakeUp sources being available. Signed-off-by: Kozova1 <mug66kk@gmail.com>
* | Notify battery level every 10 minutes when connected to a BLE host.Jean-François Milants2021-07-111-0/+5
| | | | | | | | Refactor battery percent : only use uint8_t to store the battery % remaining.
* | Using littlefs (#438)joaquim.org2021-07-111-3/+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
* | Add support for BMA425 acceleration sensor. (#440)JF0022021-06-191-0/+1
| | | | | | * Add support for BMA425 acceleration sensor.
* | Move most of the code from the constructor of the objects statically ↵Jean-François Milants2021-06-121-1/+2
| | | | | | | | initialized in main() into Start()/Init() functions to avoid Static Initialization Order Fiasco (https://en.cppreference.com/w/cpp/language/siof). See https://github.com/JF002/InfiniTime/pull/415#issuecomment-859004238.
* | Minor improvements: use std::make_unique when creating unique_ptr, check the ↵Jean-François Milants2021-06-101-6/+18
| | | | | | | | code is running from an IRQ before calling xQueueSendFromISR or xQueueSend)
* | Initialize SystemTask, DisplayApp and HeartRateTask as global static ↵Jean-François Milants2021-06-061-37/+36
| | | | | | | | 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-2/+15
| | | | | | | | | | | | | | | | | | | | | | * 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
* | Fix wrong initialization of 'pinPowerPresent' pin that would prevent the ↵Jean-François Milants2021-05-171-3/+6
| | | | | | | | touchpanel from working correctly when the device boots while connected to the charger.
* | Emit event on power-present toggle (#320)David Ventura2021-05-161-5/+17
|/ | | | | | | | | | | | | | | * 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
* short vibration when enabling itpetter2021-05-021-0/+1
|
* Reformatted all the files according to clang-format styleAvamander2021-04-241-87/+107
|
* Disable the reading of the motion values in sleep mode when the wake up mode ↵Jean-François Milants2021-04-161-0/+3
| | | | is not 'wrist rotation'.
* In order to stabilize the battery reading,Joaquim2021-04-161-2/+7
| | | | | | I modified the process to make 5 consecutive readings, as the process is asynchronous, there is no interference in the main process.
* Merge branch 'develop' into motion-sensorJean-François Milants2021-04-091-7/+44
|\ | | | | | | | | | | | | | | | | | | | | | | # 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-10/+16
| | | | | | | | optimize battery code
| * array in SettingWakeUp wrong sizeJoaquim José Almeida Pereira2021-04-051-1/+1
| |
| * double tap wakeup error fixJoaquim2021-04-041-10/+10
| | | | | | | | battery nonblocking read
| * Big UI and navigation RewriteJoaquim2021-04-041-9/+38
| | | | | | | | | | | | | | | | | | | | | | 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...
* | TwiMaster is now based on the NRFX TWI driver, as it handles more edge cases ↵Jean-François Milants2021-04-081-2/+6
| | | | | | | | | | | | and workarounds for errors on the bus. Reset the TWI bus after the soft-reset of the motion sensor to workaround issues on the TWI bus.
* | Reset the step count every day at midnight.Jean-François Milants2021-04-041-2/+12
| |