Skip to content

Commit fbd7a97

Browse files
committed
stm32 ticker: rename macro and update ST HAL Tick functions
- rename TIM_MST_16BIT in TIM_MST_BIT_WIDTH in order to use it directly in ticker info structure - change HAL_InitTick() and HAL_GetTick()
1 parent b1bbd76 commit fbd7a97

File tree

57 files changed

+68
-109
lines changed

Some content is hidden

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

57 files changed

+68
-109
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
#define TIM_MST_RESET_ON __HAL_RCC_TIM1_FORCE_RESET()
5353
#define TIM_MST_RESET_OFF __HAL_RCC_TIM1_RELEASE_RESET()
5454

55-
#define TIM_MST_16BIT 1 // 1=16-bit timer, 0=32-bit timer
55+
#define TIM_MST_BIT_WIDTH 16 // 16 or 32
5656

5757
#define TIM_MST_PCLK 2 // Select the peripheral clock number (1 or 2)
5858

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
#define TIM_MST_RESET_ON __HAL_RCC_TIM1_FORCE_RESET()
5353
#define TIM_MST_RESET_OFF __HAL_RCC_TIM1_RELEASE_RESET()
5454

55-
#define TIM_MST_16BIT 1 // 1=16-bit timer, 0=32-bit timer
55+
#define TIM_MST_BIT_WIDTH 16 // 16 or 32
5656

5757
#define TIM_MST_PCLK 2 // Select the peripheral clock number (1 or 2)
5858

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ extern "C" {
5151
#define TIM_MST_RESET_ON __HAL_RCC_TIM2_FORCE_RESET()
5252
#define TIM_MST_RESET_OFF __HAL_RCC_TIM2_RELEASE_RESET()
5353

54-
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
54+
#define TIM_MST_BIT_WIDTH 32 // 16 or 32
5555

5656
#define TIM_MST_PCLK 1 // Select the peripheral clock number (1 or 2)
5757

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ extern "C" {
5151
#define TIM_MST_RESET_ON __HAL_RCC_TIM2_FORCE_RESET()
5252
#define TIM_MST_RESET_OFF __HAL_RCC_TIM2_RELEASE_RESET()
5353

54-
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
54+
#define TIM_MST_BIT_WIDTH 32 // 16 or 32
5555

5656
#define TIM_MST_PCLK 1 // Select the peripheral clock number (1 or 2)
5757

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
#define TIM_MST_RESET_ON __HAL_RCC_TIM1_FORCE_RESET()
5353
#define TIM_MST_RESET_OFF __HAL_RCC_TIM1_RELEASE_RESET()
5454

55-
#define TIM_MST_16BIT 1 // 1=16-bit timer, 0=32-bit timer
55+
#define TIM_MST_BIT_WIDTH 16 // 16 or 32
5656

5757
#define TIM_MST_PCLK 2 // Select the peripheral clock number (1 or 2)
5858

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
#define TIM_MST_RESET_ON __HAL_RCC_TIM2_FORCE_RESET()
5252
#define TIM_MST_RESET_OFF __HAL_RCC_TIM2_RELEASE_RESET()
5353

54-
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
54+
#define TIM_MST_BIT_WIDTH 32 // 16 or 32
5555

5656
#define TIM_MST_PCLK 1 // Select the peripheral clock number (1 or 2)
5757

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
#define TIM_MST_RESET_ON __HAL_RCC_TIM2_FORCE_RESET()
5252
#define TIM_MST_RESET_OFF __HAL_RCC_TIM2_RELEASE_RESET()
5353

54-
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
54+
#define TIM_MST_BIT_WIDTH 32 // 16 or 32
5555

5656
#define TIM_MST_PCLK 1 // Select the peripheral clock number (1 or 2)
5757

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
#define TIM_MST_RESET_ON __HAL_RCC_TIM4_FORCE_RESET()
5252
#define TIM_MST_RESET_OFF __HAL_RCC_TIM4_RELEASE_RESET()
5353

54-
#define TIM_MST_16BIT 1 // 1=16-bit timer, 0=32-bit timer
54+
#define TIM_MST_BIT_WIDTH 16 // 16 or 32
5555

5656
#define TIM_MST_PCLK 1 // Select the peripheral clock number (1 or 2)
5757

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
#define TIM_MST_RESET_ON __HAL_RCC_TIM4_FORCE_RESET()
5252
#define TIM_MST_RESET_OFF __HAL_RCC_TIM4_RELEASE_RESET()
5353

54-
#define TIM_MST_16BIT 1 // 1=16-bit timer, 0=32-bit timer
54+
#define TIM_MST_BIT_WIDTH 16 // 16 or 32
5555

5656
#define TIM_MST_PCLK 1 // Select the peripheral clock number (1 or 2)
5757

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
#define TIM_MST_RESET_ON __HAL_RCC_TIM4_FORCE_RESET()
5252
#define TIM_MST_RESET_OFF __HAL_RCC_TIM4_RELEASE_RESET()
5353

54-
#define TIM_MST_16BIT 1 // 1=16-bit timer, 0=32-bit timer
54+
#define TIM_MST_BIT_WIDTH 16 // 16 or 32
5555

5656
#define TIM_MST_PCLK 1 // Select the peripheral clock number (1 or 2)
5757

0 commit comments

Comments
 (0)