Skip to content

Commit 8ba2b49

Browse files
embedded-releaser-app[bot]gabrielfrasantosCopilot
authored
chore: update embedded-pro/embedded-infra-lib hash to 8f61e0dc80e89e33236f6e5e0cf3d9dca364ec5a (#30)
* chore: update embedded-pro/embedded-infra-lib hash to 8f61e0dc80e89e33236f6e5e0cf3d9dca364ec5a * chore: remove PulseWidthModulation interface references from PWM drivers Agent-Logs-Url: https://github.com/embedded-pro/hal-st/sessions/e67caae9-b872-4397-a63f-ed91fd9d5443 Co-authored-by: gabrielfrasantos <21131318+gabrielfrasantos@users.noreply.github.com> --------- Co-authored-by: gabrielfrasantos <21131318+gabrielfrasantos@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 95da057 commit 8ba2b49

3 files changed

Lines changed: 9 additions & 13 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if (HALST_STANDALONE)
2626
FetchContent_Declare(
2727
emil
2828
GIT_REPOSITORY https://github.com/embedded-pro/embedded-infra-lib.git
29-
GIT_TAG 74c4ff1b94c34c32af963ff141176b1d207e893d # Unreleased
29+
GIT_TAG 8f61e0dc80e89e33236f6e5e0cf3d9dca364ec5a # Unreleased
3030
)
3131

3232
add_definitions(-DEMIL_ENABLE_TRACING=1)

hal_st/stm32fxxx/LpTimerPwmStm.hpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#ifndef HAL_ST_LPTIMER_PWM_ST_HPP
22
#define HAL_ST_LPTIMER_PWM_ST_HPP
33

4-
#include "hal/interfaces/PulseWidthModulation.hpp"
54
#include "hal_st/stm32fxxx/GpioStm.hpp"
65
#include "hal_st/stm32fxxx/LpTimerStm.hpp"
76
#include "infra/util/MemoryRange.hpp"
@@ -63,15 +62,14 @@ namespace hal
6362
};
6463

6564
class LpPwmChannelGpio
66-
: public PulseWidthModulation
6765
{
6866
public:
6967
LpPwmChannelGpio(uint8_t timerOneBasedIndex, uint8_t channelOneBasedIndex, LPTIM_HandleTypeDef& handle, GpioPinStm& pin);
7068

71-
void SetDuty(uint8_t dutyPercent) override;
72-
void SetPulse(uint32_t pulseOn, uint32_t period) override;
73-
void Start() override;
74-
void Stop() override;
69+
void SetDuty(uint8_t dutyPercent);
70+
void SetPulse(uint32_t pulseOn, uint32_t period);
71+
void Start();
72+
void Stop();
7573

7674
private:
7775
uint8_t timerIndex;

hal_st/stm32fxxx/TimerPwmStm.hpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#ifndef HAL_ST_TIMER_PWM_ST_HPP
22
#define HAL_ST_TIMER_PWM_ST_HPP
33

4-
#include "hal/interfaces/PulseWidthModulation.hpp"
54
#include "hal_st/stm32fxxx/GpioStm.hpp"
65
#include "hal_st/stm32fxxx/TimerStm.hpp"
76
#include "infra/util/MemoryRange.hpp"
@@ -63,15 +62,14 @@ namespace hal
6362
};
6463

6564
class PwmChannelGpio
66-
: public PulseWidthModulation
6765
{
6866
public:
6967
PwmChannelGpio(uint8_t timerOneBasedIndex, uint8_t channelOneBasedIndex, TIM_HandleTypeDef& handle, GpioPinStm& pin);
7068

71-
void SetDuty(uint8_t dutyPercent) override;
72-
void SetPulse(uint32_t pulseOn, uint32_t period) override;
73-
void Start() override;
74-
void Stop() override;
69+
void SetDuty(uint8_t dutyPercent);
70+
void SetPulse(uint32_t pulseOn, uint32_t period);
71+
void Start();
72+
void Stop();
7573

7674
private:
7775
uint8_t timerIndex;

0 commit comments

Comments
 (0)