summaryrefslogtreecommitdiff
path: root/src/systemtask/SystemTask.cpp
AgeCommit message (Collapse)Author
2021-08-19Move Backup to the system task.Tim Keller
2021-08-18Merge branch 'develop' into new_touch_handlerRiku Isokoski
2021-08-18Automatic error detectionRiku Isokoski
2021-08-17Merge branch 'develop' into update_touch_driverRiku Isokoski
2021-08-14Merge branch 'develop' into timer_battery_readingRiku Isokoski
2021-08-14Make battery reading periodic. Add events. Disable pullupRiku Isokoski
2021-08-10Make diff smaller and revert some changes in DisplayAppRiku Isokoski
2021-08-10Rework TouchHandler into not a taskRiku Isokoski
2021-08-10Only enable the bus when neededRiku Isokoski
2021-08-03PinMap with namespace and constexprhubmartin
2021-08-01Remove leftoverRiku Isokoski
2021-08-01ImprovementsRiku Isokoski
2021-08-01Merge branch 'develop' into HEADRiku Isokoski
2021-07-25Merge branch 'develop' into new_touch_handlerRiku Isokoski
2021-07-24Dim screen before sleep (#464)Riku Isokoski
* Implement dimming
2021-07-23Merge branch 'develop' into new_touch_handlerRiku Isokoski
2021-07-22Make firmware updating more foolproof (#469)Riku Isokoski
* 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
2021-07-18UpdateRiku Isokoski
2021-07-15Fix touch wakeup and code cleanupRiku Isokoski
2021-07-15Fix most issuesRiku Isokoski
2021-07-15New touch handler, with issuesRiku Isokoski
2021-07-14Merge branch 'develop' into update_touch_driverRiku Isokoski
2021-07-14Multiple wakeup sources (#290)Kozova1
* 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>
2021-07-14Update touchpad driverRiku Isokoski
2021-07-11Notify battery level every 10 minutes when connected to a BLE host.Jean-François Milants
Refactor battery percent : only use uint8_t to store the battery % remaining.
2021-07-11Using littlefs (#438)joaquim.org
* 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
2021-06-19Add support for BMA425 acceleration sensor. (#440)JF002
* Add support for BMA425 acceleration sensor.
2021-06-12Move most of the code from the constructor of the objects statically ↵Jean-François Milants
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.
2021-06-10Minor improvements: use std::make_unique when creating unique_ptr, check the ↵Jean-François Milants
code is running from an IRQ before calling xQueueSendFromISR or xQueueSend)
2021-06-06Initialize SystemTask, DisplayApp and HeartRateTask as global static ↵Jean-François Milants
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.
2021-05-20Timer App (#355)Florian
* 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
2021-05-17Fix wrong initialization of 'pinPowerPresent' pin that would prevent the ↵Jean-François Milants
touchpanel from working correctly when the device boots while connected to the charger.
2021-05-16Emit event on power-present toggle (#320)David Ventura
* 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
2021-05-15cleaned up the code and reduced the size of the diff by removing things like ↵Florian Kraupa
additional whitespaces
2021-05-15only activate the timeout on call notification previews after they have been ↵Florian Kraupa
interacted with
2021-05-15implemented continuous vibration pattern for incoming callsFlorian Kraupa
2021-05-02short vibration when enabling itpetter
2021-04-24Reformatted all the files according to clang-format styleAvamander
2021-04-16Disable the reading of the motion values in sleep mode when the wake up mode ↵Jean-François Milants
is not 'wrist rotation'.
2021-04-16In order to stabilize the battery reading,Joaquim
I modified the process to make 5 consecutive readings, as the process is asynchronous, there is no interference in the main process.
2021-04-09Merge branch 'develop' into motion-sensorJean-François Milants
# 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
2021-04-08TwiMaster is now based on the NRFX TWI driver, as it handles more edge cases ↵Jean-François Milants
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.
2021-04-05Fix wake up lock in twiJoaquim
optimize battery code
2021-04-05array in SettingWakeUp wrong sizeJoaquim José Almeida Pereira
2021-04-04Reset the step count every day at midnight.Jean-François Milants
2021-04-04Handle return code from BMA driver, and set a flag is the initialization ↵Jean-François Milants
fails. This allows to boot InfiniTime even if the device cannot initialize.
2021-04-04Code cleaning in BMA421 driver. Do the axis inversion in the driver and not ↵Jean-François Milants
in the application. NOTE: Axis remapping from the SDK do not apply to the "raw" X/Y/Z values returned to the sensor. According to the doc, the remapping is only applied to features, but I cannot check if it has any effect on step counting (I'm not sure I use it correctly, doc is not complete enough about this feature).
2021-04-04First integration of the motion sensor (bma 421) : step counting + wake on ↵Jean-François Milants
wrist rotation + app to see the value of the 3 axis in "real time".
2021-04-04double tap wakeup error fixJoaquim
battery nonblocking read
2021-04-04Big UI and navigation RewriteJoaquim
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...