Skip to content

Commit 4d52d20

Browse files
author
Jan Kamidra
committed
update timer to TIM2 as OS timer
1 parent 8a4a620 commit 4d52d20

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

targets/TARGET_STM/TARGET_STM32U0/us_ticker_data.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ extern "C" {
2525
#include "cmsis_nvic.h"
2626

2727

28-
#define TIM_MST TIM3
29-
#define TIM_MST_IRQ TIM3_IRQn
30-
#define TIM_MST_RCC __TIM3_CLK_ENABLE()
31-
#define TIM_MST_DBGMCU_FREEZE __HAL_DBGMCU_FREEZE_TIM3()
28+
#define TIM_MST TIM2
29+
#define TIM_MST_IRQ TIM2_IRQn
30+
#define TIM_MST_RCC __TIM2_CLK_ENABLE()
31+
#define TIM_MST_DBGMCU_FREEZE __HAL_DBGMCU_FREEZE_TIM2()
3232

33-
#define TIM_MST_RESET_ON __TIM3_FORCE_RESET()
34-
#define TIM_MST_RESET_OFF __TIM3_RELEASE_RESET()
33+
#define TIM_MST_RESET_ON __TIM2_FORCE_RESET()
34+
#define TIM_MST_RESET_OFF __TIM2_RELEASE_RESET()
3535

36-
#define TIM_MST_BIT_WIDTH 16 // 16 or 32
36+
#define TIM_MST_BIT_WIDTH 32 // 16 or 32
3737

3838
#define TIM_MST_PCLK 1 // Select the peripheral clock number (1 or 2)*/
3939

0 commit comments

Comments
 (0)