Skip to content

Commit b0dceed

Browse files
committed
system(C0): update STM32C0xx system
Remove duplicate clock definition. Allow VECT_TAB_OFFSET redefinition. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 84c80bd commit b0dceed

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

system/STM32C0xx/system_stm32c0xx.c

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,6 @@
4545

4646
#include "stm32c0xx.h"
4747

48-
#if !defined (HSE_VALUE)
49-
#define HSE_VALUE (48000000UL) /*!< Value of the External oscillator in Hz */
50-
#endif /* HSE_VALUE */
51-
52-
#if !defined (HSI_VALUE)
53-
#define HSI_VALUE (48000000UL) /*!< Value of the Internal oscillator in Hz*/
54-
#endif /* HSI_VALUE */
55-
56-
#if !defined (LSI_VALUE)
57-
#define LSI_VALUE (32000UL) /*!< Value of LSI in Hz*/
58-
#endif /* LSI_VALUE */
59-
60-
#if !defined (LSE_VALUE)
61-
#define LSE_VALUE (32768UL) /*!< Value of LSE in Hz*/
62-
#endif /* LSE_VALUE */
63-
6448
/**
6549
* @}
6650
*/
@@ -81,8 +65,10 @@
8165
/*!< Uncomment the following line if you need to relocate your vector Table in
8266
Internal SRAM. */
8367
//#define VECT_TAB_SRAM
68+
#ifndef VECT_TAB_OFFSET
8469
#define VECT_TAB_OFFSET 0x0U /*!< Vector Table base offset field.
8570
This value must be a multiple of 0x100. */
71+
#endif
8672
/******************************************************************************/
8773
/**
8874
* @}

0 commit comments

Comments
 (0)