Commit Graph

53 Commits

Author SHA1 Message Date
Marcin Smoczyński
e9fae2e321 [EGD-5869] Add puregdb
Add misc-tools repo containing:
 - linker map file analyzer (firmware size analyzer)
 - gdb's plugin which checks system memory health

Automatically load puregdb at startup of a debug session.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-02-24 12:49:53 +01:00
Wiktor S. Ovalle Correa
3b141041e9 [EGD-5737] Merge master into experimental
Keep experimental up to date with changes from master
2021-02-17 17:09:37 +01:00
Lucjan Bryndza
a53bd826c6 [EGD-5737] Merge master into experimental
Keep experimental up to date with changes from master
2021-02-17 17:08:06 +01:00
Piotr Tański
9c922727d2 [EGD-5462] SML library introduced
Introduced SML library for further state machines development.
2021-01-28 14:37:25 +01:00
Marek Niepieklo
6fbd2397cd [EGD-5053] Change pick up fix for USB full spedd
Piecked up following fixes for UBS submodule:
- [EGD-5052] Fix for USB Full Speed
- [EGD-5214] Change USB_DEVICE_MAX_POWER to 500mA
- [EGD-5191] Fix crash during USB deinitialization
2021-01-22 16:45:41 +01:00
Lucjan Bryndza
3780b4844c [EGD-5074] Add native fscore for emulator
This is a first commit when the emulator uses
the new filesystem core.

libiosyscall library read environment variable

IOSYSCALS_REDIRECT_TO_IMAGE

When  IOSYSCALS_REDIRECT_TO_IMAGE=1 all syscalls
are redirected to the image. If env is not defined
or set to 0 only paths are translated and redirected
to the native linux syscalls

[EGD-5074] Remove free rtox library

Remove unneeded fat library from the freertos

[EGD-5074] Fix freertos mutex as unique

Add freertos mutex in the unique_ptr for avoid inclusion of the
freertos.h

[EGD-5074] Remove frertos-fat submodule

Remove uneeded fat freertos submodule

[EGD-5074] Add handle types in the vfs_subsystem

Add handle types in the vfs subsystem

[EGD-5074] Add submodule for hashmap

Add submodule for hashmap

[EGD-5074] Add support for dirent

Add support for dirent for new filesystem

[EGD-5074] Fix mutex class

Remove mutex in header

[EGD-5074] Remove old vfs from file indexer

File indexer should be fixed for use new vfs

[EGD-5074] Fix unit test vfs

Remove unit tests vfs for clas

[EGD-5074] Add Posix implementation with new fs

Add posix implementation with new fs core

[EGD-5074] Fix stdio syscalls

Fix all stdio syscalls

[EGD-5074] Fix iosyscalls scan family

Fix iosyscalls scan family

[EGD-5074] Fix native API

Fix native api

Work in progress some minor fixes

[EGD-5074] Fix lib stdio

Fix lib stdio

[EGD-5074] fix lseek return value in fat driver

Fix lseek return value in the fat driver

[EGD-5074]  Unit test fix

Unittest fixes

[EGD-5074] Emulator syscalls

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-01-04 16:04:33 +01:00
Lucjan Bryndza
58cc0a1847 [EGD-4760] littlefs host tools (#1161)
* [EGD-4760] Remove littlefs sumbmodule

* [EGD-4760] littlefs submodule in new location

* [EGD-4760] Littlefs host tools inital build

* [EGD-4760] Find fdisk

* [EGD-4760] LFS Cmake file changed

* [EGD-4760] GenLittlefs work in progress

* [EGD-4760] Parse args in the tool

* [EGD-4760] Inital version of genlittlefs

* [EGD-4760] genlittle fs seams to be working

It is a first working release for genlittle fs

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD-4760] genlittle Speed improvement

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD-4760] genlittlefs verbose flag

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD-4760] genlittlefs fix file support

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD-4760] Check if it is a littlefs

* [EGD-4760] Genlittle fs image

* [EGD-4760] Gen image fixed

* [EGD-4760] Final version of genlittlefs

* [EGD-4760] Rename littlefs rootdir.

