Commit Graph

42 Commits

Author SHA1 Message Date
Marcin Smoczyński
57874cab33 [BH-912] Improve sys module structure
Improve structure of the module sys. Problems within this module
prevents from linking others.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-24 10:01:19 +02:00
Marcin Smoczyński
bd90e57516 [BH-907] Split utils module into components
Split module-utils into smaller components for better dependency
management. Fix many dependencies throughout the project.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-23 15:14:40 +02:00
Marcin Smoczyński
958ce4906c [BH-897] Split module-sys
Split system module to better manage dependencies between system
components.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-21 16:11:59 +02:00
Lukasz Skrzypczak
2911b6b4a1 [BH-378] PR changes
PR changes - mainly includes
2021-06-08 12:24:29 +02:00
Lukasz Skrzypczak
4ec617b158 [BH-378] Style fixed
Fixed style
2021-06-08 12:24:29 +02:00
Lukasz Skrzypczak
7fee0d9cfb [BH-378] Utils move log to library
Moved log to separate library
2021-06-08 12:24:29 +02:00
Adam Dobrowolski
e2d2116419 [EGD-6617] Added option to disconnect handler in service
Till now we were only able to connect handlers to services, but
disconnect was not possible. With nullptr handler system would crash
2021-04-26 10:45:16 +02:00
Przemyslaw Brudny
3408fafa8f [EGD-6066] Removed Message default constructor
Forced each message to have declared type as parts of Bus logic
depends on it and previously we encountered undefined
behaviours. Added tests and messages validators.
2021-03-29 22:37:09 +02:00
Piotr Tański
efef7dcf7f [EGD-6111] Timers refactored
Deep refactor of system timers.
2021-03-19 14:09:35 +01:00
Adam Dobrowolski
ad136fbb84 [EGD-6078] Limited logs from Settings and Service messages
* Right now there is too much spam. These logs can be enabled with
  build flag
* Fixed clang-tidy warnings on Settings
2021-03-09 12:57:47 +01:00
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
Adam Dobrowolski
30fde886e4 [EGD-5326] Fixed AT commands harness utility
We can now use test harness to send and check at commands
2021-03-02 14:49:50 +01:00
Borys Jelenski
d9ae779a37 [EGD-5503] Add watchdog implementation
The system watchdog monitors whether there is message traffic
on the Bus. If no message was sent for an extended period of time,
a reset will occur. It should also protect against system-wide hangs.

On Linux, watchdog is simulated by a FreeRTOS task that will call exit
on timeout.
2021-02-19 11:32:12 +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
Piotr Tanski
4e0f72e70a [EGD-4696] Several stabilization patches. (#1192) 2020-12-15 15:30:13 +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
Radoslaw Wicik
2276ceed67 [EGD-3743] Update copyrights in fies 2020-10-20 12:55:10 +02:00
Piotr Tanski
f5aec0444a [EGD-3838] Introduced a meditation progress bar with simple implementation of meditation application. (#783) 2020-10-09 14:14:40 +02:00
Hubert Chrzaniuk
9c7e4139db [EGD-3784] Add service audio non blocking API (#789) 2020-10-08 10:15:46 +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
Radoslaw Wicik
733a7c8d6b [EGD-3230] Increase Total HEAP_SIZE so Linux implementatio of CelularService fit memory 2020-05-26 11:46:49 +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
32f51fd796 EGD-3056 PR review applied 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
62d8f4c094 EGD-3056 Improved events logs 2020-04-15 16:50:19 +02:00
Adam Dobrowolski
19c1f66733 EGD-3056 Messages debugging print edbug.hpp option added 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
106220d75b [FIX] '%s' check build-linux fail fixed 2020-04-08 14:00:45 +02:00
Adam Dobrowolski
4a61f400e7 EGD-3055 Fixed printf issues 2020-04-08 12:23:53 +02: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
pholat
2b275d7951 [EGD-2571] added GSM command sending & small refactor
* added GSM AT commands on 'Commands' channel
* refactor (for better console/script) handling
* docs update
* GSM request asynch send back on uart to requester
2020-02-11 08:41:26 +00:00
Mateusz Grzywacz
aeaf39191b [EGD-2368] moved all AppTimer objects definitions to init list, to get rid of default AppTimer() ctor 2020-01-02 14:53:34 +01:00
Mateusz Grzywacz
e2cafcee70 [EGD-2368] changes requested in a PR 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
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
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
0e97e07fef Fixed problems with launching desktop/call apps.
Added logs to Service.cpp
2019-07-09 14:19:39 +02:00
Robert Borzecki
35d15b2bc7 Added key handling logic to applications. 2019-06-26 12:34:06 +02:00
Robert Borzecki
d3235d54d7 Removed submodule 2019-05-21 23:35:00 +02:00