MCPcopy Create free account
hub / github.com/andysworkshop/stm32plus / initialiseTimeBase

Method initialiseTimeBase

lib/include/timer/Timer.h:72–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 */
71
72 inline void Timer::initialiseTimeBase(uint32_t period,uint16_t prescaler,uint16_t clockDivision,uint16_t counterMode) {
73
74 _timeBase.TIM_Period=period;
75 _timeBase.TIM_Prescaler=prescaler;
76 _timeBase.TIM_ClockDivision=clockDivision;
77 _timeBase.TIM_CounterMode=counterMode;
78
79 TIM_TimeBaseInit(_peripheralAddress,&_timeBase);
80 }
81
82
83 /**

Callers 2

runMethod · 0.80

Calls 1

TIM_TimeBaseInitFunction · 0.50

Tested by

no test coverage detected