Commit Graph

486 Commits

Author SHA1 Message Date
Wojtek Rzepecki
0c098808e8 [EGD-5660] Add PWM Cpu sentinel
Change of PWM frequency due
to main clock change in low
power operation.
2021-02-25 17:09:05 +01:00
Tomasz Sobkowiak
0022da5e37 [EGD-5204] Show passcode screen only when PC is connected
USBConfigured event is not fired when powerbank, charger is connected.

[EGD-5204] Show passcode screen only when PC is connected

USBConfigured event is not fired when powerbank, charger is connected.
2021-02-25 10:28:08 +01:00
Pawel Olejniczak
2b05b9739e [EGD-5204] Secure USB communication
Secure all endpoints by returning 403(Forbidden) when USB is connected.
Request screen passcode to enable secured endpoints.
2021-02-24 19:49:07 +01:00
Piotr Tański
d5c3d41ca4 [EGD-5204] Secure USB communication
Secure all endpoints by returning 403(Forbidden) when USB is connected.
Request screen passcode to enable secured endpoints.
2021-02-24 19:49:07 +01:00
Wiktor S. Ovalle Correa
f4f8504993 [EGD-5565] USB: Fix stack size for littlefs
Update USB submodule
2021-02-23 18:11:42 +01:00
Wiktor S. Ovalle Correa
d16947c8b7 [EGD-5737] Fix compilation issues after merge
Master was using some fetures removed by new filesystem
2021-02-23 18:11:35 +01:00
Wiktor S. Ovalle Correa
fe72169338 [EGD-5737] Merge master into experimental
Synchronize with master before merging
2021-02-23 18:10:52 +01:00
Borys Jelenski
e6fe2b9003 [EGD-5503] Fix copyright
Previous commit related to the same ticket introduced invalid copyright
in some files. This commit fixes that.
2021-02-19 12:03:16 +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
Wojtek Rzepecki
536841f059 [EGD-5810] Fix for old batteries
Temporary fix for old batteries
2021-02-19 10:53:52 +01:00
Lukasz Skrzypczak
cefe442d77 [EGD-3685] PR fixes
Included Alek's suggestions from PR
2021-02-18 17:27:54 +01:00
Lukasz Skrzypczak
5cfa6d34df [EGD-3685] Added infinite repeat
Addef API for infinite vibra repeat
2021-02-18 17:27:54 +01:00
Lukasz Skrzypczak
215329c53b [EGD-3685] PR fixes
Fixes after PR suggestions
2021-02-18 17:27:54 +01:00
Lukasz Skrzypczak
819d0ff833 [EGD-3685] Fixed linux stubs
Fixed broken linux stubs
2021-02-18 17:27:54 +01:00
Lukasz Skrzypczak
a5d1fadf2e [EGD-3685] Vibra handling
Added driver & business logic. Responds to messages.
2021-02-18 17:27:54 +01:00
Adam Dobrowolski
f724d9074b [EGD-5701] Added DOM dump to harness
* Added generic handler to developerMode
* Added DOM message handling
2021-02-18 16:53:07 +01:00
Wojtek Rzepecki
465159ed15 [EGD-5805] Fix not charging icon
Fix icons behavior in topbar.
When plugged and no charging
regular dischrging icon is
displayed.
2021-02-18 12:06:50 +01:00
Wiktor S. Ovalle Correa
c7b7cc4c27 [EGD-5737] Merge master into experimental
Keep experimental up to date with changes from master
2021-02-17 17:10:32 +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
Lucjan Bryndza
a493771f97 [EGD-5385] Fix unallowed use of ff_rename
Fix unallowed use of ff_rename FFAT function
2021-02-17 17:07:41 +01:00
Lucjan Bryndza
46f9cc7e10 [EGD-5737] Merge master into experimental
Keep experimental up to date with changes from master
2021-02-17 17:07:23 +01:00
Lucjan Bryndza
adc3d34aed [EGD-5334] Fix phone crash when MTP access
Fix phone crash when accessing file when new filesystem is used
2021-02-17 17:06:59 +01:00
Lucjan Bryndza
067ca94835 [EGD-5737] Merge master into experimental
Keep experimental up to date with changes from master
2021-02-17 17:06:30 +01:00
Hubert Chrzaniuk
5400c1861e [EGD-5014] Add eMMC block device API
Add PureOS wrapper for eMMC driver with support
for basic block device operations.
2021-02-17 17:05:32 +01:00
Lucjan Bryndza
e6213e9407 [EGD-5737] Merge master into experimental
Keep experimental up to date with changes from master
2021-02-17 17:02:21 +01:00
Lucjan Bryndza
32de9ec671 [EGD-5102] Fix compile on rt1051 platform
It is initial commmit which fix compilation after
vfs. global object removal. It still need implementation
newlib syscalls.
2021-02-17 17:02:15 +01:00
Lucjan Bryndza
9f10b446cb [EGD-5102] Fix warning errors in the BSP
Fix warning errors in the BSP module
2021-02-17 17:02:15 +01:00
Lucjan Bryndza
bb06380ca1 [EGD-5737] Merge with master
Keep experimental up to date with changes from master
2021-02-17 17:02:01 +01:00
Marcin Smoczyński
bda18b5b54 [EGD-5706] Refactor creating audio device
Audio devices are created in the audio subsystem and it is not possible
to send a device to bt service upon creation.

