Skip to content

Commit

Permalink
Allow protected access and overriding methods
Browse files Browse the repository at this point in the history
This allows extensions, e.g. a interrupt based timer.
  • Loading branch information
fabiangottstein committed Aug 30, 2024
1 parent fca6e37 commit e0a6dfb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions hal_st/stm32fxxx/TimerStm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,17 @@ namespace hal
TimerBaseStm(uint8_t aTimerIndex, Timing timing, const Config& config);
~TimerBaseStm();

void Start();
void Stop();
virtual void Start();
virtual void Stop();

protected:
TIM_HandleTypeDef handle = {};

private:
void ConfigureTrigger();

private:
uint8_t timerIndex;
Config config;
TIM_HandleTypeDef handle = {};
};
}

Expand Down

0 comments on commit e0a6dfb

Please sign in to comment.