Commit Graph

18 Commits

Author SHA1 Message Date
Lefucjusz
024faff77e [BH-2035] Update relaxation paused window
Updated looped relaxation windows to match
new design.
Fixed issue with misaligned pause button
on timed relaxation windows.
2024-07-12 09:10:28 +02:00
Lefucjusz
674a768364 [MOS-669] Add too hot battery notification when charging
* Added notification showing on the main
screen if the battery has reached too
high temperature to continue charging.
* Code cleanups.
2023-10-16 12:54:13 +02:00
Dawid Wojtas
2cbadc6a00 [BH-1630] Turn off the device for low voltage
The system closes only if the SoC is 0%, but
it doesn't react if the voltage has low level.
The new implementation invokes the close
procedure if the voltage is less than 3.4V.
This solution should avoid possiblity to
hang the MCU.
2023-03-16 11:14:38 +01:00
Dawid Wojtas
f7980fea6d [BH-1649] Reimplement I2C communication attempts
The CW2015 driver should avoid any logic.
Thus I2C communication attempts were moved
to the BatteryCharger which is product specific.
2023-03-14 15:49:29 +01:00
Maciej Gibowicz
90543e264f [MOS-648] Fix USB connection/disconnection detection
If there were errors while charging the battery,
e.g. too high temperature, the detection of USB
connection/disconnection failed.
2022-08-12 14:55:46 +02:00
Kuba
ff393d34ec [MOS-451] Drop invalid SoC
Invalid state of charge is now dropped. Invalid SoC was interpreted
as 0% battery.
2022-05-26 10:16:33 +02:00
Mateusz Piesta
2f42cd5e73 [BH-1424] FreeRTOS update
Updated FreeRTOS source code to 10.4.6.
Moved FreeRTOS sources to the third-party directory.
Added necessary changes to the CMake configuration.
Split FreeRTOSConfig.h. From now, each board has its own.
Added missing log headers.
Minor refactor of the module-os cmake.
Fixed stack overflows in bell application main and time service.
2022-04-07 13:31:28 +02:00
Mateusz Piesta
6ad290366f [MOS-296] Merge SNVS cherry-pick conflicts fixed
Fix SNVS Harmony approach conflicts with master
2022-03-09 19:34:39 +01:00
Maciej Janicki
2b2bb13a49 [MOS-296] Merge remote-tracking branch 'origin/stable'
Merge stable Harmony branch into merge wip branch
2022-03-09 19:27:50 +01:00
Mateusz Piesta
1946d53efa [BH-1333] Battery subsystem refactor
Interfaces clean up.
Fixed logic flow.
Fixed various bugs.
2022-01-21 13:48:10 +01:00
Mateusz Piesta
a9b111aabb [BH-1277] Fix critical battery flow
Removed handling of critical battery level from bell's
home screen. From now on, battery SOC can drop to 1%
(battery notification will change from showing 1 bar to
crossed battery symbol upon reaching <5% SOC). If it drops
any further system shutdown procedure is invoked which results
in the device being turned off.
2021-12-03 16:26:53 +01:00
Mateusz Piesta
fb279f17b1 [BH-843] Reset procedure
Added reset procedure.
Refactored linux KeyInput.
Added support for multipress.
2021-10-06 09:40:20 +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
f16a18d935 [BH-860] Decouple charger driver from system
Remove system dependency from charger driver implementation. Remove
circular, lambda driven dependency between charger and brownout
detector. Remove event manager dependency in driver as well.
Encapsulate some of charger logic in introduced battery controller.

Extract path configuration to the separate target to decouple charger
from vfs middleware.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-20 12:19:48 +02:00
Maciej Janicki
441b9b4667 [BH-715] Add switches handling
Add Bell switches handling including latch support.
2021-09-14 10:13:56 +02:00
Wojtek Rzepecki
a4a5a09c30 [BH-826] Add key input abstraction layer
Added abstraction layer for key input HAL
to provide elastic structure
2021-09-02 16:28:41 +02:00
Wojtek Rzepecki
2ae8f8d6b3 [BH-821] Add battery abstraction layer
Added Abstraction layer for batter charger
to provide support for bell/pure/linux
2021-08-27 14:47:07 +02:00
Mateusz Piesta
82922d21be [BH-795] Add temperature mock
Added temperature interface implementation
for Linux. Added dummy implementation for
RT1051 target.
2021-08-26 11:08:27 +02:00