1 parent f910d7e commit bb4eb87Copy full SHA for bb4eb87
2 files changed
src/drivers/hardware_specific/stm32/stm32_timerutils.cpp
@@ -7,10 +7,14 @@
7
#if defined(HAL_TIM_MODULE_ONLY)
8
9
//Functions copied over and modified from HardwareTimer to allow disabling HardwareTimer
10
-
11
void enableTimerClock(TIM_HandleTypeDef *htim)
12
{
13
- switch ((uintptr_t)htim->Instance)
+ enableTimerClock(htim->Instance);
+}
14
+
15
+void enableTimerClock(TIM_TypeDef *tim)
16
+{
17
+ switch ((uintptr_t)tim)
18
19
#if defined(TIM1_BASE)
20
case TIM1_BASE:
src/drivers/hardware_specific/stm32/stm32_timerutils.h
@@ -9,6 +9,7 @@
void enableTimerClock(TIM_HandleTypeDef *htim);
+void enableTimerClock(TIM_TypeDef *tim);
constexpr uint8_t getTimerClkSrc(TIM_TypeDef *tim)
0 commit comments