Commit Graph

47 Commits

Author SHA1 Message Date
Wojtek Rzepecki
243deec8d5 [EGD-4952] Added critical level check + messages 2020-12-21 10:12:05 +01:00
Piotr Tanski
4e0f72e70a [EGD-4696] Several stabilization patches. (#1192) 2020-12-15 15:30:13 +01:00
Maciej Gibowicz
9c9e921ab4 [EGD-4693] PowerManagement: CPU load measurement (#1156)
Add FreeRTOS idle tasks Run Time Statistics

This will allow to measure the CPU load
2020-12-10 17:27:54 +01:00
Mateusz Grzegorzek
9d35def14d [EGD-4477] Dump logs to a file for linux (#1081)
[EGD-4477] Implement dumping logs to a file for linux
2020-11-27 11:26:02 +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
Marcin Smoczyński
486d21af0e [EGD-4288] refactor global data (#959)
Reduce firmware size by refactoring global data defined in public
headers.

Each global variable which require runtime initialization adds
initialization code to every translation unit which includes the header
where the variable is defined and declared.
2020-11-04 18:24:39 +01:00
Radoslaw Wicik
2276ceed67 [EGD-3743] Update copyrights in fies 2020-10-20 12:55:10 +02:00
Lucjan Bryndza
0014dae259 [EGD-3854] Removing goto's from the code (#797)
It is generic cleanup task for removing all goto files

Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2020-10-08 08:58:49 +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
Marcin Smoczyński
af85469c26 [EGD-3864] main file cleanup (#761)
Remove dead code; cleanup and sort include list. Introduce config file.
2020-10-01 14:47:53 +02:00
Szymon Mroczek
24a8107168 [WIP] [EGD-3290] Add database backup feature with sqlite's VACUUM command. 2020-06-24 11:14:00 +02:00
Radoslaw Wicik
af47be76fd [EGD-3245] Add Fota Service 2020-06-10 14:38:25 +02:00
Adam Dobrowolski
2c982b3daa FIX - PowerManager not enough stack 2020-04-16 09:12:25 +02:00
Adam Dobrowolski
352074cea6 EGD-3056 Renamed subscribe to connect (following signal -> slot nomenclature) 2020-04-15 16:50:19 +02:00
Adam Dobrowolski
5b162efbd0 EGD-3056 ./config/pre-commit-check-only.hook --branch-fix applied 2020-04-15 16:50:19 +02:00
Adam Dobrowolski
ee8dbc4e7f EGD-3056 Handle reboot with watchdog, TODO's removed/updated 2020-04-15 16:50:19 +02:00
Adam Dobrowolski
b7db6a57ed EGD-3056 Added message to continue system shutdown on power plug ejection 2020-04-15 16:50:19 +02:00
Adam Dobrowolski
f529f836cf EGD-3056 Added name for SystemManager in similar way to EventManager 2020-04-15 16:50:19 +02:00
Adam Dobrowolski
2cee195e09 EGD-3056 subscribtion based execution (on typeid) added and works fine
Till now there was no clear way to register hanlder for message in
Service, with this approach one can register function/lambda handler
for Message which encurages handling messages in functions rather than
in hudge switch cases.
With aproach like this our Messages resembe something between Command
and State pattern. In state pattern `Message` would be `Event` send,
whereas Service would be `Context`.
2020-04-15 16:50:19 +02:00
Adam Dobrowolski
714b3c1e18 EGD-3056 Removed LogOutput to use LOG_... instead
LogOutput was not needed, confusing and didn't work on target
Therefore it was removed
2020-04-15 16:50:19 +02:00
Adam Dobrowolski
0d75d6ec5b EGD-3056 SystemManager - initial work on delaying reboot
* updated docs
* added PreShutdownLoop
* added c_str() for SystemManager inner state for debug
2020-04-15 16:50:19 +02:00
Marcin Smoczyński
f2eb9bb37a [EGD-2594] apps/call: add libphonenumber support
Augment handling phone numbers with libphonenumber:
 - add "as you type" formatting to phone numbers,
 - normalize phone number handling by using libphonenumber's phone
 number representation.

Clean up the code by moving application logic back to the application
and window data back to the window and reordering includes.

Application's stack size has been increased due to formatter stack
utilization level.
2020-04-08 18:23:45 +02:00
Radoslaw Wicik
a8573a404c Apply new style 2020-03-17 10:03:16 +01:00
Mateusz
0b470de378 Bugfix: gpio interrupts(power switch hold button) 2019-10-04 11:29:25 +02:00
Mateusz
6c7c622d42 WiP: Added actual poweroff procedure into system manager 2019-10-03 12:26:00 +02:00
Mateusz
a8068e4157 WiP: Removed merge conflicts, 2019-09-17 16:57:44 +02:00
Mateusz
b4f9bc6512 Merge remote-tracking branch 'origin/EGD-2078-power-manager-app-manager' into pwrmgr_impl 2019-09-17 08:48:26 +02:00
Mateusz
6c4c8b7628 WiP: Suspend/Resume tests 2019-09-17 08:45:41 +02:00
Mateusz
2785d46fde WiP: Pwrmgr implementation 2019-09-16 14:09:54 +02:00
Mateusz
b6781c47db temp cmmit 2019-09-12 10:47:02 +02:00
Mateusz
289236d863 WiP: Handling resume/suspend requests in incorrect state 2019-09-09 08:31:06 +02:00
Mateusz
a0db243599 Fix: Added missing return values 2019-09-09 07:57:54 +02:00
Mateusz
22ad981b01 WiP: Suspend/Resume procedure implementation + testing 2019-09-04 13:43:27 +02:00
Mateusz
883b8f2550 WiP: Extended sysmgr api
WiP: did some tests
2019-09-02 13:18:06 +02:00
Mateusz
8b4cf5e35a WiP: Added Suspend/Resume API 2019-08-30 10:37:51 +02:00
Mateusz
e8babd16d5 WiP: Removed unneeded WakeUp/GoSleep handlers
WiP: Added new handler - > SwitchPowerMode
2019-08-29 11:40:31 +02:00
Mateusz
79c645d8e0 Fix: CloseSystem procedure + parent/child hierarchy 2019-08-28 13:37:35 +02:00
Mateusz
d299f0916e Auto stash before merge of "EGD-2080_evtmgrdeinit" and "origin/EGD-2079_pwrmgr_services"
Fix: Service's params order
2019-08-28 10:51:48 +02:00
Mateusz
9cb988148d Revert "Merge branch 'EGD-2080_evtmgrdeinit' into origin/EGD-2079_pwrmgr_services"
This reverts commit ab0f8febed.
2019-08-28 10:02:33 +02:00
Mateusz
2f0f8fd52c Fix: SystemClose procedure 2019-08-28 08:56:41 +02:00
Mateusz
980e27623d Fix: DestroyService on Rt1051 2019-08-27 12:57:10 +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
Mateusz
1a59b7b6cb #MATI SUPER FIX, fixed async msg handling in DataReceivedHandler 2019-08-12 12:18:59 +02:00
Mati
21fff20088 WiP: small refactor in sysmgr init procedure
WiP: added filling audio buffers
2019-08-07 19:41:08 +02:00
Robert Borzecki
d3235d54d7 Removed submodule 2019-05-21 23:35:00 +02:00