Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions hal_st/stm32fxxx/LpTimerPwmStm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,21 @@ namespace hal
StartTimer();
}

void LpTimerPwmBaseStm::Stop()
void LpTimerPwmBaseStm::StopTimer()
{
timer.Stop();
}

void LpTimerPwmBaseStm::StopChannels()
{
for (auto& channel : channels)
channel.Stop();
}

timer.Stop();
void LpTimerPwmBaseStm::Stop()
{
StopChannels();
StopTimer();
}

LpTimerPwm::LpTimerPwm(infra::BoundedDeque<LpPwmChannelGpio>& channelStorage, uint8_t oneBasedIndex, LowPowerTimerBaseStm::Timing timing)
Expand Down
3 changes: 3 additions & 0 deletions hal_st/stm32fxxx/LpTimerPwmStm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ namespace hal
void StartTimer();
void StartChannels();
void Start();
// Timer and configured channels can either be stopped independently from each other by invoking StopTimer() and StopChannels(), or together by invoking Stop()
void StopTimer();
void StopChannels();
void Stop();

protected:
Expand Down
Loading