Commit Graph
71 Commits
Author SHA1 Message Date
Wojtek Rzepecki ef63ee267c [EGD-5304] Add new way of system close
Unified method of closing
the system orchestrated by
system manager
2021-03-04 15:55:55 +01:00
Wojtek Rzepecki 4d20ed0971 [EGD-5967] Add blank screen when off
Present blank screen to
inform the user that phone
is off
2021-03-02 15:29:15 +01:00
Maciej-Mudita 11aa4c7ffb [EGD-5382] Add LowPower CpuSentinels
In order to synchronize the Low Power mode, the services were
immediately informed about the frequency change,
so that they can update their resources (e.g. PWM filling)
and services may request the maximum CPU frequency in order
to perform a task (e.g. screen redraw, telephone conversation)
2021-02-12 09:40:36 +01:00
Mateusz Grzywacz d98e789a8d [EGD-5193] Eink - Power off the display
The eink has to be powered off sometimes. Implement a
timer of arbitrary timeout (3,8s) to power off the
display if it's not used.
2021-02-10 23:16:51 +01:00
Maciej-Mudita ec56afc933 [EGD-5381] Add Low Power Drivers
Peripherals clock synchronization dependent on PLL2
2021-02-10 08:46:13 +01:00
Piotr Tański bc4d32c7d8 [EGD-5158] Change access to the bus methods
The bus is now accessible only via Service object.
2021-02-08 16:56:42 +01:00
Mateusz Grzywacz 4f9cd7a11f [EGD-5394] Eink - reuse temperature for waveforms
Do not waste time right before refresh of the eink
display to measure new temperature. Assume that
the measurement from early frame prepare stage is valid.
It has only to be valid for only <time of rendering the frame>,
which is less than a 1000ms.
2021-01-29 15:05:29 +01:00
Mateusz Grzywacz 65023ca120 [EGD-5256] Eink display - speed up in some scenarios
Causes slight speed-up in specific scenarios
(changing windows, also: then rapid navigation)
also: on a regular basis (shaky temperature measumt.)
2021-01-22 20:03:26 +01:00
Piotr Tański 3f29c30bed [EGD-4968] Change GUI service to optimize flow and memory management
Gui and Eink services refactor.
Displaying frames performance optimization.
Critical resources management.
2021-01-08 16:36:12 +01:00
Piotr Tański 402a741637 [EGD-5026] Change Eink service code structure
Refactor.
2021-01-08 16:36:12 +01:00
jimmorrisson 6ce0dc4df3 [EGD-4751] Change: new filesystem handling implementation in module services. (#1151)
Due to vfs deprecation there is need to remove all vfs calls from code. This PR covers module services. It also contains minor fixes in module-services.
2020-12-10 21:04:51 +01:00
Piotr Tanski 22102c4ba5 [EGD-4200] Message handling refactored. (#974) 2020-11-06 15:24:59 +01:00
Adam 8bab7f0031 EGD-3585 ServiceGUI and ServiceEink initial cleanup (#953)
* EGD-3585 SerwiceGUI and ServiceEink initial cleanup

* moved code to one function per message handling
* removed dead code from comments
* added Service.cpp demangling to debug messages for clear output
* added Response value to return messages to `connect()`
2020-11-03 17:27:00 +01:00
Adam 0422d48f46 EGD-4178 EINK inverted mode (#915)
* EGD-4178 Added simplistic eink invert mode option
2020-10-30 10:37:56 +01:00
Radosław Wicik b1736f63ca [EGD-3852] convert to libs services: gui, eink (#933) 2020-10-29 13:06:32 +01:00
Radosław Wicik d5de12f7ce [EGD-3852] clean include in service (#928) 2020-10-28 15:19:24 +01:00
Radoslaw Wicik 2276ceed67 [EGD-3743] Update copyrights in fies 2020-10-20 12:55:10 +02:00
Adam f5f27d642f EGD-2955 EGD-3588 Timers fully refactored & updated (#721)
* Timers now are Application thread safe
* Timers now have consistent API independend of Application (no more c style timers)
* Timers can have either: callback or override onTimer() method - this
  way we can create more complicated timers or just use existing ones
* gui::Timer added via adapter class GuiTimer to decouple sys::Timer
  with gui::Timer
* Fixed race in wrapper
* Updated docs
* fixed using std and cpp_freertos and DataReceivedHandler hidden in Application.hpp
2020-10-02 14:04:57 +02:00
rkubiak01andAlek Rudnik 7cac882c7a [2306] VFS: support .boot.ini and "current" and "previous" os types (#315)
* VFS: support .boot.ini and "current" and "previous" os types

* fixes for first batch of comments
- moved crc32 functions to a seperate file
- changed naming of constant with _
- removed one magic number
- crc methods now cross platform

* using smart pointer for buffer management

* created a simple USER_FILE macro for database names

* removed commented-out code

* style fixes

* Updated crc32 version

* Update module-vfs/vfs-utils.cpp

Co-Authored-By: Alek Rudnik <54846206+alekrudnik@users.noreply.github.com>

* Update module-vfs/vfs-utils.cpp

Co-Authored-By: Alek Rudnik <54846206+alekrudnik@users.noreply.github.com>

* renamed USER_FILE to USER_PATH macro, this was also
bromen and was returning incorrect paths, std::filesystem::path
behavior is causing these issues.

* VFS: remove method changed

* fixed path for assets copy

* UNITTEST: vfs test fixed

* VFS: changed computeCRC32 return type to void

* Max supported partition to 2 (was 1)

* EOL in vfs.cpp

* nullptr check in computeCRC32
include for log.hpp fixed

* flash_eMMC merged properly

* CRC32 commit update

* testBuild

* fix newline at start of smsdb.cpp
removed test from cmake

* no user/ folder on the root of emmc causes sqlite3 to fault
this adds a create empty user call for rt1051

* flash script fixes
- do not use build-*/sys
- common.sh contains a static list of iles that land on the flash

Co-authored-by: Alek Rudnik <54846206+alekrudnik@users.noreply.github.com>
2020-05-08 10:27:17 +02:00
Adam Dobrowolski 4a61f400e7 EGD-3055 Fixed printf issues 2020-04-08 12:23:53 +02:00
Przemyslaw Brudny c0822b6658 [EDG-3019] Moved log.hpp and debug.hpp into main PurePhone repo 2020-03-24 15:55:32 +01:00
Przemyslaw Brudny 8f92715951 [EDG-3019] Segger utils moved to git submodule 2020-03-23 18:37:37 +01:00
Radoslaw Wicik a8573a404c Apply new style 2020-03-17 10:03:16 +01:00
Adam Dobrowolski ae915f3512 [EGD-2571] Clenup: removed MessageType static_casts, fixed debug.h defines. Added GPIO event 2020-02-12 13:31:13 +00:00
Mateusz Grzywacz 1299cd7638 [Mati Eink fix] unnecesary powering off and and on eink aftery *every* frame redraw 2020-01-03 11:01:48 +01:00
Mateusz Grzywacz 133bc6689b [fix eink hang linux mati] requires timer tick handler fix 2020-01-02 14:53:34 +01:00
Mateusz Grzywacz c09df40905 [EGD-2368] Approach 1: list of timers 2020-01-02 14:53:34 +01:00
Robert Borzecki 6e4bf06046 Power off screen handling, contact verification functions. 2019-09-23 12:51:07 +02:00
Robert Borzecki 839ad0d301 Disabled logs, disabled blinking on key press while unlocking. 2019-09-20 11:57:07 +02:00
Robert Borzecki 46c1abe92e Fixed bottom-up navigation in phonebook. 2019-09-19 19:54:25 +02:00
Robert Borzecki 2d6d59a4bb WIP: resume after suspend. 2019-09-19 11:51:55 +02:00
Robert Borzecki 071b2e08f4 Mati's fixes. 2019-09-19 08:43:27 +02:00
Robert Borzecki 3ba8374f69 WIP: crash on resume 2019-09-19 08:10:25 +02:00
Robert Borzecki d27047c23c Added flow for suspending eink and gui services. 2019-09-18 18:59:27 +02:00
Robert Borzecki 70e291e5d5 Added acquireing data for phonebook model. 2019-09-12 12:18:44 +02:00
Robert Borzecki 9782aa7b29 Added simple support for power management. 2019-09-09 12:29:08 +02:00
Robert Borzecki 857b8a4bc3 LowPowerMode magic. 2019-09-09 10:09:55 +02:00
Robert Borzecki 74e21f57d4 Added stop timer for eink while going to suspend mode. 2019-09-09 08:51:01 +02:00
Robert Borzecki f855c7f5d0 Merge branch 'EGD-2079_pwrmgr_services' of github.com:muditacom/PurePhone into EGD-2078-power-manager-app-manager 2019-09-06 07:21:43 +02:00
Mateusz 22ad981b01 WiP: Suspend/Resume procedure implementation + testing 2019-09-04 13:43:27 +02:00
Mateusz 08638faac3 WiP: Update services with powermode handler implementation 2019-09-02 14:09:06 +02:00
Robert Borzecki 1ef83167af Added screen locking after lock timeout. 2019-09-02 09:28:11 +02:00
Mateusz e8babd16d5 WiP: Removed unneeded WakeUp/GoSleep handlers
WiP: Added new handler - > SwitchPowerMode
2019-08-29 11:40:31 +02:00
Robert Borzecki 9a815a2cfc Updated Application and Launcher templates. 2019-08-28 12:21:18 +02:00
Robert Borzecki 05bdd66b13 Merge branch 'EGD-2079_pwrmgr_services' of github.com:muditacom/PurePhone into EGD-2078-power-manager-app-manager 2019-08-28 09:01:05 +02:00
Robert Borzecki fb2ceca1d4 Added call to eink's power down function. 2019-08-28 09:00:25 +02:00
Mateusz 2f0f8fd52c Fix: SystemClose procedure 2019-08-28 08:56:41 +02:00
Robert Borzecki f26aba9fc6 Added gui resource deallocation.
Added eink power down after 3 seconds.
2019-08-27 14:39:08 +02:00
Robert Borzecki 59d6522dcd Merge branch 'master' of github.com:muditacom/PurePhone into EGD-2015_database_model 2019-08-26 12:32:25 +02:00
Mati 9c1f919e2e Services: Added parent/child feature
Fix: Raised ApplicationSettings stack to 4kB
Fix: eINK deep refresh fix
2019-08-26 09:31:50 +02:00