Commit Graph
97 Commits
Author SHA1 Message Date
wojtekrzepeckiandWojtek Rzepecki be057d28d4 [EGD 4449] display backlight (#1120)
* [EGD-4449] Added fsl drivers for pwm

* [EGD-4449] Added sketch of cpp wrapper for PWM driver

* [EGD-4449] First configuration of pwm

* [EGD-4449] Pin Mux config added

* [EGD-4449] Finalized basic configuration

* [EGD-4449] Added layer of eink frontlight control

* [EGD-4449] Added to worker event

* [EGD-4449] Added getter for brightness level

* [EGD-4449] Added mutex and clamp

* [EGD-4449] First working PWM driver configuration

* [EGD-4449] More minimalistic interface

* [EGD-4449] Cleaning and refactoring

* [EGD-4449] Connected to message system

* [EGD-4449] Added gamma correction

* [EGD-4449] PWM Start/Stop logic configuration

* [EGD-4449] Linux target file added

* [EGD-4449] Minor refactorings

* [EGD-4449] Branch style fix

* [EGD-4449] PR comments pt 1

* [EGD-4449] PR comments pt 2

* [EGD-4449] branch style fix

* [EGD-4449] PR pt3 - messages change

* [EGD-4449] Minor change

* [EGD-4449] BrightnessLevel type added

* [EGD-4449] Moved processing to EventManager

* [EGD-4449] 1-5 levels to percentage

* [EGD-4449] Fix style

Co-authored-by: Wojtek Rzepecki <wojtek.rzepecki@mudita.com>
2020-12-02 16:29:03 +01:00
7e568d3c95 [EGD-4175] keyboard backlight (#1082)
* [EGD-4483] fix for put_64 in libmtp

* [EGD-4175] Added cpp to cmake script

* [EGD-4175] Rename to keypad_backlight and first test

* [EGD-4175] First working setup

* [EGD-4175] Remaking the interface

* [EGD-4175] Added class to event manager

* [EGD-4175] Cleaning

* [EGD-4175] Added linux target file

* [EGD-4175] Added missing deinit

* [EGD-4175] cleanup

* [EGD-4175] Added check state function

* [EGD-4175] Simpler interface

* [EGD-4175] Linux target file adjustment

* [EGD-4175] Cleanup ..

* [EGD-4175] Style check fail repair

* [EGD-4175] Another style check fix

* [EGD-4175] Applying style branch fix

* [EGD-4175] Red<->Green exchange

* [EGD-4175] PR comments pt1

* [EGD-4175] PR comments pt2

* [EGD-4175] PR comments pt3

* [EGD-4175] Another style check fix

* [EGD-4175] next PR comments

* [EGD-4175] New cpp file for evm, namespaces fix

* [EGD-4175] Last pr cleaning

* [EGD-4175] Yet another style check fix...

* [EGD-4175] Final fixes from pr

Co-authored-by: Roman Kubiak <roman.kubiak@mudita.com>
Co-authored-by: Wojtek Rzepecki <wojtek.rzepecki@mudita.com>
2020-11-30 09:25:11 +01:00
Bartosz CichockiandSP2FET 50f28e8f19 [EGD-4270] updated test API, added sending message case in test harness (#1042)
[EGD-4270] build fix for GCC 10

Co-authored-by: SP2FET <bartosz.cichocki@mudita.com>
2020-11-19 13:02:06 +01:00
Radoslaw Wicik b117704345 [EGD-4219] Convert service-evtmgr and service-lwip to library 2020-11-18 10:09:02 +01:00
Radoslaw Wicik 47c817cf15 [EGD-4218] Convert service-desktop to library 2020-11-16 16:04:15 +01:00
Radoslaw Wicik 998ceac48e [EGD-4217] Convert service-db to library 2020-11-13 12:18:33 +01:00
Radoslaw Wicik 945e39df21 [EGD-4216] Convert service-cellular to library 2020-11-10 13:35:12 +01:00
Radoslaw Wicik 4bdfb00de7 [EGD-4214] Convert service audio to library 2020-11-09 11:56:19 +01:00
Piotr Tanski 22102c4ba5 [EGD-4200] Message handling refactored. (#974) 2020-11-06 15:24:59 +01:00
Bartosz CichockiandSP2FET d5baec3837 [EGD-4211] moved test harness into service-desktop (#945)
Co-authored-by: SP2FET <bartosz.cichocki@mudita.com>
2020-11-05 13:37:34 +01:00
Bartosz CichockiandSP2FET f16d30222c [EGD-4191] added keyReleased handling from service-desktop (#930)
Co-authored-by: SP2FET <bartosz.cichocki@mudita.com>
2020-11-02 20:08:05 +01:00
Hubert Chrzaniuk a607871f76 [EGD-3839] Cellular - get time zone (#903) 2020-10-29 10:41:34 +01:00
Radosław Wicik d5de12f7ce [EGD-3852] clean include in service (#928) 2020-10-28 15:19:24 +01:00
Piotr Tanski dd50838789 [EGD-4051] Based application manager app switching on application stack. (#858)
* [EGD-4051] Based application manager app switching on application stack.

* [EGD-4051] Application manager thorough refactor.
2020-10-23 15:45:58 +02:00
Bartosz CichockiandSP2FET 061479780b [EGD-4011] added BT audio device with A2DP playback (#870)
Co-authored-by: SP2FET <bartosz.cichocki@mudita.com>
2020-10-22 09:59:13 +02:00
Radoslaw Wicik 2276ceed67 [EGD-3743] Update copyrights in fies 2020-10-20 12:55:10 +02:00
Maciej Gibowicz d5b0283a0c [EGD-4038] handling incoming calls and sms in sleep mode (#819) 2020-10-19 13:25:39 +02:00
Marcin Smoczyński ffef55fb3c [EGD-4093] fix crash on simulator exit (#839)
The event worker was closed twice by the Event Manager which resulted
in crash.
2020-10-15 11:37:19 +02:00
Hubert Chrzaniuk ebcef7a692 [EGD-4054] Audio API for setting stream parameters (#826) 2020-10-15 09:27:15 +02:00
Hubert Chrzaniuk 9c7e4139db [EGD-3784] Add service audio non blocking API (#789) 2020-10-08 10:15:46 +02:00
kkleczkowskiandKuba Kleczkowski 330c57e1d0 Egd 3259 (#781)
* [EGD-3259] Updating RTC time from network time.

* [EGD-3259] Updated changelog.

* [EGD-3259] Missing files.

* [EGD-3259] Time updaten notification.

* [EGD3259] Fixed SET_TIME_ZONE_REPORTING command.

* [EGD3259] SET_TIME_ZONE_REPORTING fixed properly.

* [EGD-3259] Commands added to factory.

* [EGD-3259] Fixes after rebase.

* [EGD-3259] Style fix.

* [EGD-3259] PR applied.

* [EGD-3259] PR applied again.

Co-authored-by: Kuba Kleczkowski <dd>
2020-10-07 15:33:46 +02:00
Marcin Smoczyński c74e7577c7 [EGD-3457] sys: improve workers destroying (#753)
Implement termination of worker threads. To achieve the goal so called
control queue has been introduced which is handled in Worker base class.
Once worker thread receives stop message it tries to kill itself. It is
possible to join a worker thread before deinit know thanks to a
semaphore given before thread termination.

Some improvements to the interface and implementation has been made
including state sanity checks. It is assumed that only service that owns
the worker is allowed to stop it, which allows not to consider code
reentrancy.

Worker destroying procedure has been updated in services that already
own workers.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-09-30 15:24:57 +02:00
Mateusz Grzywacz 8225e51d7e [EGD-3501] torch - toggle colour temperatures. order: warm, cold, off 2020-08-13 12:26:28 +02:00
Szymon Mroczek 67e234eb8e [EGD-3427] AudioServiceAPI::RoutingHeadset is now called from EventManager. Calling in WorkerEvent caused response message loses and timeouts on the Bus. 2020-08-07 11:32:05 +02:00
Szymon Mroczek 67d0ece072 [EGD-3427] WorkerQueueInfo added for headset module 2020-08-07 11:32:05 +02:00
Mateusz Grzywacz 258ef22228 [EGD-3482] torch sevm - glue layer 2020-08-06 12:46:17 +02:00
Mateusz Grzywacz 57b33ef1d5 [EGD-3449] torch implementation 2020-08-04 12:24:59 +02:00
pholat 23df384c55 EGD-3087 SMS Search implemented (#374)
* EGD-3087 WIP adding SMS Querry

* EGD-3087 Added query virtual interface on Service top layer

Service shouldn't implement query logic and should be proxying that.

additionally:
- small fixes in includes
- shared service db name same way as apps and event manager

* EGD-3087 Query - want to work on interface not on db

* EGD-3087 Query gluecode works fine. Our query in SMS search calls getBySMSQuery

Changes cut off before any potential orm interface layer

* EGD-3087 WIP Interface in use

* EGD-3087 Query for SMS search works as designed

* EGD-3087 Query results should be on screen

* EGD-3087 BUG workaround - need to deep refresh display to show data

* EGD-3087 Searching for text from input works fine

* EGD-3087 Showing results / or empty results depending on query

* EGD-3087 Pre PR fixups

* EGD-3087 Empty search - getting back to prewious window ignore current

* EGD-3087 PR applied

* EGD-3087 PR - style fixed

* EGD-3087 Review - DB ListView handling moved to separate function

* EGD-3087 Workaround: crash on use after free fix

* EGD-3087 PR stylistic changes

* EGD-3087 PR cleanup applied

* EGD-3087 Added test for Query interface

* EGD-3087 renamed getByQuery to getQuery & finished tests

* EGD-3087 Post rebase fixup

* EGD-3087 PR - moved ListView request part to separate function

* EGD-3087 PR Fixups

* EGD-3087 Post rebase style fix

* EGD-3087 Added variable for DB service stack & const to getter function
2020-05-27 13:49:50 +02:00
kkleczkowskiandKuba Kleczkowski b70ad6c5fc Egd 3196 small cellular refactor (#365)
* [EGD-3196] Fixed fatals in cellular.

* [EGD-3196] Fixed sms sending.

* [EGD-3196] Fixed timeout in ConfProcedure.

* [EGD-3196] Board type moved to Event Manager.

* [EGD-3196] Event Manager API renamed.

* [EGD-3196] Misiing files.

* [EGD-3196] Fixed modem status message, return code in magnetometer driver, case in modem init procedure.

* [EGD-3196] PR suggestions applied.

* [EGD-3196] Style fix.

* [EGD-3196} GetBoardName -> c_str();

* [EGD-3196] Style fix.

* [EGD-3196] PR suggestions added.

* [EGD-3196] Style fix...

* [EGD-3196] Style fix again.

Co-authored-by: Kuba Kleczkowski <dd>
2020-05-21 16:56:24 +02:00
Kuba Kleczkowski ee3e63c281 [EGD-2911-modem-init-rework] Style fix. 2020-05-11 14:04:31 +02:00
Kuba Kleczkowski f98ca0df1a [EGD-2911-modem-init-rework] Removed empty line. 2020-05-11 14:04:31 +02:00
Kuba Kleczkowski d8a9d30c8c [EGD-2911-modem-init-rework] PR applied. 2020-05-11 14:04:31 +02:00
Kuba Kleczkowski 6ebae24abd [EGD-2911-modem-init-rework] modem init fixes (cold start) & missing Linux files/implementation 2020-05-11 14:04:31 +02:00
Kuba Kleczkowski 22a911c2ba [EGD-2911-modem-init-rework] Hardware platform discover. 2020-05-11 14:04:31 +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 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 8342d813a3 EGD-3056 Created EventManager serivce name constant in inline string 2020-04-15 16:50:19 +02:00
Adam Dobrowolski 4a61f400e7 EGD-3055 Fixed printf issues 2020-04-08 12:23:53 +02:00
Mateusz Grzywacz 13f8faef5b [EGD-3032] charger fixes - remove temp battery level polling 2020-03-26 22:08:26 +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
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
Przemyslaw Brudny 5955c358e6 Service Worker queue cleanups 2020-02-24 12:28:02 +01:00
Adam Dobrowolski 55220c45a5 [EGD-2523] Added sim card indicator on topBar 2020-02-18 07:39:16 +00: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
Adam Dobrowolski 5407355177 [EGD-2508] Pre PR cleanup 2020-01-22 08:26:20 +01:00
Adam Dobrowolski 685e4666b8 [EGD-2508] test_harness works ok for app manager debug purposes 2020-01-22 08:26:20 +01:00