summaryrefslogtreecommitdiff
path: root/src/systemtask
AgeCommit message (Collapse)AuthorFilesLines
2021-06-26SPI flash sleep if bootloader >= 1.0.0 (#322)Neil O'Fix1-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
2021-06-19Add support for BMA425 acceleration sensor. (#440)JF0021-0/+1
* Add support for BMA425 acceleration sensor.
2021-06-12Move most of the code from the constructor of the objects statically ↵Jean-François Milants1-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.
2021-06-10Minor improvements: use std::make_unique when creating unique_ptr, check the ↵Jean-François Milants1-6/+18
code is running from an IRQ before calling xQueueSendFromISR or xQueueSend)
2021-06-06Initialize SystemTask, DisplayApp and HeartRateTask as global static ↵Jean-François Milants3-70/+84
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)Florian2-2/+18
* 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 Milants1-3/+6
touchpanel from working correctly when the device boots while connected to the charger.
2021-05-16Emit event on power-present toggle (#320)David Ventura2-6/+20
* 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-02short vibration when enabling itpetter1-0/+1
2021-04-24Changed access modified indentationAvamander2-6/+6
2021-04-24Reformatted all the files according to clang-format styleAvamander3-197/+233
2021-04-16Disable the reading of the motion values in sleep mode when the wake up mode ↵Jean-François Milants1-0/+3
is not 'wrist rotation'.
2021-04-16In order to stabilize the battery reading,Joaquim1-2/+7
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 Milants2-10/+46
# 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 Milants1-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.
2021-04-05Fix wake up lock in twiJoaquim2-11/+17
optimize battery code
2021-04-05array in SettingWakeUp wrong sizeJoaquim José Almeida Pereira1-1/+1
2021-04-04Reset the step count every day at midnight.Jean-François Milants2-5/+16
2021-04-04Handle return code from BMA driver, and set a flag is the initialization ↵Jean-François Milants1-0/+1
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 Milants1-2/+2
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 Milants2-3/+31
wrist rotation + app to see the value of the 3 axis in "real time".
2021-04-04double tap wakeup error fixJoaquim1-10/+10
battery nonblocking read
2021-04-04Big UI and navigation RewriteJoaquim2-12/+40
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...
2021-03-22replaced all unique_ptr.reset calls with std::make_uniqueNiall Cooling1-1/+1
2021-03-22Updated to include WatchFaceAnalog and fixed clashesNiall Cooling2-13/+29
2021-03-20Merge branch 'develop' of github.com:JF002/Pinetime into developJean-François Milants2-3/+11
# Conflicts: # src/main.cpp # src/systemtask/SystemTask.h
2021-03-16Resolved C++14 Cmake build issues so correctly building to C99/C++14 standardsNiall Cooling1-2/+4
2021-03-07Merge branch 'develop' into recovery-firmwareJean-François Milants2-8/+13
# Conflicts: # src/CMakeLists.txt # src/displayapp/DisplayApp.h # src/systemtask/SystemTask.cpp # src/systemtask/SystemTask.h
2021-02-24Multi face support, analog clock, 12/24 configJoaquim2-3/+10
2021-02-14Fix merge conflict.Jean-François Milants2-3/+10
2021-02-07add vibration togglepetter1-1/+1
2021-02-05trigger vibration from systemtaskpetter1-3/+4
2021-01-26Generate pinetime-recovery : a light version of InfiniTime design to be used ↵Jean-François Milants2-11/+19
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
2021-01-25create motorcontroller in main and pass by referencepetter2-2/+8
2021-01-24Handle call notification the same way than other notifications.Jean-François Milants2-8/+2
Display the call notifications in the Notification app, with buttons to accept/reject the call.
2021-01-21Add incoming call functionalityRasmus Schenstrom2-1/+5
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>
2021-01-17Add heart rate BLE service.Jean-François Milants2-3/+3
2021-01-17HR Sensor : Add start/stop button to the HeartRate app (the HR sensors stays ↵Jean-François Milants2-8/+3
ON when the app is closed), display the HR value on the Clock app.
2021-01-10HR Sensor : do not go to sleep when the HR app is running.Jean-François Milants2-1/+9
2021-01-10First implementation of the HR sensor using 100% foss code (ported from waspos)Jean-François Milants2-5/+22
2020-12-01Merge pull request #136 from okaestne/include-cleanupJF0022-19/+33
Includes cleanup
2020-11-19Jeez this is what I get for rushing 😬Samuel Archibald1-1/+1
2020-11-19Whoops! Don't look at this XDSamuel Archibald1-1/+1
2020-11-19Readability and fixSamuel Archibald1-1/+2
2020-11-16Include cleanup: componentsokaestne2-19/+33
2020-11-02This is the actual fix, reducing the time between LCD is turned back on and ↵Samuel Archibald1-7/+4
the next task which will display the time is started.
2020-11-02Fixed displaying last displayed time for ~100ms on wakeSamuel Archibald1-4/+4
2020-10-27Disable sleep mode on the SPI NOR Flash when the version is unknown. This is ↵JF1-1/+6
because the current bootloader (which does not exposes its version) cannot initialize the chip when it's in sleep mode. This feature will be re-enabled when the bootloader expses it's version.
2020-10-09Made sure to unsuppress the diagnostic check after the infinite loop declarationAvamander1-0/+2
2020-10-09Minor formatting, diagnostic and documentation changesAvamander1-1/+4