Skip to content

Commit fde1697

Browse files
committed
Remove oscillator value from the system source file
This will avoid any confusion as defined in the HAL conf. Signed-off-by: Frederic Pillon <[email protected]>
1 parent ca8c3f4 commit fde1697

File tree

14 files changed

+1
-160
lines changed

14 files changed

+1
-160
lines changed

system/STM32F0xx/system_stm32f0xx.c

+1-14
Original file line numberDiff line numberDiff line change
@@ -80,20 +80,7 @@
8080
/** @addtogroup STM32F0xx_System_Private_Defines
8181
* @{
8282
*/
83-
#if !defined (HSE_VALUE)
84-
#define HSE_VALUE ((uint32_t)8000000) /*!< Default value of the External oscillator in Hz.
85-
This value can be provided and adapted by the user application. */
86-
#endif /* HSE_VALUE */
87-
88-
#if !defined (HSI_VALUE)
89-
#define HSI_VALUE ((uint32_t)8000000) /*!< Default value of the Internal oscillator in Hz.
90-
This value can be provided and adapted by the user application. */
91-
#endif /* HSI_VALUE */
92-
93-
#if !defined (HSI48_VALUE)
94-
#define HSI48_VALUE ((uint32_t)48000000) /*!< Default value of the HSI48 Internal oscillator in Hz.
95-
This value can be provided and adapted by the user application. */
96-
#endif /* HSI48_VALUE */
83+
9784
/**
9885
* @}
9986
*/

system/STM32F1xx/system_stm32f1xx.c

