Skip to content

Commit ae2c338

Browse files
committed
system(U0): update STM32U0xx system
Remove duplicate clock definition. Allow VECT_TAB_OFFSET redefinition. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent a19f8e1 commit ae2c338

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

system/STM32U0xx/system_stm32u0xx.c

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -77,26 +77,6 @@
7777

7878
#include "stm32u0xx.h"
7979

80-
#if !defined (HSE_VALUE)
81-
#define HSE_VALUE (32000000U) /*!< Value of the External oscillator in Hz */
82-
#endif /* HSE_VALUE */
83-
84-
#if !defined (HSI_VALUE)
85-
#define HSI_VALUE (16000000UL) /*!< Value of the Internal oscillator in Hz*/
86-
#endif /* HSI_VALUE */
87-
88-
#if !defined (MSI_VALUE)
89-
#define MSI_VALUE (4000000UL) /*!< Value of the Internal oscillator in Hz*/
90-
#endif /* MSI_VALUE */
91-
92-
#if !defined (LSI_VALUE)
93-
#define LSI_VALUE (32000UL) /*!< Value of the Internal oscillator in Hz */
94-
#endif /* LSI_VALUE */
95-
96-
#if !defined (LSE_VALUE)
97-
#define LSE_VALUE (32768UL) /*!< Value of the External oscillator in Hz */
98-
#endif /* LSE_VALUE */
99-
10080
/**
10181
* @}
10282
*/
@@ -117,9 +97,11 @@
11797
/*!< Uncomment the following line if you need to relocate your vector Table in
11898
Internal SRAM. */
11999
//#define VECT_TAB_SRAM
100+
#ifndef VECT_TAB_OFFSET
120101
#define VECT_TAB_OFFSET 0x0U /*!< Vector Table base offset field.
121102
This value must be a multiple of 0x200. */
122103

104+
#endif /* VECT_TAB_OFFSET */
123105
/*!< Comment the following line if you would like to disable the software
124106
workaround related to debug access in case RDP=1 and Boot_Lock=1 */
125107
#define ENABLE_DBG_SWEN /*!< Enable the debugger read access. */

0 commit comments

Comments
 (0)