diff --git a/targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/device/hal_tick.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/device/hal_tick.h index d6cc3f7e04..62c5f7a9f2 100644 --- a/targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/device/hal_tick.h +++ b/targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/device/hal_tick.h @@ -52,7 +52,7 @@ #define TIM_MST_16BIT 1 // A 16-bit timer is used -#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK2 +#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK2Freq() #define HAL_TICK_DELAY (1000) // 1 ms diff --git a/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/device/hal_tick.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/device/hal_tick.h index d6cc3f7e04..62c5f7a9f2 100644 --- a/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/device/hal_tick.h +++ b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/device/hal_tick.h @@ -52,7 +52,7 @@ #define TIM_MST_16BIT 1 // A 16-bit timer is used -#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK2 +#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK2Freq() #define HAL_TICK_DELAY (1000) // 1 ms diff --git a/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/device/hal_tick.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/device/hal_tick.h index ec1e50a3ae..bb33f459ba 100644 --- a/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/device/hal_tick.h +++ b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/device/hal_tick.h @@ -49,7 +49,7 @@ extern "C" { #define TIM_MST_RESET_ON __TIM2_FORCE_RESET() #define TIM_MST_RESET_OFF __TIM2_RELEASE_RESET() -#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1 +#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1Freq() #define HAL_TICK_DELAY (1000) // 1 ms diff --git a/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/device/hal_tick.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/device/hal_tick.h index ec1e50a3ae..bb33f459ba 100644 --- a/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/device/hal_tick.h +++ b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/device/hal_tick.h @@ -49,7 +49,7 @@ extern "C" { #define TIM_MST_RESET_ON __TIM2_FORCE_RESET() #define TIM_MST_RESET_OFF __TIM2_RELEASE_RESET() -#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1 +#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1Freq() #define HAL_TICK_DELAY (1000) // 1 ms diff --git a/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/device/hal_tick.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/device/hal_tick.h index d6cc3f7e04..62c5f7a9f2 100644 --- a/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/device/hal_tick.h +++ b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/device/hal_tick.h @@ -52,7 +52,7 @@ #define TIM_MST_16BIT 1 // A 16-bit timer is used -#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK2 +#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK2Freq() #define HAL_TICK_DELAY (1000) // 1 ms diff --git a/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/device/hal_tick.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/device/hal_tick.h index 556bac5d62..e6717a08f1 100644 --- a/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/device/hal_tick.h +++ b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/device/hal_tick.h @@ -49,7 +49,7 @@ #define TIM_MST_RESET_ON __TIM2_FORCE_RESET() #define TIM_MST_RESET_OFF __TIM2_RELEASE_RESET() -#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1 +#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1Freq() #define HAL_TICK_DELAY (1000) // 1 ms diff --git a/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/device/hal_tick.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/device/hal_tick.h index 556bac5d62..e6717a08f1 100644 --- a/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/device/hal_tick.h +++ b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/device/hal_tick.h @@ -49,7 +49,7 @@ #define TIM_MST_RESET_ON __TIM2_FORCE_RESET() #define TIM_MST_RESET_OFF __TIM2_RELEASE_RESET() -#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1 +#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1Freq() #define HAL_TICK_DELAY (1000) // 1 ms diff --git a/targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/device/hal_tick.h b/targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/device/hal_tick.h index 2e0bdfc263..b8d9db81e0 100644 --- a/targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/device/hal_tick.h +++ b/targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/device/hal_tick.h @@ -51,7 +51,7 @@ #define TIM_MST_16BIT 1 // A 16-bit timer is used -#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1 +#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1Freq() #define HAL_TICK_DELAY (1000) // 1 ms diff --git a/targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/device/hal_tick.h b/targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/device/hal_tick.h index 2e0bdfc263..b8d9db81e0 100644 --- a/targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/device/hal_tick.h +++ b/targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/device/hal_tick.h @@ -51,7 +51,7 @@ #define TIM_MST_16BIT 1 // A 16-bit timer is used -#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1 +#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1Freq() #define HAL_TICK_DELAY (1000) // 1 ms diff --git a/targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device/hal_tick.h b/targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device/hal_tick.h index 2e0bdfc263..b8d9db81e0 100644 --- a/targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device/hal_tick.h +++ b/targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/device/hal_tick.h @@ -51,7 +51,7 @@ #define TIM_MST_16BIT 1 // A 16-bit timer is used -#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1 +#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK1Freq() #define HAL_TICK_DELAY (1000) // 1 ms diff --git a/targets/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/device/hal_tick.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/device/hal_tick.h index 7f61af39ce..cf61e3cc40 100644 --- a/targets/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/device/hal_tick.h +++ b/targets/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/device/hal_tick.h @@ -51,7 +51,7 @@ #define TIM_MST_16BIT 1 // A 16-bit timer is used -#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK2 +#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK2Freq() #define HAL_TICK_DELAY (1000) // 1 ms diff --git a/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/device/hal_tick.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/device/hal_tick.h index 7f61af39ce..cf61e3cc40 100644 --- a/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/device/hal_tick.h +++ b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/device/hal_tick.h @@ -51,7 +51,7 @@ #define TIM_MST_16BIT 1 // A 16-bit timer is used -#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK2 +#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK2Freq() #define HAL_TICK_DELAY (1000) // 1 ms diff --git a/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/device/hal_tick.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/device/hal_tick.h index 7f61af39ce..cf61e3cc40 100644 --- a/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/device/hal_tick.h +++ b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/device/hal_tick.h @@ -51,7 +51,7 @@ #define TIM_MST_16BIT 1 // A 16-bit timer is used -#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK2 +#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK2Freq() #define HAL_TICK_DELAY (1000) // 1 ms diff --git a/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/device/hal_tick.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/device/hal_tick.h index 7f61af39ce..cf61e3cc40 100644 --- a/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/device/hal_tick.h +++ b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/device/hal_tick.h @@ -51,7 +51,7 @@ #define TIM_MST_16BIT 1 // A 16-bit timer is used -#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK2 +#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK2Freq() #define HAL_TICK_DELAY (1000) // 1 ms diff --git a/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/device/hal_tick.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/device/hal_tick.h index 7f61af39ce..cf61e3cc40 100644 --- a/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/device/hal_tick.h +++ b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/device/hal_tick.h @@ -51,7 +51,7 @@ #define TIM_MST_16BIT 1 // A 16-bit timer is used -#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK2 +#define TIM_MST_GET_PCLK_FREQ HAL_RCC_GetPCLK2Freq() #define HAL_TICK_DELAY (1000) // 1 ms