Skip to content

Commit 871489e

Browse files
author
Cruz Monrreal
authored
Merge pull request #7106 from bcostm/fix_HAL_GetTick
STM32: Replace HAL_GetTick
2 parents cbee41c + 11d0a83 commit 871489e

File tree

59 files changed

+33
-178
lines changed

Some content is hidden

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

59 files changed

+33
-178
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656

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

59-
#define HAL_TICK_DELAY (1000) // 1 ms
6059

6160
#ifdef __cplusplus
6261
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656

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

59-
#define HAL_TICK_DELAY (1000) // 1 ms
6059

6160
#ifdef __cplusplus
6261
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ extern "C" {
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ extern "C" {
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656

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

59-
#define HAL_TICK_DELAY (1000) // 1 ms
6059

6160
#ifdef __cplusplus
6261
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ extern "C" {
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F302x8/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303x8/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xC/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F303xE/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F334x8/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTB_MTS_DRAGONFLY/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xC/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F401xE/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407xG/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F410xB/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F411xE/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F412xG/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F429xI/device/hal_tick.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
59-
60-
void HAL_SuspendTick(void);
6158

6259
#ifdef __cplusplus
6360
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F437xG/device/hal_tick.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
59-
60-
void HAL_SuspendTick(void);
6158

6259
#ifdef __cplusplus
6360
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F446xE/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F469xI/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F746xG/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority);
6160

targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F756xG/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority);
6160

targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F767xI/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority);
6160

targets/TARGET_STM/TARGET_STM32F7/TARGET_STM32F769xI/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority);
6160

targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32L0/TARGET_STM32L053x8/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32L0/TARGET_STM32L072xZ/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32L0/TARGET_STM32L0x2xZ/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32L1/TARGET_MTB_MTS_XDOT/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32L1/TARGET_MTB_RAK811/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device/hal_tick.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

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

58-
#define HAL_TICK_DELAY (1000) // 1 ms
5958

6059
#ifdef __cplusplus
6160
}

0 commit comments

Comments
 (0)