Skip to content

Commit bac5903

Browse files
committed
Changed us_ticker configuration to use TIM5 instead of TIM2 to be consistent with the allowed PWM peripheral pins.
1 parent fa5db87 commit bac5903

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

targets/TARGET_STM/TARGET_STM32G4/us_ticker_data.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
#include "stm32g4xx_ll_tim.h"
2424
#include "cmsis_nvic.h"
2525

26-
#define TIM_MST TIM2
27-
#define TIM_MST_IRQ TIM2_IRQn
28-
#define TIM_MST_RCC __TIM2_CLK_ENABLE()
29-
#define TIM_MST_DBGMCU_FREEZE __HAL_DBGMCU_FREEZE_TIM2()
26+
#define TIM_MST TIM5
27+
#define TIM_MST_IRQ TIM5_IRQn
28+
#define TIM_MST_RCC __TIM5_CLK_ENABLE()
29+
#define TIM_MST_DBGMCU_FREEZE __HAL_DBGMCU_FREEZE_TIM5()
3030

31-
#define TIM_MST_RESET_ON __TIM2_FORCE_RESET()
32-
#define TIM_MST_RESET_OFF __TIM2_RELEASE_RESET()
31+
#define TIM_MST_RESET_ON __TIM5_FORCE_RESET()
32+
#define TIM_MST_RESET_OFF __TIM5_RELEASE_RESET()
3333

3434
#define TIM_MST_BIT_WIDTH 32 // 16 or 32
3535

0 commit comments

Comments
 (0)