Introduce hookable audio device factory to allow sharing bluetooth
audio device. Move audio devices from bsp to audio allowing removal of
unwanted bsp -> audio dependency.

Remove Bluetooth proxy device which turned out to be a dead end.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-02-17 16:20:59 +01:00
Jakub Pyszczak
7e36ee7c19 [EGD-5088] Change new filesystem implementation
Removed deprecated vfs calls from all applications.
2021-02-17 16:06:23 +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
Wojtek Rzepecki
a6cdd53a86 [EGD-5577] Add charger temperature cutoff
Battery charger cutoff due in
selected temperature range. Proper
charged state detection for rt1051
2021-02-12 08:18:03 +01:00
lblach
a0b79647ed [EGD-4068] Add Update Package Installation Mode
It is necessary that the PureOS update mechanism enters Update Package
Installation Mode (where most of the services are stopped)
when the PureOS update package gets downloaded into the phone.
2021-02-11 12:35:06 +01:00
SP2FET
a6d2481c9e [EGD-5694] Add BT DMA deinit
Implemented BT DMA deinit for Bluetooth off functionality

Co-authored-by: grzyw-o-mat
2021-02-11 12:01:58 +01:00
SP2FET
e191817953 [EGD-5480] Bluetooth scan refactor
There was a need for Bluetooth scan code refactor. Here it is
2021-02-10 14:33:14 +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
Mateusz Grzywacz
f270240a29 [EGD-5373] Accomodate for T6v1 HW rev. + fix wake up pin
Bad Bad pin definitions - overlaping cellular wake up
pin with mic ld en.
T6v1 has logic converters which require pin conf to be
OUTPUT low. Lorem ipsum pin
2021-02-09 18:43:13 +01:00
Marek Niepieklo
975944374e [EGD-5554] Change MTP supported file types
Defined supported file types for MTP:
- MP3, WAV, FLAC
2021-02-09 14:44:06 +01:00
Lukasz Skrzypczak
eedf73eaac [EGD-5299] PR comments
Deleted commented-out digital filter calls. Moved QEEC to factory.
Added selection for echo cancellation strength.
2021-02-09 12:14:29 +01:00
Marek Niepieklo
ab28f1021e [EGD-5664] Fix excessive logging in USB-CDC
Remove excessive logging in USB-CDC, which slows down transfer
2021-02-08 17:44:30 +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
Wojtek Rzepecki
8204cba1ab [EGD-5575] Add battery file test
Battery file existence test for
harness test suit. Minor changes to
file saving applied.
2021-02-08 15:57:17 +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
Lukasz Skrzypczak
e4462dce33 [EGD-5298] Microphone Adjust
Changed parameters for mic GSM path to get clear voice
2021-02-02 18:31:03 +01:00
Marcin Smoczyński
f1fc9df152 [EGD-4977] Reduce audio lag during voice call
Reduce audio delay by reducing audio buffer size in router operation.
Audio streams are now created directly in the operations, not in the
audio service, which gives more flexibility.

Audio Buffer size is calculated based on endpoints (source, sink) and
operation capabilities. This commit also enables allocations in a
non-cacheable region of OCRAM for endpoints that use DMA for data
transport.

Introduce power-of-two operations that use built-in functions and
possibly dedicated hardware instructions of an MCU. These operations
are required by the audio stream buffer size calculation algorithm.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-02-01 22:22:12 +01:00
Wojtek Rzepecki
01d1c84f25 [EGD-5390] Add keypad backlight to GUI
Added demo connection to keypad light
GUI window.
2021-02-01 16:55:00 +01:00
Marek Niepieklo
ec703dcdb4 [EGD-5450] Add DEVICE QUALITIER descriptor
Enabled DEVICE QUALITIER decriptor in USB configration
Added callback to return the descriptor
2021-01-29 16:53:35 +01:00
Wojtek Rzepecki
5da8b4ee2f [EGD-5367] Add Fuel Gauge parameters
Batery fuel aguge parametrized. Battery charger
parameters also added. Appropriate measurements
added and configured.
2021-01-29 12:55:07 +01:00
Radoslaw Wicik
d14e40d378 [EGD-4831] Add license headers to c, h and sql files
Add license headers to `h`, `c` and `sql` files as this files haven't
been checked previously, script now to automatically updates current
year in existing licenses.
2021-01-28 14:41:33 +01:00