Files
MuditaOS/module-bsp/board/linux/lpm/LinuxLPM.cpp
Lefucjusz 32c6769cb6 [BH-1657][BH-1833][BH-1854] Add WFI and SDRAM self-refresh mode
* 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.
2024-01-22 12:32:35 +01:00

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