* [EGD-4760] Code review round #1 fixes
2020-12-15 12:37:59 +01:00
Lucjan Bryndza
bfd50c5886 [EGD-4762] Add littlefs library (#1152)
Create library with littlefs filesystem
2020-12-07 16:17:26 +01:00
Lucjan Bryndza
55ab66e55a [EGD-4499] Create drivers for the VFS (#1128)
* GId modules updated

* Remove module

* Gitmodules update

* [EGD-4499] Global module VFS

* [EGD-4499] vfat driver in progress + fsfat

* [EGD-4499] fffat glue to our implementation.

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD-4498] Glue logic between ff_fat and disk mgr.

* [EGD-4499] Mount and unmount fat_fs.

* [EGD-4499] Filesystem mount seams to be working

* [EGD-4499] Missing umount volume removal

* [EGD-4499] Code review vol 1

* [EGD-4499] Missing erase element from map

* [EGD-4499] Missing mount umount

* [EGD-4261] Mount and unmount tests

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD-4499] Initial filesystem implementation

Iterate over directories are not completed yet

* [EGD-4261] unit test fix

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD-4499] Stat vfs for RT1051

* [EGD-4499] Small fix in the seek

* [EGD-4499] Directory handle fix

* [EGD4499] Completed ffat implementation

It is already completed vfat driver for vfs core
but it is not tested yet.

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD4499] Code review part #1

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD4499] Remove double dynamic allocation of mount point

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD4499] Partition out of range fix

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD-4499] Handle leak fix

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD-4499] VFS vfat completed.

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD-4499] File descriptors from 3 according to POSIX std