-10
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,6 @@
7474
* @{
7575
*/
7676

77-
#if !defined (HSE_VALUE)
78-
#define HSE_VALUE 8000000U /*!< Default value of the External oscillator in Hz.
79-
This value can be provided and adapted by the user application. */
80-
#endif /* HSE_VALUE */
81-
82-
#if !defined (HSI_VALUE)
83-
#define HSI_VALUE 8000000U /*!< Default value of the Internal oscillator in Hz.
84-
This value can be provided and adapted by the user application. */
85-
#endif /* HSI_VALUE */
86-
8777
/*!< Uncomment the following line if you need to use external SRAM */
8878
#if defined(STM32F100xE) || defined(STM32F101xE) || defined(STM32F101xG) || defined(STM32F103xE) || defined(STM32F103xG)
8979
/* #define DATA_IN_ExtSRAM */

system/STM32F2xx/system_stm32f2xx.c

-8
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,6 @@
4646

4747
#include "stm32f2xx.h"
4848

49-
#if !defined (HSE_VALUE)
50-
#define HSE_VALUE ((uint32_t)25000000) /*!< Default value of the External oscillator in Hz */
51-
#endif /* HSE_VALUE */
52-
53-
#if !defined (HSI_VALUE)
54-
#define HSI_VALUE ((uint32_t)16000000) /*!< Value of the Internal oscillator in Hz*/
55-
#endif /* HSI_VALUE */
56-
5749
/**
5850
* @}
5951
*/

system/STM32F3xx/system_stm32f3xx.c

-9
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,6 @@
8484
/** @addtogroup STM32F3xx_System_Private_Defines
8585
* @{
8686
*/
87-
#if !defined (HSE_VALUE)
88-
#define HSE_VALUE ((uint32_t)8000000) /*!< Default value of the External oscillator in Hz.
89-
This value can be provided and adapted by the user application. */
90-
#endif /* HSE_VALUE */
91-
92-
#if !defined (HSI_VALUE)
93-
#define HSI_VALUE ((uint32_t)8000000) /*!< Default value of the Internal oscillator in Hz.
94-
This value can be provided and adapted by the user application. */
95-
#endif /* HSI_VALUE */
9687

9788
/*!< Uncomment the following line if you need to relocate your vector Table in
9889
Internal SRAM. */

system/STM32F4xx/system_stm32f4xx.c

-8
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,6 @@
6464

6565
#include "stm32f4xx.h"
6666

67-
#if !defined (HSE_VALUE)
68-
#define HSE_VALUE ((uint32_t)25000000) /*!< Default value of the External oscillator in Hz */
69-
#endif /* HSE_VALUE */
70-
71-
#if !defined (HSI_VALUE)
72-
#define HSI_VALUE ((uint32_t)16000000) /*!< Value of the Internal oscillator in Hz*/
73-
#endif /* HSI_VALUE */
74-
7567
/**
7668
* @}
7769
*/

system/STM32F7xx/system_stm32f7xx.c

-8
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,6 @@
6363

6464
#include "stm32f7xx.h"
6565

66-
#if !defined (HSE_VALUE)
67-
#define HSE_VALUE ((uint32_t)25000000) /*!< Default value of the External oscillator in Hz */
68-
#endif /* HSE_VALUE */
69-
70-
#if !defined (HSI_VALUE)
71-
#define HSI_VALUE ((uint32_t)16000000) /*!< Value of the Internal oscillator in Hz*/
72-
#endif /* HSI_VALUE */
73-
7466
/**
7567
* @}
7668
*/

system/STM32G0xx/system_stm32g0xx.c

-16
Original file line numberDiff line numberDiff line change
@@ -78,22 +78,6 @@
7878

7979
#include "stm32g0xx.h"
8080

81-
#if !defined (HSE_VALUE)
82-
#define HSE_VALUE (8000000UL) /*!< Value of the External oscillator in Hz */
83-
#endif /* HSE_VALUE */
84-
85-
#if !defined (HSI_VALUE)
86-
#define HSI_VALUE (16000000UL) /*!< Value of the Internal oscillator in Hz*/
87-
#endif /* HSI_VALUE */
88-
89-
#if !defined (LSI_VALUE)
90-
#define LSI_VALUE (32000UL) /*!< Value of LSI in Hz*/
91-
#endif /* LSI_VALUE */
92-
93-
#if !defined (LSE_VALUE)
94-
#define LSE_VALUE (32768UL) /*!< Value of LSE in Hz*/
95-
#endif /* LSE_VALUE */
96-
9781
/**
9882
* @}
9983
*/

system/STM32G4xx/system_stm32g4xx.c

-8
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,6 @@
7878

7979
#include "stm32g4xx.h"
8080

81-
#if !defined (HSE_VALUE)
82-
#define HSE_VALUE 8000000U /*!< Value of the External oscillator in Hz */
83-
#endif /* HSE_VALUE */
84-
85-
#if !defined (HSI_VALUE)
86-
#define HSI_VALUE 16000000U /*!< Value of the Internal oscillator in Hz*/
87-
#endif /* HSI_VALUE */
88-
8981
/**
9082
* @}
9183
*/

system/STM32H7xx/system_stm32h7xx.c

-13
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,6 @@
5050
#include "stm32h7xx.h"
5151
#include <math.h>
5252

53-
#if !defined (HSE_VALUE)
54-
#define HSE_VALUE ((uint32_t)25000000) /*!< Value of the External oscillator in Hz */
55-
#endif /* HSE_VALUE */
56-
57-
#if !defined (CSI_VALUE)
58-
#define CSI_VALUE ((uint32_t)4000000) /*!< Value of the Internal oscillator in Hz*/
59-
#endif /* CSI_VALUE */
60-
61-
#if !defined (HSI_VALUE)
62-
#define HSI_VALUE ((uint32_t)64000000) /*!< Value of the Internal oscillator in Hz*/
63-
#endif /* HSI_VALUE */
64-
65-
6653
/**
6754
* @}
6855
*/

system/STM32L0xx/system_stm32l0xx.c

-13
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,6 @@
4747

4848
#include "stm32l0xx.h"
4949

50-
#if !defined (HSE_VALUE)
51-
#define HSE_VALUE ((uint32_t)8000000U) /*!< Value of the External oscillator in Hz */
52-
#endif /* HSE_VALUE */
53-
54-
#if !defined (MSI_VALUE)
55-
#define MSI_VALUE ((uint32_t)2097152U) /*!< Value of the Internal oscillator in Hz*/
56-
#endif /* MSI_VALUE */
57-
58-
#if !defined (HSI_VALUE)
59-
#define HSI_VALUE ((uint32_t)16000000U) /*!< Value of the Internal oscillator in Hz*/
60-
#endif /* HSI_VALUE */
61-
62-
6350
/**
6451
* @}
6552
*/

system/STM32L1xx/system_stm32l1xx.c

-9
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,6 @@
6161
/** @addtogroup STM32L1xx_System_Private_Defines
6262
* @{
6363
*/
64-
#if !defined (HSE_VALUE)
65-
#define HSE_VALUE ((uint32_t)8000000U) /*!< Default value of the External oscillator in Hz.
66-
This value can be provided and adapted by the user application. */
67-
#endif /* HSE_VALUE */
68-
69-
#if !defined (HSI_VALUE)
70-
#define HSI_VALUE ((uint32_t)8000000U) /*!< Default value of the Internal oscillator in Hz.
71-
This value can be provided and adapted by the user application. */
72-
#endif /* HSI_VALUE */
7364

7465
/*!< Uncomment the following line if you need to use external SRAM mounted
7566
on STM32L152D_EVAL board as data memory */

system/STM32L4xx/system_stm32l4xx.c

-12
Original file line numberDiff line numberDiff line change
@@ -91,18 +91,6 @@
9191

9292
#include "stm32l4xx.h"
9393

94-
#if !defined (HSE_VALUE)
95-
#define HSE_VALUE 8000000U /*!< Value of the External oscillator in Hz */
96-
#endif /* HSE_VALUE */
97-
98-
#if !defined (MSI_VALUE)
99-
#define MSI_VALUE 4000000U /*!< Value of the Internal oscillator in Hz*/
100-
#endif /* MSI_VALUE */
101-
102-
#if !defined (HSI_VALUE)
103-
#define HSI_VALUE 16000000U /*!< Value of the Internal oscillator in Hz*/
104-
#endif /* HSI_VALUE */
105-
10694
/**
10795
* @}
10896
*/

system/STM32MP1xx/system_stm32mp1xx.c

-12
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,6 @@
5050

5151
#include "stm32mp1xx.h"
5252

53-
#if !defined (HSE_VALUE)
54-
#define HSE_VALUE ((uint32_t)24000000) /*!< Value of the External oscillator in Hz : FPGA case fixed to 60MHZ */
55-
#endif /* HSE_VALUE */
56-
57-
#if !defined (HSI_VALUE)
58-
#define HSI_VALUE ((uint32_t)64000000) /*!< Value of the Internal oscillator in Hz*/
59-
#endif /* HSI_VALUE */
60-
61-
#if !defined (CSI_VALUE)
62-
#define CSI_VALUE 4000000U /*!< Value of the Internal oscillator in Hz*/
63-
#endif /* CSI_VALUE */
64-
6553
/**
6654
* @}
6755
*/

system/STM32WBxx/system_stm32wbxx.c

-20
Original file line numberDiff line numberDiff line change
@@ -85,26 +85,6 @@
8585

8686
#include "stm32wbxx.h"
8787

88-
#if !defined (HSE_VALUE)
89-
#define HSE_VALUE (32000000UL) /*!< Value of the External oscillator in Hz */
90-
#endif /* HSE_VALUE */
91-
92-
#if !defined (MSI_VALUE)
93-
#define MSI_VALUE (4000000UL) /*!< Value of the Internal oscillator in Hz*/
94-
#endif /* MSI_VALUE */
95-
96-
#if !defined (HSI_VALUE)
97-
#define HSI_VALUE (16000000UL) /*!< Value of the Internal oscillator in Hz*/
98-
#endif /* HSI_VALUE */
99-
100-
#if !defined (LSI_VALUE)
101-
#define LSI_VALUE (32000UL) /*!< Value of LSI in Hz*/
102-
#endif /* LSI_VALUE */
103-
104-
#if !defined (LSE_VALUE)
105-
#define LSE_VALUE (32768UL) /*!< Value of LSE in Hz*/
106-
#endif /* LSE_VALUE */
107-
10888
/**
10989
* @}
11090
*/

0 commit comments

Comments
 (0)