Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfde1697

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 <frederic.pillon@st.com>
1 parentca8c3f4 commitfde1697

File tree

14 files changed

+1
-160
lines changed

14 files changed

+1
-160
lines changed

‎system/STM32F0xx/system_stm32f0xx.c‎

Lines changed: 1 addition & 14 deletions
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-
#defineHSE_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-
#defineHSI_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-
#defineHSI48_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‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,6 @@
7474
* @{
7575
*/
7676

77-
#if !defined (HSE_VALUE)
78-
#defineHSE_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-
#defineHSI_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‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,6 @@
4646

4747
#include"stm32f2xx.h"
4848

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

‎system/STM32F3xx/system_stm32f3xx.c‎

Lines changed: 0 additions & 9 deletions
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-
#defineHSE_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-
#defineHSI_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‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,6 @@
6464

6565
#include"stm32f4xx.h"
6666

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

‎system/STM32F7xx/system_stm32f7xx.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,6 @@
6363

6464
#include"stm32f7xx.h"
6565

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

‎system/STM32G0xx/system_stm32g0xx.c‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -78,22 +78,6 @@
7878

7979
#include"stm32g0xx.h"
8080

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

‎system/STM32G4xx/system_stm32g4xx.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,6 @@
7878

7979
#include"stm32g4xx.h"
8080

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

‎system/STM32H7xx/system_stm32h7xx.c‎

Lines changed: 0 additions & 13 deletions
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-
#defineHSE_VALUE ((uint32_t)25000000)/*!< Value of the External oscillator in Hz */
55-
#endif/* HSE_VALUE */
56-
57-
#if !defined (CSI_VALUE)
58-
#defineCSI_VALUE ((uint32_t)4000000)/*!< Value of the Internal oscillator in Hz*/
59-
#endif/* CSI_VALUE */
60-
61-
#if !defined (HSI_VALUE)
62-
#defineHSI_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‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,6 @@
4747

4848
#include"stm32l0xx.h"
4949

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp