~aleteoryx/muditaos

6a566008c3fa6911f7c0e280af9e93515d78af98 — Wojtek Rzepecki 4 years ago 47a1183
[BH-1189] Fix battery usage optimization

tweaks in power profile for bell to stay low with
fcpu as much as possible
M module-bsp/board/rt1051/bellpx/bsp/lpm/PowerProfile.cpp => module-bsp/board/rt1051/bellpx/bsp/lpm/PowerProfile.cpp +4 -4
@@ 10,10 10,10 @@ namespace bsp
        PowerProfile bellPowerProfile;

        bellPowerProfile.frequencyShiftLowerThreshold      = 50;
        bellPowerProfile.frequencyShiftUpperThreshold      = 90;
        bellPowerProfile.maxBelowThresholdCount            = 10;
        bellPowerProfile.maxBelowThresholdInRowCount       = 5;
        bellPowerProfile.maxAboveThresholdCount            = 3;
        bellPowerProfile.frequencyShiftUpperThreshold      = 80;
        bellPowerProfile.maxBelowThresholdCount            = 5;
        bellPowerProfile.maxBelowThresholdInRowCount       = 1;
        bellPowerProfile.maxAboveThresholdCount            = 2;
        bellPowerProfile.minimalFrequency                  = CpuFrequencyHz::Level_0;
        bellPowerProfile.frequencyIncreaseIntermediateStep = true;


M products/BellHybrid/EinkSentinelBell.cpp => products/BellHybrid/EinkSentinelBell.cpp +1 -1
@@ 9,7 9,7 @@ namespace service::eink
{
    namespace
    {
        constexpr auto RedrawEinkCpuFrequency = bsp::CpuFrequencyHz::Level_5;
        constexpr auto RedrawEinkCpuFrequency = bsp::CpuFrequencyHz::Level_4;
    } // namespace

    EinkSentinel::EinkSentinel(std::string name, sys::Service *service) : sys::CpuSentinel(name, service)