mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-21 12:28:19 -05:00
* Added mechanism enabling CPU to enter WFI mode when the OS is in idle, what results in large power consumption reduction. * Added mechanism to switch SDRAM to self-refresh mode before entering WFI, what resulted in further power consumption reduction.
60 lines
1.1 KiB
C++
60 lines
1.1 KiB
C++
// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#include "LinuxLPM.h"
|
|
|
|
namespace bsp
|
|
{
|
|
std::int32_t LinuxLPM::PowerOff()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
std::int32_t LinuxLPM::Reboot([[maybe_unused]] RebootType reason)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
void LinuxLPM::SetCpuFrequency(CpuFrequencyMHz freq)
|
|
{
|
|
currentFrequency = freq;
|
|
}
|
|
|
|
std::uint32_t LinuxLPM::GetCpuFrequency() const noexcept
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
void LinuxLPM::SwitchOscillatorSource(LowPowerMode::OscillatorSource source)
|
|
{}
|
|
|
|
void LinuxLPM::EnableDcdcPowerSaveMode()
|
|
{}
|
|
|
|
void LinuxLPM::DisableDcdcPowerSaveMode()
|
|
{}
|
|
|
|
void LinuxLPM::AllowEnteringWfiMode()
|
|
{}
|
|
|
|
void LinuxLPM::BlockEnteringWfiMode()
|
|
{}
|
|
|
|
std::uint32_t LinuxLPM::EnterWfiModeIfAllowed()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
std::uint32_t LinuxLPM::GetLastTimeSpentInWfi()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
void LinuxLPM::DisableSysTick()
|
|
{}
|
|
|
|
void LinuxLPM::EnableSysTick()
|
|
{}
|
|
|
|
} // namespace bsp
|