mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-30 11:54:54 -04:00
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)
39 lines
690 B
C++
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
|