File tree Expand file tree Collapse file tree 38 files changed +125
-125
lines changed
targets/TARGET_STM/TARGET_STM32F4
TARGET_MTS_DRAGONFLY_F411RE/device
TARGET_MTS_MDOT_F405RG/device
TARGET_MTS_MDOT_F411RE/device
TARGET_UBLOX_EVK_ODIN_W2/device Expand file tree Collapse file tree 38 files changed +125
-125
lines changed Original file line number Diff line number Diff line change 44
44
45
45
#define TIM_MST TIM5
46
46
#define TIM_MST_IRQ TIM5_IRQn
47
- #define TIM_MST_RCC __TIM5_CLK_ENABLE ()
47
+ #define TIM_MST_RCC __HAL_RCC_TIM5_CLK_ENABLE ()
48
48
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 ()
51
51
52
52
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
53
53
Original file line number Diff line number Diff line change @@ -837,7 +837,7 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
837
837
/* The voltage scaling allows optimizing the power consumption when the device is
838
838
clocked below the maximum system frequency, to update the voltage scaling value
839
839
regarding system frequency refer to product datasheet. */
840
- __PWR_CLK_ENABLE ();
840
+ __HAL_RCC_PWR_CLK_ENABLE ();
841
841
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE2 );
842
842
843
843
/* Enable HSE oscillator and activate PLL with HSE as source */
@@ -896,7 +896,7 @@ uint8_t SetSysClock_PLL_HSI(void)
896
896
/* The voltage scaling allows optimizing the power consumption when the device is
897
897
clocked below the maximum system frequency, to update the voltage scaling value
898
898
regarding system frequency refer to product datasheet. */
899
- __PWR_CLK_ENABLE ();
899
+ __HAL_RCC_PWR_CLK_ENABLE ();
900
900
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE2 );
901
901
902
902
/* Enable HSI oscillator and activate PLL with HSI as source */
Original file line number Diff line number Diff line change 44
44
45
45
#define TIM_MST TIM5
46
46
#define TIM_MST_IRQ TIM5_IRQn
47
- #define TIM_MST_RCC __TIM5_CLK_ENABLE ()
47
+ #define TIM_MST_RCC __HAL_RCC_TIM5_CLK_ENABLE ()
48
48
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 ()
51
51
52
52
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
53
53
Original file line number Diff line number Diff line change @@ -778,7 +778,7 @@ void SetSysClock(void)
778
778
RCC_ClkInitTypeDef RCC_ClkInitStruct ;
779
779
RCC_OscInitTypeDef RCC_OscInitStruct ;
780
780
781
- __PWR_CLK_ENABLE ();
781
+ __HAL_RCC_PWR_CLK_ENABLE ();
782
782
783
783
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE2 );
784
784
Original file line number Diff line number Diff line change 44
44
45
45
#define TIM_MST TIM5
46
46
#define TIM_MST_IRQ TIM5_IRQn
47
- #define TIM_MST_RCC __TIM5_CLK_ENABLE ()
47
+ #define TIM_MST_RCC __HAL_RCC_TIM5_CLK_ENABLE ()
48
48
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 ()
51
51
52
52
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
53
53
Original file line number Diff line number Diff line change @@ -842,7 +842,7 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
842
842
/* The voltage scaling allows optimizing the power consumption when the device is
843
843
clocked below the maximum system frequency, to update the voltage scaling value
844
844
regarding system frequency refer to product datasheet. */
845
- __PWR_CLK_ENABLE ();
845
+ __HAL_RCC_PWR_CLK_ENABLE ();
846
846
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE2 );
847
847
848
848
/* Enable HSE oscillator and activate PLL with HSE as source */
@@ -899,7 +899,7 @@ uint8_t SetSysClock_PLL_HSI(void)
899
899
/* The voltage scaling allows optimizing the power consumption when the device is
900
900
clocked below the maximum system frequency, to update the voltage scaling value
901
901
regarding system frequency refer to product datasheet. */
902
- __PWR_CLK_ENABLE ();
902
+ __HAL_RCC_PWR_CLK_ENABLE ();
903
903
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE2 );
904
904
905
905
/* Enable HSI oscillator and activate PLL with HSI as source */
Original file line number Diff line number Diff line change @@ -835,7 +835,7 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
835
835
/* The voltage scaling allows optimizing the power consumption when the device is
836
836
clocked below the maximum system frequency, to update the voltage scaling value
837
837
regarding system frequency refer to product datasheet. */
838
- __PWR_CLK_ENABLE ();
838
+ __HAL_RCC_PWR_CLK_ENABLE ();
839
839
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE2 );
840
840
841
841
/* Enable HSE oscillator and activate PLL with HSE as source */
@@ -893,7 +893,7 @@ uint8_t SetSysClock_PLL_HSI(void)
893
893
/* The voltage scaling allows optimizing the power consumption when the device is
894
894
clocked below the maximum system frequency, to update the voltage scaling value
895
895
regarding system frequency refer to product datasheet. */
896
- __PWR_CLK_ENABLE ();
896
+ __HAL_RCC_PWR_CLK_ENABLE ();
897
897
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE2 );
898
898
899
899
/* Enable HSI oscillator and activate PLL with HSI as source */
Original file line number Diff line number Diff line change 44
44
45
45
#define TIM_MST TIM5
46
46
#define TIM_MST_IRQ TIM5_IRQn
47
- #define TIM_MST_RCC __TIM5_CLK_ENABLE ()
47
+ #define TIM_MST_RCC __HAL_RCC_TIM5_CLK_ENABLE ()
48
48
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 ()
51
51
52
52
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
53
53
Original file line number Diff line number Diff line change @@ -835,7 +835,7 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
835
835
/* The voltage scaling allows optimizing the power consumption when the device is
836
836
clocked below the maximum system frequency, to update the voltage scaling value
837
837
regarding system frequency refer to product datasheet. */
838
- __PWR_CLK_ENABLE ();
838
+ __HAL_RCC_PWR_CLK_ENABLE ();
839
839
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE2 );
840
840
841
841
/* Enable HSE oscillator and activate PLL with HSE as source */
@@ -893,7 +893,7 @@ uint8_t SetSysClock_PLL_HSI(void)
893
893
/* The voltage scaling allows optimizing the power consumption when the device is
894
894
clocked below the maximum system frequency, to update the voltage scaling value
895
895
regarding system frequency refer to product datasheet. */
896
- __PWR_CLK_ENABLE ();
896
+ __HAL_RCC_PWR_CLK_ENABLE ();
897
897
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE2 );
898
898
899
899
/* Enable HSI oscillator and activate PLL with HSI as source */
Original file line number Diff line number Diff line change 44
44
45
45
#define TIM_MST TIM5
46
46
#define TIM_MST_IRQ TIM5_IRQn
47
- #define TIM_MST_RCC __TIM5_CLK_ENABLE ()
47
+ #define TIM_MST_RCC __HAL_RCC_TIM5_CLK_ENABLE ()
48
48
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 ()
51
51
52
52
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
53
53
Original file line number Diff line number Diff line change @@ -1001,7 +1001,7 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
1001
1001
/* The voltage scaling allows optimizing the power consumption when the device is
1002
1002
clocked below the maximum system frequency, to update the voltage scaling value
1003
1003
regarding system frequency refer to product datasheet. */
1004
- __PWR_CLK_ENABLE ();
1004
+ __HAL_RCC_PWR_CLK_ENABLE ();
1005
1005
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE2 );
1006
1006
1007
1007
/* Enable HSE oscillator and activate PLL with HSE as source */
@@ -1060,7 +1060,7 @@ uint8_t SetSysClock_PLL_HSI(void)
1060
1060
/* The voltage scaling allows optimizing the power consumption when the device is
1061
1061
clocked below the maximum system frequency, to update the voltage scaling value
1062
1062
regarding system frequency refer to product datasheet. */
1063
- __PWR_CLK_ENABLE ();
1063
+ __HAL_RCC_PWR_CLK_ENABLE ();
1064
1064
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE2 );
1065
1065
1066
1066
/* Enable HSI oscillator and activate PLL with HSI as source */
Original file line number Diff line number Diff line change @@ -1001,7 +1001,7 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
1001
1001
/* The voltage scaling allows optimizing the power consumption when the device is
1002
1002
clocked below the maximum system frequency, to update the voltage scaling value
1003
1003
regarding system frequency refer to product datasheet. */
1004
- __PWR_CLK_ENABLE ();
1004
+ __HAL_RCC_PWR_CLK_ENABLE ();
1005
1005
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE2 );
1006
1006
1007
1007
/* Enable HSE oscillator and activate PLL with HSE as source */
@@ -1060,7 +1060,7 @@ uint8_t SetSysClock_PLL_HSI(void)
1060
1060
/* The voltage scaling allows optimizing the power consumption when the device is
1061
1061
clocked below the maximum system frequency, to update the voltage scaling value
1062
1062
regarding system frequency refer to product datasheet. */
1063
- __PWR_CLK_ENABLE ();
1063
+ __HAL_RCC_PWR_CLK_ENABLE ();
1064
1064
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE2 );
1065
1065
1066
1066
/* Enable HSI oscillator and activate PLL with HSI as source */
Original file line number Diff line number Diff line change 44
44
45
45
#define TIM_MST TIM5
46
46
#define TIM_MST_IRQ TIM5_IRQn
47
- #define TIM_MST_RCC __TIM5_CLK_ENABLE ()
47
+ #define TIM_MST_RCC __HAL_RCC_TIM5_CLK_ENABLE ()
48
48
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 ()
51
51
52
52
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
53
53
Original file line number Diff line number Diff line change @@ -819,7 +819,7 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
819
819
/* The voltage scaling allows optimizing the power consumption when the device is
820
820
clocked below the maximum system frequency, to update the voltage scaling value
821
821
regarding system frequency refer to product datasheet. */
822
- __PWR_CLK_ENABLE ();
822
+ __HAL_RCC_PWR_CLK_ENABLE ();
823
823
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE2 );
824
824
825
825
/* Enable HSE oscillator and activate PLL with HSE as source */
@@ -879,7 +879,7 @@ uint8_t SetSysClock_PLL_HSI(void)
879
879
/* The voltage scaling allows optimizing the power consumption when the device is
880
880
clocked below the maximum system frequency, to update the voltage scaling value
881
881
regarding system frequency refer to product datasheet. */
882
- __PWR_CLK_ENABLE ();
882
+ __HAL_RCC_PWR_CLK_ENABLE ();
883
883
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE2 );
884
884
885
885
/* Enable HSI oscillator and activate PLL with HSI as source */
Original file line number Diff line number Diff line change 44
44
45
45
#define TIM_MST TIM5
46
46
#define TIM_MST_IRQ TIM5_IRQn
47
- #define TIM_MST_RCC __TIM5_CLK_ENABLE ()
47
+ #define TIM_MST_RCC __HAL_RCC_TIM5_CLK_ENABLE ()
48
48
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 ()
51
51
52
52
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
53
53
Original file line number Diff line number Diff line change @@ -836,7 +836,7 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
836
836
/* The voltage scaling allows optimizing the power consumption when the device is
837
837
clocked below the maximum system frequency, to update the voltage scaling value
838
838
regarding system frequency refer to product datasheet. */
839
- __PWR_CLK_ENABLE ();
839
+ __HAL_RCC_PWR_CLK_ENABLE ();
840
840
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE2 );
841
841
842
842
/* Enable HSE oscillator and activate PLL with HSE as source */
@@ -900,7 +900,7 @@ uint8_t SetSysClock_PLL_HSI(void)
900
900
/* The voltage scaling allows optimizing the power consumption when the device is
901
901
clocked below the maximum system frequency, to update the voltage scaling value
902
902
regarding system frequency refer to product datasheet. */
903
- __PWR_CLK_ENABLE ();
903
+ __HAL_RCC_PWR_CLK_ENABLE ();
904
904
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE2 );
905
905
906
906
/* Enable HSI oscillator and activate PLL with HSI as source */
Original file line number Diff line number Diff line change @@ -836,7 +836,7 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
836
836
/* The voltage scaling allows optimizing the power consumption when the device is
837
837
clocked below the maximum system frequency, to update the voltage scaling value
838
838
regarding system frequency refer to product datasheet. */
839
- __PWR_CLK_ENABLE ();
839
+ __HAL_RCC_PWR_CLK_ENABLE ();
840
840
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE2 );
841
841
842
842
/* Enable HSE oscillator and activate PLL with HSE as source */
@@ -895,7 +895,7 @@ uint8_t SetSysClock_PLL_HSI(void)
895
895
/* The voltage scaling allows optimizing the power consumption when the device is
896
896
clocked below the maximum system frequency, to update the voltage scaling value
897
897
regarding system frequency refer to product datasheet. */
898
- __PWR_CLK_ENABLE ();
898
+ __HAL_RCC_PWR_CLK_ENABLE ();
899
899
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE2 );
900
900
901
901
/* Enable HSI oscillator and activate PLL with HSI as source */
Original file line number Diff line number Diff line change 44
44
45
45
#define TIM_MST TIM5
46
46
#define TIM_MST_IRQ TIM5_IRQn
47
- #define TIM_MST_RCC __TIM5_CLK_ENABLE ()
47
+ #define TIM_MST_RCC __HAL_RCC_TIM5_CLK_ENABLE ()
48
48
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 ()
51
51
52
52
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
53
53
Original file line number Diff line number Diff line change @@ -870,8 +870,8 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
870
870
PeriphClkInitStruct .PLLI2S .PLLI2SM = 8 ;
871
871
PeriphClkInitStruct .PLLI2S .PLLI2SQ = 4 ;
872
872
PeriphClkInitStruct .PLLI2S .PLLI2SN = 192 ;
873
- PeriphClkInitStruct .PeriphClockSelection = RCC_PERIPHCLK_CK48 ;
874
- PeriphClkInitStruct .Clk48ClockSelection = RCC_CK48CLKSOURCE_PLLI2SQ ;
873
+ PeriphClkInitStruct .PeriphClockSelection = RCC_PERIPHCLK_CLK48 ;
874
+ PeriphClkInitStruct .Clk48ClockSelection = RCC_CLK48CLKSOURCE_PLLI2SQ ;
875
875
876
876
HAL_RCCEx_PeriphCLKConfig (& PeriphClkInitStruct );
877
877
@@ -939,8 +939,8 @@ uint8_t SetSysClock_PLL_HSI(void)
939
939
PeriphClkInitStruct .PLLI2S .PLLI2SM = 8 ;
940
940
PeriphClkInitStruct .PLLI2S .PLLI2SQ = 4 ;
941
941
PeriphClkInitStruct .PLLI2S .PLLI2SN = 192 ;
942
- PeriphClkInitStruct .PeriphClockSelection = RCC_PERIPHCLK_CK48 ;
943
- PeriphClkInitStruct .Clk48ClockSelection = RCC_CK48CLKSOURCE_PLLI2SQ ;
942
+ PeriphClkInitStruct .PeriphClockSelection = RCC_PERIPHCLK_CLK48 ;
943
+ PeriphClkInitStruct .Clk48ClockSelection = RCC_CLK48CLKSOURCE_PLLI2SQ ;
944
944
945
945
HAL_RCCEx_PeriphCLKConfig (& PeriphClkInitStruct );
946
946
Original file line number Diff line number Diff line change 44
44
45
45
#define TIM_MST TIM5
46
46
#define TIM_MST_IRQ TIM5_IRQn
47
- #define TIM_MST_RCC __TIM5_CLK_ENABLE ()
47
+ #define TIM_MST_RCC __HAL_RCC_TIM5_CLK_ENABLE ()
48
48
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 ()
51
51
52
52
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
53
53
Original file line number Diff line number Diff line change @@ -785,7 +785,7 @@ void SetSysClock(void)
785
785
RCC_OscInitTypeDef RCC_OscInitStruct ;
786
786
RCC_ClkInitTypeDef RCC_ClkInitStruct ;
787
787
788
- __PWR_CLK_ENABLE ();
788
+ __HAL_RCC_PWR_CLK_ENABLE ();
789
789
790
790
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE1 );
791
791
@@ -823,7 +823,7 @@ void SetSysClock(void)
823
823
RCC_OscInitTypeDef RCC_OscInitStruct ;
824
824
RCC_ClkInitTypeDef RCC_ClkInitStruct ;
825
825
826
- __PWR_CLK_ENABLE ();
826
+ __HAL_RCC_PWR_CLK_ENABLE ();
827
827
828
828
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE1 );
829
829
@@ -837,7 +837,7 @@ void SetSysClock(void)
837
837
RCC_OscInitStruct .PLL .PLLQ = 7 ;
838
838
HAL_RCC_OscConfig (& RCC_OscInitStruct );
839
839
840
- HAL_PWREx_ActivateOverDrive ();
840
+ HAL_PWREx_EnableOverDrive ();
841
841
842
842
RCC_ClkInitStruct .ClockType = RCC_CLOCKTYPE_SYSCLK |RCC_CLOCKTYPE_PCLK1
843
843
|RCC_CLOCKTYPE_PCLK2 ;
Original file line number Diff line number Diff line change @@ -786,7 +786,7 @@ void SetSysClock(void)
786
786
RCC_OscInitTypeDef RCC_OscInitStruct ;
787
787
RCC_ClkInitTypeDef RCC_ClkInitStruct ;
788
788
789
- __PWR_CLK_ENABLE ();
789
+ __HAL_RCC_PWR_CLK_ENABLE ();
790
790
791
791
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE1 );
792
792
@@ -824,7 +824,7 @@ void SetSysClock(void)
824
824
RCC_OscInitTypeDef RCC_OscInitStruct ;
825
825
RCC_ClkInitTypeDef RCC_ClkInitStruct ;
826
826
827
- __PWR_CLK_ENABLE ();
827
+ __HAL_RCC_PWR_CLK_ENABLE ();
828
828
829
829
__HAL_PWR_VOLTAGESCALING_CONFIG (PWR_REGULATOR_VOLTAGE_SCALE1 );
830
830
@@ -838,7 +838,7 @@ void SetSysClock(void)
838
838
RCC_OscInitStruct .PLL .PLLQ = 7 ;
839
839
HAL_RCC_OscConfig (& RCC_OscInitStruct );
840
840
841
- HAL_PWREx_ActivateOverDrive ();
841
+ HAL_PWREx_EnableOverDrive ();
842
842
843
843
RCC_ClkInitStruct .ClockType = RCC_CLOCKTYPE_SYSCLK |RCC_CLOCKTYPE_PCLK1
844
844
|RCC_CLOCKTYPE_PCLK2 ;
Original file line number Diff line number Diff line change 44
44
45
45
#define TIM_MST TIM5
46
46
#define TIM_MST_IRQ TIM5_IRQn
47
- #define TIM_MST_RCC __TIM5_CLK_ENABLE ()
47
+ #define TIM_MST_RCC __HAL_RCC_TIM5_CLK_ENABLE ()
48
48
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 ()
51
51
52
52
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
53
53
You can’t perform that action at this time.
0 commit comments