Jean-François Milants
6d524ebea2
Move most of the code from the constructor of the objects statically 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-12 10:58:28 +02:00
Jean-François Milants
b1925ff286
Minor improvements: use std::make_unique when creating unique_ptr, check the code is running from an IRQ before calling xQueueSendFromISR or xQueueSend)
2021-06-10 21:20:27 +02:00
Jean-François Milants
caca6a5cff
Fix stack corruption when exiting an app (the app was destroyed while it was executing the button handler).
2021-06-10 21:19:11 +02:00
Jean-François Milants
ff00873f97
Fix build for recovery firmware.
2021-06-06 20:20:55 +02:00
Jean-François Milants
7f9cc51b05
Initialize SystemTask, DisplayApp and HeartRateTask as global static 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-06-06 15:56:03 +02:00
Jean-François Milants
f88c0f41fa
Fix recovery DisplayApp.
2021-05-21 11:56:50 +02:00
Jean-François Milants
7c9513be8a
Set version to 1.1.0.
2021-05-21 11:37:32 +02:00
Jean-François Milants
9ab298c09e
Fix wrong initialization of 'pinPowerPresent' pin that would prevent the touchpanel from working correctly when the device boots while connected to the charger.
2021-05-17 09:52:31 +02:00
Jean-François Milants
d7fa000b85
DisplayApp : returnApp was renamed ReturnApp() (manual fix after multiple merges).
2021-05-15 22:38:49 +02:00
Jean-François Milants
c82dee2def
Add missing pictures.
2021-05-13 13:21:18 +02:00
Jean-François Milants
88e3790fbf
Merge branch 'develop' of github.com:JF002/Pinetime into develop
2021-05-13 13:20:19 +02:00
Jean-François Milants
afd5ac0d4a
Add quick user guide for InfiniTime 1.0
2021-05-13 13:19:48 +02:00
JF002
242620b73e
Improve doc/contribute.md : add more info and TL;DR
2021-05-02 14:11:22 +02:00
JF002
bc9a782f41
Improve contributes.md : give more detailed guideline on how to create a good pull-request
2021-05-02 14:08:09 +02:00
Jean-François Milants
e56ebb8bd6
Update README.md and picture.
2021-04-21 21:56:43 +02:00
Jean-François Milants
fefb429fb4
Fix formatting issue on the lap counter in Stopwatch (display lap counter on 2 characters).
2021-04-20 21:01:38 +02:00
Jean-François Milants
410cc821f4
Fix formatting issue on the lap counter in Stopwatch.
2021-04-19 20:30:51 +02:00
Jean-François Milants
bbc24e88b0
Fix a display glitch when an OTA is initiated while an app (other than Clock) was open and while the device was in sleep mode.
2021-04-18 17:44:40 +02:00
Jean-François Milants
a7114f21b7
Fix display consistency with the HR measurement when measurements are already running when the app is open.
2021-04-18 13:50:38 +02:00
JF002
77470e73f9
Set version to 1.0.0, wohoo!
2021-04-16 21:34:21 +02:00
Jean-François Milants
63635381b0
Disable the reading of the motion values in sleep mode when the wake up mode is not 'wrist rotation'.
2021-04-16 20:05:46 +02:00
Jean-François Milants
eb769fb60e
Merge branch 'motion-sensor' into develop
2021-04-09 21:17:03 +02:00
Jean-François Milants
15b3b8e282
Merge branch 'develop' into motion-sensor
...
# 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-09 21:16:21 +02:00
Jean-François Milants
57b4c3f0ed
Fix display of empty notification.
2021-04-09 20:50:09 +02:00
Jean-François Milants
4560e9ed60
Merge branch 'notification-title' into develop
2021-04-09 20:47:39 +02:00
Jean-François Milants
63584b6561
Merge branch 'develop' into notification-title
...
# Conflicts:
# src/displayapp/screens/Notifications.cpp
2021-04-09 20:47:24 +02:00
Jean-François Milants
9ac4be8b75
TwiMaster is now based on the NRFX TWI driver, as it handles more edge cases 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-08 20:07:24 +02:00
Jean-François Milants
f8b9a7c060
Fix music app :
...
- Enable LVGL animation (and disable groups, which were not used), and set the speed.
- Fix disc animation and progress display by initializing lastIncrement at 0 (a random value will be used otherwise, in release build)
2021-04-04 17:19:41 +02:00
Jean-François Milants
1d7576de64
Reset the step count every day at midnight.
2021-04-04 15:56:40 +02:00
Jean-François Milants
52a90288fd
Handle return code from BMA driver, and set a flag is the initialization fails. This allows to boot InfiniTime even if the device cannot initialize.
2021-04-04 15:56:11 +02:00
Jean-François Milants
c7cc47ae30
Code cleaning in BMA421 driver. Do the axis inversion in the driver and not 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-04 15:56:11 +02:00
Jean-François Milants
19b53545d4
Add step counting and wake up on wrist rotation in the list of features.
2021-04-04 15:56:11 +02:00
Jean-François Milants
68bdaee1cc
First integration of the motion sensor (bma 421) : step counting + wake on wrist rotation + app to see the value of the 3 axis in "real time".
2021-04-04 15:56:04 +02:00
Jean-François Milants
3934e9bef2
Ignore notification with empty message.
2021-04-04 15:19:37 +02:00
Jean-François Milants
1b71a10beb
Notification app : disable swipe when the app is in 'preview' mode. In this mode, only the new notification should be displayed, there is no point to allow navigating to past notifications.
...
Works as a workaround for the crash that occurs when you swipe the notification app in preview mode (https://github.com/JF002/InfiniTime/issues/250 ).
2021-04-04 13:42:22 +02:00
Jean-François Milants
03de1c6739
Add support for notification title. The notification buffer must contain the title and the message separated by a '\0' character.
...
If the buffer does not contain any \0, the whole buffer is considered to be the message of the notification. A default title will be displayed in the notification app.
2021-04-04 12:10:47 +02:00
Jean-François Milants
9f9d0eb5df
Set version to 0.15.0
2021-03-21 17:12:29 +01:00
Jean-François Milants
adefa1e660
Update buildAndProgram.md with info about Debug/Release builds.
2021-03-21 17:12:19 +01:00
Jean-François Milants
405c85c160
Merge branch 'develop' of github.com:JF002/Pinetime into develop
...
# Conflicts:
# src/main.cpp
# src/systemtask/SystemTask.h
2021-03-20 11:41:49 +01:00
Jean-François Milants
e63596b291
Set version to 0.14.1
2021-03-07 21:29:02 +01:00
JF
c5dc4c55a7
Merge branch 'recovery-firmware' of JF/PineTime into develop
2021-03-07 18:45:35 +01:00
Jean-François Milants
5845fd98ba
Add submodule again...
2021-03-07 09:15:26 +01:00
Jean-François Milants
c083916f33
Revert "Add submodule again..."
...
This reverts commit 15484d0b34 .
2021-03-07 09:08:45 +01:00
Jean-François Milants
15484d0b34
Add submodule again...
2021-03-07 08:50:35 +01:00
Jean-François Milants
9f67e6f652
Merge branch 'develop' into recovery-firmware
...
# Conflicts:
# src/CMakeLists.txt
# src/displayapp/DisplayApp.h
# src/systemtask/SystemTask.cpp
# src/systemtask/SystemTask.h
2021-03-07 08:44:14 +01:00
Jean-François Milants
a44260aab0
Update pictures in the main README.md file.
2021-02-25 21:18:22 +01:00
Jean-François Milants
e8a8a8417f
Set version to 0.14.0
2021-02-24 20:28:26 +01:00
Jean-François Milants
c18f4e5811
Update doc : init git submodule before build.
2021-02-23 22:37:21 +01:00
Jean-François Milants
094f98743d
Fix LVGL submodule (sorry!)
2021-02-23 21:53:50 +01:00
Jean-François Milants
67c545b1fb
Merge branch 'joaquimorg-LVGL7' into develop
2021-02-23 21:25:43 +01:00
Jean-François Milants
b11b20b0ac
Remove LVGL folder (it's now a submodule)
2021-02-23 21:21:29 +01:00
Jean-François Milants
f864330d35
Merge branch 'LVGL7' of https://github.com/joaquimorg/Pinetime into joaquimorg-LVGL7
...
# Conflicts:
# src/CMakeLists.txt
# src/displayapp/DisplayApp.cpp
# src/displayapp/screens/Modal.cpp
# src/displayapp/screens/Modal.h
# src/displayapp/screens/Notifications.cpp
# src/displayapp/screens/Tile.h
2021-02-23 21:18:59 +01:00
Jean-François Milants
324c7dab32
Set version to 0.13.0
2021-02-14 14:46:22 +01:00
Jean-François Milants
f81ff98c30
Merge branch 'develop' of github.com:JF002/Pinetime into develop
2021-02-14 14:42:42 +01:00
Jean-François Milants
01e194426d
Fix IRQ management in FreeRTOS to avoid crash and deadlock in BLE stack.
2021-02-14 14:42:30 +01:00
Jean-François Milants
2922b26121
Remove debug variable.
2021-02-14 14:30:34 +01:00
Jean-François Milants
07a0d7cf2d
Merge branch 'jlukanc1-upstream-dev' into develop
2021-02-14 14:19:46 +01:00
Jean-François Milants
5fdfb2112e
Fix merge conflict.
2021-02-14 14:19:30 +01:00
Jean-François Milants
6420885abb
Set version to 0.12.1
2021-02-07 18:09:53 +01:00
Jean-François Milants
4918524550
Fix memory leak in timer management in port layer of Nimble.
2021-02-07 18:09:19 +01:00
Jean-François Milants
ee430fe5a9
Merge branch 'update-nimble-1_3-master' into develop
2021-02-04 17:55:35 +01:00
Jean-François Milants
16ce5bbb75
Set version to 0.12..0
2021-02-04 17:33:22 +01:00
Jean-François Milants
5016e0143f
Increase FreeRTOS heap size and re-enable heart rate task. New Nimble probably uses more memory than before.
2021-02-03 20:28:41 +01:00
Jean-François Milants
d90b7274fa
Update to nimble 1.3 master branch commit 82153e744833821e20e9a8b0d61c38b2b0dbcfe1
...
WARNING : heartbeat task is disabled!
2021-02-02 22:09:00 +01:00
Jean-François Milants
740b3d7b58
Add new cmake option to disable the generation of DFU file (which needs adafruit-nrfutil on the build machine) : BUILD_DFU (disabled by default, enabled in docker build).
2021-02-01 21:07:53 +01:00
Jean-François Milants
51ff9d5e7b
Normalize all the line endings
2021-01-31 20:50:04 +01:00
Jean-François Milants
d2bb209d7f
Remove BLE debug code
2021-01-31 19:51:36 +01:00
Jean-François Milants
25f35c7d0e
Generate pinetime-recovery : a light version of InfiniTime design to be used 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-26 20:31:45 +01:00
Jean-François Milants
3d1881c5ab
Revert invalid changes in Navigation.h and add missing changes in Notifications.h.
2021-01-24 17:27:48 +01:00
Jean-François Milants
219bafb01a
Handle call notification the same way than other notifications.
...
Display the call notifications in the Notification app, with buttons to accept/reject the call.
2021-01-24 17:22:39 +01:00
Jean-François Milants
0a169b15f1
Upgrade feature list in main README.md file.
2021-01-23 21:05:37 +01:00
Jean-François Milants
84b509ed95
Set version to 0.11.0
2021-01-23 17:39:53 +01:00
Jean-François Milants
6d85139387
Merge branch 'piggz-nav' into develop
2021-01-20 21:34:21 +01:00
Jean-François Milants
522a1eb0be
Merge branch piggz/nav into develop:
...
- fix conflict
- add a icon for the navigation app.
2021-01-20 21:34:09 +01:00
Jean-François Milants
ba03372f3b
Music UUID must start with 00000000 instead of 00010000 (copy/paste error)
2021-01-19 21:38:53 +01:00
Jean-François Milants
ccbe2e8e1b
Adapt the UUID of Music service according to new guidelines.
2021-01-19 21:27:44 +01:00
Jean-François Milants
54d437adb8
Add guideline to chose the UUID of custom BLE services in docs.
2021-01-19 21:25:57 +01:00
Jean-François Milants
39d9fc2053
Fix bug in animation management for lv_label
2021-01-17 18:25:22 +01:00
Jean-François Milants
68674cec53
Add heart rate BLE service.
2021-01-17 16:34:14 +01:00
Jean-François Milants
3a3a14115a
Add License/copyright info in HR related files.
2021-01-17 16:33:45 +01:00
Jean-François Milants
04063cf0af
HR Sensor : Add start/stop button to the HeartRate app (the HR sensors stays ON when the app is closed), display the HR value on the Clock app.
2021-01-17 10:39:46 +01:00
Jean-François Milants
c82c22650c
HR Sensor : do not go to sleep when the HR app is running.
2021-01-10 22:02:21 +01:00
Jean-François Milants
1a582815ba
First implementation of the HR sensor using 100% foss code (ported from waspos)
2021-01-10 17:57:26 +01:00
Jean-François Milants
50ae0ae5e0
Set version to 0.10.0.
2021-01-04 19:56:01 +01:00
Jean-François Milants
e0082f0ae3
Rename Pinetime in InfiniTime in sysinfo app.
2021-01-02 21:23:40 +01:00
JF
83d1bdd03c
Merge branch 'develop' of https://github.com/JF002/Pinetime into develop
2020-11-20 18:37:36 +01:00
JF
a205509cbe
Add new Getting started doc.
2020-11-20 18:36:39 +01:00
JF
f0e1f98823
Increase timeout of DFU characteristic discovery to fix failed attempts to OTA with dfu.py.
2020-11-08 11:35:15 +01:00
JF
29f8074fcb
Refactoring of BLE service discovery : it is now implemented into the classes of the services.
2020-10-29 16:06:01 +01:00
JF
f90f2254f5
Reset BLE services on disconnect, do not start advertising if a connection is already established.
2020-10-28 18:23:09 +01:00
JF
7de43a1660
Fix conflicts
2020-10-27 21:55:18 +01:00
JF
c5bf09d21b
Set version to 0.9.0
2020-10-27 20:00:06 +01:00
JF
8a8c8aa863
Handle error code when calling TwiMaster::Read().
2020-10-27 19:46:51 +01:00
JF
1bb2eb9dcd
Disable sleep mode on the SPI NOR Flash when the version is unknown. This is 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-27 19:38:45 +01:00
JF
2f710d06f3
Workaround for bug https://github.com/JF002/Pinetime/issues/79 until a better fix is found.
...
When the driver is stuck in an infinite loop for more than ~2.5ms, the TWI device is re-init and the transaction is retried.
Read() and Write() return an error code.
2020-10-23 22:25:37 +02:00
JF
5983e33b8d
Notifications : Replace the label "notificationNr/notificationNb" by a grey border on the bottom that is displayed when there are other notifications to available.
2020-10-22 15:39:20 +02:00
JF
07b6812f61
Notifications : Fix copy when the messages is spread across multiple os_mbuf.
2020-10-22 10:43:42 +02:00
JF
cabf1168d4
Notifications : Fix display of notification index/number.
2020-10-21 22:15:02 +02:00
JF
440ae412b9
Increase max size of notification message to 100 char.
...
Fix bug in message handling that would ignore the last character of the notification.
2020-10-21 17:31:56 +02:00
JF
ef5670c7e0
Integrate new notification UI with notifications coming from BLE
2020-10-20 20:57:39 +02:00