Commit Graph

112 Commits

Author SHA1 Message Date
Radoslaw Wicik
9d8eff64fc [EGD-5860] Fix build packages
Merging and cleaning cmakes requred cleaning.
2021-02-26 14:20:11 +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
Piotr Tański
65119cb495 [EGD-5027] Services synchronization introduced
Dependencies between services are now supported.
2021-02-10 12:37:42 +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
Marek Niepieklo
7eebea8698 [EGD-5377] Add USB charger detection
Added USB stack support for detecting connected charger
Added i.MX RT 1051 HW configuration
Added notification to EventManager for detected charger
2021-02-04 12:51:56 +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
Mateusz Grzywacz
2844cc8349 [EGD-5277] Revert improvement in the area of eink display responsiveness
This falls back to 4-bit per pixel for all the refresh modes.
1-bit per px would be more responsive in fast modes (DU2, A2),
but long story short: grayscale half-tones dissapears after
a few seconds due to the OS.
2021-01-19 15:48:35 +01:00
Borys Jelenski
1a26cdb407 [EGD-4527] Add creating update package as CMake target
Standalone and update packages can be generated by CMake targets. During
creation of update package, the bootloader will be downloaded
and included in the package along with version information.

Additionally, a small refactor was performed since the Version.cmake
script is now used for generating both the version.hpp and version.json
files. Observervable side effects from this script have been moved to
separate scripts which are invoked at build time.
2021-01-19 14:42:30 +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
Radoslaw Wicik
b117704345 [EGD-4219] Convert service-evtmgr and service-lwip to library 2020-11-18 10:09:02 +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
Przemyslaw Brudny
e131dae68f [EGD-3743] Removed old doxygen copyright statements from project. 2020-10-20 12:55:10 +02: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
Mateusz Grzywacz
3a3c3e87ec [EGD-3449] torch - keys on Linux 2020-08-04 12:24:59 +02:00
Marcin Smoczyński
3045b9f670 build: fix linux build on 18.04
Due to an old version of gtkmm there are some warnings which we are
escalating to errors globally. Turning them off.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-07-03 12:12:18 +02:00
Marcin Smoczyński
f515671eb6 build: remove renderer service configure warning
This warning is out of date, -Wall and -Werror flags are propagating correctly.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-06-26 16:12:21 +02:00
Mateusz Grzywacz
c8c0ba82df [EGD-3292] Linux renderer colour fix 2020-06-16 21:23:25 +02:00
Radoslaw Wicik
ab650096e4 [EGD-3201] Add automatic releases 2020-06-10 13:38:51 +02:00
rkubiak01
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
Marcin Smoczyński
f7c8af86c8 renderer: disable address sanitizer
Disable address sanitizier due to a bug in sigc library which results in
false positive report in the PurePhone process.
2020-04-08 18:07:57 +02:00
Adam Dobrowolski
4a61f400e7 EGD-3055 Fixed printf issues 2020-04-08 12:23:53 +02:00
Alek-Mudita
36be49c15b Egd 3046 unexpected reset (#274)
* [EGD-3046] fix HF handler
added boot reason printing and clearing

* [EGD-3046] added prining of  GPR_5 on checking boot reason

* [EGD-3046] added halt if debugging

* [EGD-3046] halt if debugging only in exit

* [EGD-3046] rename

* [EGD-3046] added DEBUG check

* [EGD-3046] fixed formatting

* [EGD-3046] fixed includes
2020-04-01 16:34:56 +02:00
pholat
91e05fcf65 fix gtk & FileAttributes 2020-03-25 15:28:52 +01:00
Przemyslaw Brudny
c0822b6658 [EDG-3019] Moved log.hpp and debug.hpp into main PurePhone repo 2020-03-24 15:55:32 +01:00
Adam Dobrowolski
abe6813ce6 EGD-3026 Wall Werror and Wextra added to project 2020-03-24 14:17:12 +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
Radoslaw Wicik
0400e5c18b [EGD-2886] Unify and repair build system. 2020-02-19 14:55:14 +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
8d0b50735f [feature] add separate folders in CMake conf & change type of a variable. rebuild.sh updated & docs on separate build folders 2020-02-03 14:12:47 +01: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
Adam Dobrowolski
8c2622b2c2 Bluetooth compiles and starts on Purephone and Linux fine 2019-10-14 15:32:06 +02: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