Skip to content

Commit 5dc49b7

Browse files
committed
STM32L4 replace deprecated macro name
1 parent 0178969 commit 5dc49b7

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L432xC/device/hal_tick.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444

4545
#define TIM_MST TIM2
4646
#define TIM_MST_IRQ TIM2_IRQn
47-
#define TIM_MST_RCC __TIM2_CLK_ENABLE()
47+
#define TIM_MST_RCC __HAL_RCC_TIM2_CLK_ENABLE()
4848

49-
#define TIM_MST_RESET_ON __TIM2_FORCE_RESET()
50-
#define TIM_MST_RESET_OFF __TIM2_RELEASE_RESET()
49+
#define TIM_MST_RESET_ON __HAL_RCC_TIM2_FORCE_RESET()
50+
#define TIM_MST_RESET_OFF __HAL_RCC_TIM2_RELEASE_RESET()
5151

5252
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
5353

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/device/hal_tick.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444

4545
#define TIM_MST TIM5
4646
#define TIM_MST_IRQ TIM5_IRQn
47-
#define TIM_MST_RCC __TIM5_CLK_ENABLE()
47+
#define TIM_MST_RCC __HAL_RCC_TIM5_CLK_ENABLE()
4848

49-
#define TIM_MST_RESET_ON __TIM5_FORCE_RESET()
50-
#define TIM_MST_RESET_OFF __TIM5_RELEASE_RESET()
49+
#define TIM_MST_RESET_ON __HAL_RCC_TIM5_FORCE_RESET()
50+
#define TIM_MST_RESET_OFF __HAL_RCC_TIM5_RELEASE_RESET()
5151

5252
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
5353

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L486xG/device/hal_tick.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444

4545
#define TIM_MST TIM5
4646
#define TIM_MST_IRQ TIM5_IRQn
47-
#define TIM_MST_RCC __TIM5_CLK_ENABLE()
47+
#define TIM_MST_RCC __HAL_RCC_TIM5_CLK_ENABLE()
4848

49-
#define TIM_MST_RESET_ON __TIM5_FORCE_RESET()
50-
#define TIM_MST_RESET_OFF __TIM5_RELEASE_RESET()
49+
#define TIM_MST_RESET_ON __HAL_RCC_TIM5_FORCE_RESET()
50+
#define TIM_MST_RESET_OFF __HAL_RCC_TIM5_RELEASE_RESET()
5151

5252
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
5353

0 commit comments

Comments
 (0)