0,1,2 fds are reserved for stdin,stdout,stderr

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2020-12-07 14:18:03 +01:00
Radosław Wicik
ff7af9601a [EGD-4313] Fix usb_stack submodule path (#969) 2020-11-05 10:40:09 +01:00
Roman Kubiak
eb1f8206b4 [EGD-3688] usb stack as an external module (#906)
* [EGD-3688] usb stack as an external module
removed old usb code

* [EGD-3688] linux fix

* [EGD-3688] fixes for new USB code

* [EGD-3688] updated submodule
2020-11-04 18:10:34 +01:00
Bartosz Cichocki
ac2c954d93 [EGD-3772] added HSP sink and source (#918)
Added HSP playback to the BT device and stream of the BT device microphone back to the OS

Co-authored-by: SP2FET <bartosz.cichocki@mudita.com>
2020-11-03 14:21:50 +01:00
Radosław Wicik
c43878a84d [EGD-4269] fix taglib module paths (#948) 2020-11-02 13:34:23 +01:00
Lucjan Bryndza
0a407135e5 [EGD-4181] move taglib from audio (#932)
* [EGD-4181] Move submodule taglib to utils

* [EGD-4181] LibTag moved to util lib.

Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2020-10-30 12:41:46 +01:00
Radosław Wicik
a59fe8f0fb [EGD-4162] fix fat module (#907) 2020-10-26 13:41:27 +01:00
Lucjan Bryndza
bf2609524c [EGD-4075] Use FATFS in the Linux builds (#843)
* [EGD-4075] Use FAT fs in the emulator

Add script for genrate base phone image

* [EGD-4075] Use FreeRTOS-FAT in emulator initial commit

* [EGD-4075] Thread local storage fix

Fixing thread local storage when running on the
Linux platform in the test mode

* [EGD-4075] Improve image generation

Improve image generation script on the linux platform

* [EGD-4075] Fix all test with FAT fs image

Fix all tests with fatfs image

* [EGD-4075] Fix calculator utility test

* [EGD-4075] Image dependencies fix

* Remove uneeded comments

* Missing headers in CR

* [EGD-4075] Fixed whitespaces

Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2020-10-22 10:34:12 +02:00
KacperLewandowski
ad626ebc93 [EGD-3857] Create calculator application 2020-10-15 14:57:57 +02:00
Lucjan Bryndza
b337562405 Devel/l.bryndza/freertos fat as a submodule (#828)
* [EGD-4016] Remove FREERTOSFAT before submodule add

* [EGD-4016] FreeRTOS fat as a submodule

Currently VFS class has a separate implementation
which uses native Linux filesystem, so currently the
filesystem can behave differ on the emulator than in the phone.
In the linux emulator VFS should use same FAT code as the phone
and emulate block device as a file on the linux platform.

Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2020-10-14 13:04:12 +02:00
Bartek Cichocki
2060dd964f [EGD-2625] added BT scan
[EGD-2625] moved btstack to mudita_develop branch
2020-09-29 13:51:58 +02:00
alek
50cf5f1137 [EGD-3813] magic enums as submodule + update to 0.6.6 release 2020-09-24 15:32:57 +02:00
Adam
07b243a084 Egd-3408 Rich text (#712)
* EGD-3408 gui::Text Rich text parser added with pugixml tree & tree walker

* EGD-3408 Fitted code in
2020-09-23 21:03:57 +02:00
kkleczkowski
06e3bb0f3f Egd 3709 - Application antenna - added parameter history window. (#713)
* [EGD-3709] Applicatgion antenna switch parameters window.

* [EGD-3709] Changelog + service-antenna disabled.

* [EGD-3709] PR suggestions + missing antenna rquest.

Co-authored-by: Kuba Kleczkowski <dd>
2020-09-22 14:35:00 +02:00
Bartek Cichocki
6d22e00544 [EGD-3637] restoration of Bluetooth stack
[EGD-3637] Bluetooth hangup fix
2020-09-22 09:52:15 +02:00
Radoslaw Wicik
6e5f50074c [EGD-3710] Update submodules paths 2020-09-15 16:05:47 +02:00
Hubert Chrzaniuk
6e9bdb3dc1 [EGD-3468] Fix metadata of audio files 2020-09-14 16:55:17 +02:00
alek
da8f35c2c6 [EGD-3464] fix playaback of mp3 files 2020-08-28 09:46:00 +02:00
Tomas Rogala
1e603d820d [EGD-3470] Review changes 2020-08-13 23:22:40 +02:00
Roman Kubiak
8dcb54721b removed sbini
changed boot.ini -> boot.json
replaced sbini code to json11 code (needs ecoboot 1.0.3)
2020-08-10 13:26:09 +02:00
Bartek Cichocki
794a2bd35f [EGD-3436] Reimplemented parser, removed TinyFSM
added unit tests, cleaned up code

added changelog entry
2020-07-28 10:51:37 +02:00
Roman Kubiak
1925bb2ac6 removed all bluetooth code 2020-07-24 12:21:07 +02:00
Marcin Smoczyński
a9cb37d7f4 tests: add proper catch2 handling
Add proper catch2 support:
 - add catch2 as a submodule
 - add cmake function to add test easily
 - discover each test in test binary
 - remove copies of catch.hpp
 - do not try to process tests for rt1051

Do not test internals of utf8, only public interface (nasty bugs could
occur otherwise).

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-06-24 10:38:14 +02:00
Marcin Smoczyński
e50eed46cc [EGD-2996] build: add googletest
Add googletest v1.10 to the project for mocking.
Add helper function "add_gtest_executable" for easier test exec
target addition.
2020-06-03 12:21:03 +02:00
Marcin Smoczyński
5f7d52cb2b [EGD-2592] utils: add libphonenumber
Add libphonumber support:
 - no thread safety support (disabled mutexes, etc.)
 - use re2 regexes instead of ICU's
 - don't normalize utf8 decimals - use ASCII decimals only
2020-04-08 18:23:45 +02:00
Marcin Smoczyński
268385b093 [EGD-2591] utils: add protobuf library support
Add protobuf-lite library (thread safety turned off).
2020-04-08 18:23:45 +02:00
Marcin Smoczyński
d41ceb4611 [EGD-3052] utils: add re2 library support
Add RE2 library with thread safety option turned off.
2020-04-08 18:23:45 +02:00
rkubiak01
bdb48fb7e5 added sbini library for simple C INI parser support
EGD-2922
2020-04-08 12:40:50 +02:00
rkubiak01
c83546c332 added crc32 as a submodule 2020-03-31 11:41:50 +02:00
Przemyslaw Brudny
8f92715951 [EDG-3019] Segger utils moved to git submodule 2020-03-23 18:37:37 +01:00
rkubiak01
66ffd1efab microtar added as a submodule
microtar.c is modified to work with freeRTOS fat
2020-03-05 05:29:08 -07:00
pawel-mudita
d1665ed3ba [EGD-2855][EGD-2856] Parser for desktop app (#188)
* [EGD-2306] DESKTOP application initial commit

most of this code is foreign and unverified
it's low level magic numbers for the platform

on Linux i used PTY to simulate a serial line

* [EGD-2306] Add contact-list and contact-count commands

* [EGD-2306] Add command for geting contact by id and minor fixes

* [EGD-2856][WIP] Add basic serial parser

* [EGD-2855] Set usb device config buffer property cacheable

* [EGD-2856] Separate handlers from fsms, add status codes

* [EGD-2855] fd passed to state machine for linux renderer support

* [EGD-2856] Fix warnings

* [EGD-2855] New send task added and buffer queque

* [EGD-2856] Add simple ServiceDesktop documentation

* [EGD-2855] rt1051 worker refactor

* [EGD-2855] Added service workers for desktop app.
Changed linux USB driver mock up.
Added queue name mapping for service workers.
Added queue registry support (maybe redundant with mapping)

* [EGD-2855] Added proper message pointer to queue send and memory free
Added bsp driver namespace for linux and rt1051

* [EGD-2856] Major cleanup

* [EGD-2856] Fix typo

* [EGD-2856] Fix warnings

* [EGD-2856] Delete recursive fsm calling to prevent stack overflow

* [EGD-2856] Reduce http codes

* [EGD-2856] Rename serial parser to parser

* [EGD-2855] USB_CDC drives renames and cleanups
Service Worker queue cleanups

* [EGD-2855] Service Worker queue cleanups

* [EGD2855] Fixed external driver import

* [EGD-2856] Remove redundant message type

* [EGD-2856] Switch on enums instead of ints, and other minor changes requested after code review

* [EGD-2855] usb driver moved to bsp directory structure, pull request fixes

* [EGD-2855] clang #include fix

* [EGD-2856] Add tinyfsm as git submodule, update readme and minor fix

Co-authored-by: rkubiak01 <56821808+rkubiak01@users.noreply.github.com>
Co-authored-by: PrzeBrudny <60609703+PrzeBrudny@users.noreply.github.com>
2020-02-27 15:34:42 +01:00
lskrzypczak
f2de5e9295 Fix git config (#118)
* changed .gitmodules paths to git@

* Changed to relative paths

* Fixed relative paths
2019-12-18 12:41:42 +01:00
Łukasz Anwajler
829ae46e77 Testing GH actions (#107)
* Create main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Switched from SSH to HTTPS Github clone method to allow submodules fetching in CI

* [WiP] Added removal of stock cmake to yaml

* [WiP] Added removal of stock cmake to yaml

* [WiP] Modyfing yaml to exec correct cmake

* [WiP] Modyfing yaml to exec correct cmake

* [WiP] Modyfing yaml to exec correct cmake

* [WiP] Modyfing yaml to exec correct cmake

* [WiP] Modyfing yaml to exec correct cmake

* [WiP] Modyfing yaml to exec correct cmake

* [WiP] Modyfing yaml to exec correct cmake

* [WiP] Modyfing yaml to exec correct cmake

* [WiP] Modyfing yaml to exec correct cmake

* [WiP] Changed config/bootstrap.sh permissions

* [WiP] Fixed compiler & cmake paths

* [WiP] still fixing ...

* [WiP] still fixing ...

* Cleaning

* Fixed stupid error in rebuild.sh

* Fixed stupid error in rebuild.sh

* Fixing yaml

* Fixing & cleaning yaml

* Fixing & cleaning yaml

* cleaned yaml
2019-12-16 14:07:33 +01:00
Adam Dobrowolski
4990e74684 Bluetooth: Remote repositories fixed to our source 2019-10-14 15:32:06 +02:00
Adam Dobrowolski
8e8954975a Bluetooth: submodules perm shallow 2019-10-14 15:32:06 +02:00
Adam Dobrowolski
fca9ef33ab Bluetooth: LwIP added, device added no dhcpd yet 2019-10-14 15:32:06 +02:00
pholat
eaa79e3032 Bluetooth: Added BlueKitchen & split build depending on bluetooth library
Compiles for both Linux and Cross
2019-10-14 15:32:06 +02:00
Robert Borzecki
d3235d54d7 Removed submodule 2019-05-21 23:35:00 +02:00
Robert Borzecki
e4e6160708 Merge branch 'master' of github.com:muditacom/PurePhone 2019-05-21 09:09:11 +02:00
Mati
cd72ae2e27 Update module-gui 2019-05-21 09:08:48 +02:00
Mati
ca0d93d614 FIxed typo 2019-05-21 09:05:47 +02:00