Skip to content

Commit 896293d

Browse files
committed
Replace TIM_MST_GET_PCLK_FREQ macro with TIM_MST_PCLK macro
1 parent 3baaa76 commit 896293d

File tree

51 files changed

+148
-62
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+148
-62
lines changed

targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/device/hal_tick.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
#define TIM_MST_RESET_ON __TIM1_FORCE_RESET()
5151
#define TIM_MST_RESET_OFF __TIM1_RELEASE_RESET()
5252

53-
#define TIM_MST_16BIT 1 // A 16-bit timer is used
53+
#define TIM_MST_16BIT 1 // 1=16-bit timer, 0=32-bit timer
5454

55-
#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK2Freq()
55+
#define TIM_MST_PCLK 2 // Select the peripheral clock number (1 or 2)
5656

5757
#define HAL_TICK_DELAY (1000) // 1 ms
5858

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/device/hal_tick.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
#define TIM_MST_RESET_ON __TIM1_FORCE_RESET()
5151
#define TIM_MST_RESET_OFF __TIM1_RELEASE_RESET()
5252

53-
#define TIM_MST_16BIT 1 // A 16-bit timer is used
53+
#define TIM_MST_16BIT 1 // 1=16-bit timer, 0=32-bit timer
5454

55-
#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK2Freq()
55+
#define TIM_MST_PCLK 2 // Select the peripheral clock number (1 or 2)
5656

5757
#define HAL_TICK_DELAY (1000) // 1 ms
5858

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/device/hal_tick.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ extern "C" {
4949
#define TIM_MST_RESET_ON __TIM2_FORCE_RESET()
5050
#define TIM_MST_RESET_OFF __TIM2_RELEASE_RESET()
5151

52-
#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1Freq()
52+
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
53+
54+
#define TIM_MST_PCLK 1 // Select the peripheral clock number (1 or 2)
5355

5456
#define HAL_TICK_DELAY (1000) // 1 ms
5557

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/device/hal_tick.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ extern "C" {
4949
#define TIM_MST_RESET_ON __TIM2_FORCE_RESET()
5050
#define TIM_MST_RESET_OFF __TIM2_RELEASE_RESET()
5151

52-
#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1Freq()
52+
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
53+
54+
#define TIM_MST_PCLK 1 // Select the peripheral clock number (1 or 2)
5355

5456
#define HAL_TICK_DELAY (1000) // 1 ms
5557

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/device/hal_tick.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
#define TIM_MST_RESET_ON __TIM1_FORCE_RESET()
5151
#define TIM_MST_RESET_OFF __TIM1_RELEASE_RESET()
5252

53-
#define TIM_MST_16BIT 1 // A 16-bit timer is used
53+
#define TIM_MST_16BIT 1 // 1=16-bit timer, 0=32-bit timer
5454

55-
#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK2Freq()
55+
#define TIM_MST_PCLK 2 // Select the peripheral clock number (1 or 2)
5656

5757
#define HAL_TICK_DELAY (1000) // 1 ms
5858

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/device/hal_tick.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
#define TIM_MST_RESET_ON __TIM2_FORCE_RESET()
5050
#define TIM_MST_RESET_OFF __TIM2_RELEASE_RESET()
5151

52-
#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1Freq()
52+
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
53+
54+
#define TIM_MST_PCLK 1 // Select the peripheral clock number (1 or 2)
5355

5456
#define HAL_TICK_DELAY (1000) // 1 ms
5557

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/device/hal_tick.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
#define TIM_MST_RESET_ON __TIM2_FORCE_RESET()
5050
#define TIM_MST_RESET_OFF __TIM2_RELEASE_RESET()
5151

52-
#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1Freq()
52+
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
53+
54+
#define TIM_MST_PCLK 1 // Select the peripheral clock number (1 or 2)
5355

5456
#define HAL_TICK_DELAY (1000) // 1 ms
5557

targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/device/hal_tick.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
#define TIM_MST_RESET_ON __TIM4_FORCE_RESET()
5050
#define TIM_MST_RESET_OFF __TIM4_RELEASE_RESET()
5151

52-
#define TIM_MST_16BIT 1 // A 16-bit timer is used
52+
#define TIM_MST_16BIT 1 // 1=16-bit timer, 0=32-bit timer
5353

54-
#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1Freq()
54+
#define TIM_MST_PCLK 1 // Select the peripheral clock number (1 or 2)
5555

5656
#define HAL_TICK_DELAY (1000) // 1 ms
5757

targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/device/hal_tick.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
#define TIM_MST_RESET_ON __TIM4_FORCE_RESET()
5050
#define TIM_MST_RESET_OFF __TIM4_RELEASE_RESET()
5151

52-
#define TIM_MST_16BIT 1 // A 16-bit timer is used
52+
#define TIM_MST_16BIT 1 // 1=16-bit timer, 0=32-bit timer
5353

54-
#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1Freq()
54+
#define TIM_MST_PCLK 1 // Select the peripheral clock number (1 or 2)
5555

5656
#define HAL_TICK_DELAY (1000) // 1 ms
5757

targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device/hal_tick.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
#define TIM_MST_RESET_ON __TIM4_FORCE_RESET()
5050
#define TIM_MST_RESET_OFF __TIM4_RELEASE_RESET()
5151

52-
#define TIM_MST_16BIT 1 // A 16-bit timer is used
52+
#define TIM_MST_16BIT 1 // 1=16-bit timer, 0=32-bit timer
5353

54-
#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1Freq()
54+
#define TIM_MST_PCLK 1 // Select the peripheral clock number (1 or 2)
5555

5656
#define HAL_TICK_DELAY (1000) // 1 ms
5757

0 commit comments

Comments
 (0)