~aleteoryx/muditaos

ref: ad3aa54b661e8c5f8d1fbd62299092e29606a237 muditaos/module-bsp/board/rt1051/puretx/bsp/lpm/PowerProfile.cpp -rw-r--r-- 811 bytes
ad3aa54b — Przemyslaw Brudny [MOS-123] Added bluetooth authentication popups 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include <bsp/lpm/PowerProfile.hpp>

namespace bsp
{
    const PowerProfile getPowerProfile()
    {
        PowerProfile purePowerProfile;

        purePowerProfile.frequencyShiftLowerThreshold      = 50;
        purePowerProfile.frequencyShiftUpperThreshold      = 80;
        purePowerProfile.maxBelowThresholdCount            = 5;
        purePowerProfile.maxBelowThresholdInRowCount       = 1;
        purePowerProfile.maxAboveThresholdCount            = 2;
        purePowerProfile.minimalFrequency                  = CpuFrequencyMHz::Level_0;
        purePowerProfile.frequencyIncreaseIntermediateStep = true;

        return purePowerProfile;
    }
} // namespace bsp