Files
MuditaOS/module-bsp/board/linux/lpm/LinuxLPM.cpp
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

39 lines
690 B
C++

// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
//
// Created by mati on 09.09.2019.
//
#include "LinuxLPM.h"
namespace bsp
{
int32_t LinuxLPM::PowerOff()
{
return 0;
}
int32_t LinuxLPM::Reboot()
{
return 0;
}
void LinuxLPM::SetCpuFrequency(bsp::CpuFrequencyHz freq)
{
currentFrequency = freq;
}
uint32_t LinuxLPM::GetCpuFrequency() const noexcept
{
return 0;
}
void LinuxLPM::SwitchOscillatorSource(bsp::LowPowerMode::OscillatorSource source)
{
currentOscSource = source;
}
} // namespace bsp