~aleteoryx/muditaos

ref: fe708cdf31392bc009227c63ceb091ac450d6a78 muditaos/module-bsp/board/rt1051/bellpx/bsp/lpm/PowerProfile.cpp -rw-r--r-- 714 bytes
fe708cdf — Adam Wulkiewicz [MOS-670] Change clang-format AlwaysBreakTemplateDeclarations to Yes 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) 2017-2022, 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 bellPowerProfile;

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

        return bellPowerProfile;
    }
} // namespace bsp