Skip to content

Commit ef28b74

Browse files
committed
EFM32: move __Vectors from header to source
1 parent 0fdb9f2 commit ef28b74

File tree

20 files changed

+70
-70
lines changed

20 files changed

+70
-70
lines changed

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG/device/system_efm32gg.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
/** ULFRCO frequency. */
4141
#define EFM32_ULFRCO_FREQ (1000UL)
4242

43+
#if defined(__VTOR_PRESENT) && (__VTOR_PRESENT == 1U)
44+
#if defined(__ICCARM__) /* IAR requires the __vector_table symbol */
45+
#define __Vectors __vector_table
46+
#endif
47+
extern const tVectorEntry __Vectors[];
48+
#endif
49+
4350
/*******************************************************************************
4451
************************** LOCAL VARIABLES ********************************
4552
******************************************************************************/

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG/device/system_efm32gg.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,6 @@ typedef union {
6262

6363
extern uint32_t SystemCoreClock; /**< System Clock Frequency (Core Clock) */
6464

65-
#if defined(__VTOR_PRESENT) && (__VTOR_PRESENT == 1U)
66-
#if defined(__ICCARM__) /* IAR requires the __vector_table symbol */
67-
#define __Vectors __vector_table
68-
#endif
69-
extern const tVectorEntry __Vectors[];
70-
#endif
71-
7265
/*******************************************************************************
7366
***************************** PROTOTYPES **********************************
7467
******************************************************************************/

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG11/device/system_efm32gg11b.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
/** ULFRCO frequency */
4141
#define EFM32_ULFRCO_FREQ (1000UL)
4242

43+
#if defined(__VTOR_PRESENT) && (__VTOR_PRESENT == 1U)
44+
#if defined(__ICCARM__) /* IAR requires the __vector_table symbol */
45+
#define __Vectors __vector_table
46+
#endif
47+
extern const tVectorEntry __Vectors[];
48+
#endif
49+
4350
/*******************************************************************************
4451
************************** LOCAL VARIABLES ********************************
4552
******************************************************************************/

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG11/device/system_efm32gg11b.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,6 @@ typedef union {
6363
extern uint32_t SystemCoreClock; /**< System Clock Frequency (Core Clock) */
6464
extern uint32_t SystemHfrcoFreq; /**< System HFRCO frequency */
6565

66-
#if defined(__VTOR_PRESENT) && (__VTOR_PRESENT == 1U)
67-
#if defined(__ICCARM__) /* IAR requires the __vector_table symbol */
68-
#define __Vectors __vector_table
69-
#endif
70-
extern const tVectorEntry __Vectors[];
71-
#endif
72-
7366
/*******************************************************************************
7467
***************************** PROTOTYPES **********************************
7568
******************************************************************************/

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG/device/system_efm32hg.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
/** ULFRCO frequency. */
4141
#define EFM32_ULFRCO_FREQ (1000UL)
4242

43+
#if defined(__VTOR_PRESENT) && (__VTOR_PRESENT == 1U)
44+
#if defined(__ICCARM__) /* IAR requires the __vector_table symbol */
45+
#define __Vectors __vector_table
46+
#endif
47+
extern const tVectorEntry __Vectors[];
48+
#endif
49+
4350
/*******************************************************************************
4451
************************** LOCAL VARIABLES ********************************
4552
******************************************************************************/

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG/device/system_efm32hg.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,6 @@ typedef union {
6262

6363
extern uint32_t SystemCoreClock; /**< System Clock Frequency (Core Clock) */
6464

65-
#if defined(__VTOR_PRESENT) && (__VTOR_PRESENT == 1U)
66-
#if defined(__ICCARM__) /* IAR requires the __vector_table symbol */
67-
#define __Vectors __vector_table
68-
#endif
69-
extern const tVectorEntry __Vectors[];
70-
#endif
71-
7265
/*******************************************************************************
7366
***************************** PROTOTYPES **********************************
7467
******************************************************************************/

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG/device/system_efm32lg.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
/** ULFRCO frequency. */
4141
#define EFM32_ULFRCO_FREQ (1000UL)
4242

43+
#if defined(__VTOR_PRESENT) && (__VTOR_PRESENT == 1U)
44+
#if defined(__ICCARM__) /* IAR requires the __vector_table symbol */
45+
#define __Vectors __vector_table
46+
#endif
47+
extern const tVectorEntry __Vectors[];
48+
#endif
49+
4350
/*******************************************************************************
4451
************************** LOCAL VARIABLES ********************************
4552
******************************************************************************/

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG/device/system_efm32lg.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,6 @@ typedef union {
6262

6363
extern uint32_t SystemCoreClock; /**< System Clock Frequency (Core Clock) */
6464

65-
#if defined(__VTOR_PRESENT) && (__VTOR_PRESENT == 1U)
66-
#if defined(__ICCARM__) /* IAR requires the __vector_table symbol */
67-
#define __Vectors __vector_table
68-
#endif
69-
extern const tVectorEntry __Vectors[];
70-
#endif
71-
7265
/*******************************************************************************
7366
***************************** PROTOTYPES **********************************
7467
******************************************************************************/

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG/device/system_efm32pg1b.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
/** ULFRCO frequency */
4141
#define EFM32_ULFRCO_FREQ (1000UL)
4242

43+
#if defined(__VTOR_PRESENT) && (__VTOR_PRESENT == 1U)
44+
#if defined(__ICCARM__) /* IAR requires the __vector_table symbol */
45+
#define __Vectors __vector_table
46+
#endif
47+
extern const tVectorEntry __Vectors[];
48+
#endif
49+
4350
/*******************************************************************************
4451
************************** LOCAL VARIABLES ********************************
4552
******************************************************************************/

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG/device/system_efm32pg1b.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,6 @@ typedef union {
6363
extern uint32_t SystemCoreClock; /**< System Clock Frequency (Core Clock) */
6464
extern uint32_t SystemHfrcoFreq; /**< System HFRCO frequency */
6565

66-
#if defined(__VTOR_PRESENT) && (__VTOR_PRESENT == 1U)
67-
#if defined(__ICCARM__) /* IAR requires the __vector_table symbol */
68-
#define __Vectors __vector_table
69-
#endif
70-
extern const tVectorEntry __Vectors[];
71-
#endif
72-
7366
/*******************************************************************************
7467
***************************** PROTOTYPES **********************************
7568
******************************************************************************/

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/system_efm32pg12b.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
/** ULFRCO frequency */
4141
#define EFM32_ULFRCO_FREQ (1000UL)
4242

43+
#if defined(__VTOR_PRESENT) && (__VTOR_PRESENT == 1U)
44+
#if defined(__ICCARM__) /* IAR requires the __vector_table symbol */
45+
#define __Vectors __vector_table
46+
#endif
47+
extern const tVectorEntry __Vectors[];
48+
#endif
49+
4350
/*******************************************************************************
4451
************************** LOCAL VARIABLES ********************************
4552
******************************************************************************/

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG12/device/system_efm32pg12b.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,6 @@ typedef union {
6363
extern uint32_t SystemCoreClock; /**< System Clock Frequency (Core Clock) */
6464
extern uint32_t SystemHfrcoFreq; /**< System HFRCO frequency */
6565

66-
#if defined(__VTOR_PRESENT) && (__VTOR_PRESENT == 1U)
67-
#if defined(__ICCARM__) /* IAR requires the __vector_table symbol */
68-
#define __Vectors __vector_table
69-
#endif
70-
extern const tVectorEntry __Vectors[];
71-
#endif
72-
7366
/*******************************************************************************
7467
***************************** PROTOTYPES **********************************
7568
******************************************************************************/

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG/device/system_efm32wg.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
/** ULFRCO frequency. */
4141
#define EFM32_ULFRCO_FREQ (1000UL)
4242

43+
#if defined(__VTOR_PRESENT) && (__VTOR_PRESENT == 1U)
44+
#if defined(__ICCARM__) /* IAR requires the __vector_table symbol */
45+
#define __Vectors __vector_table
46+
#endif
47+
extern const tVectorEntry __Vectors[];
48+
#endif
49+
4350
/*******************************************************************************
4451
************************** LOCAL VARIABLES ********************************
4552
******************************************************************************/

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG/device/system_efm32wg.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,6 @@ typedef union {
6262

6363
extern uint32_t SystemCoreClock; /**< System Clock Frequency (Core Clock) */
6464

65-
#if defined(__VTOR_PRESENT) && (__VTOR_PRESENT == 1U)
66-
#if defined(__ICCARM__) /* IAR requires the __vector_table symbol */
67-
#define __Vectors __vector_table
68-
#endif
69-
extern const tVectorEntry __Vectors[];
70-
#endif
71-
7265
/*******************************************************************************
7366
***************************** PROTOTYPES **********************************
7467
******************************************************************************/

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG/device/system_efm32zg.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
/** ULFRCO frequency. */
4141
#define EFM32_ULFRCO_FREQ (1000UL)
4242

43+
#if defined(__VTOR_PRESENT) && (__VTOR_PRESENT == 1U)
44+
#if defined(__ICCARM__) /* IAR requires the __vector_table symbol */
45+
#define __Vectors __vector_table
46+
#endif
47+
extern const tVectorEntry __Vectors[];
48+
#endif
49+
4350
/*******************************************************************************
4451
************************** LOCAL VARIABLES ********************************
4552
******************************************************************************/

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG/device/system_efm32zg.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,6 @@ typedef union {
6262

6363
extern uint32_t SystemCoreClock; /**< System Clock Frequency (Core Clock) */
6464

65-
#if defined(__VTOR_PRESENT) && (__VTOR_PRESENT == 1U)
66-
#if defined(__ICCARM__) /* IAR requires the __vector_table symbol */
67-
#define __Vectors __vector_table
68-
#endif
69-
extern const tVectorEntry __Vectors[];
70-
#endif
71-
7265
/*******************************************************************************
7366
***************************** PROTOTYPES **********************************
7467
******************************************************************************/

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32MG1/device/system_efr32mg1p.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
/** ULFRCO frequency */
4141
#define EFR32_ULFRCO_FREQ (1000UL)
4242

43+
#if defined(__VTOR_PRESENT) && (__VTOR_PRESENT == 1U)
44+
#if defined(__ICCARM__) /* IAR requires the __vector_table symbol */
45+
#define __Vectors __vector_table
46+
#endif
47+
extern const tVectorEntry __Vectors[];
48+
#endif
49+
4350
/*******************************************************************************
4451
************************** LOCAL VARIABLES ********************************
4552
******************************************************************************/

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32MG1/device/system_efr32mg1p.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,6 @@ typedef union {
6363
extern uint32_t SystemCoreClock; /**< System Clock Frequency (Core Clock) */
6464
extern uint32_t SystemHfrcoFreq; /**< System HFRCO frequency */
6565

66-
#if defined(__VTOR_PRESENT) && (__VTOR_PRESENT == 1U)
67-
#if defined(__ICCARM__) /* IAR requires the __vector_table symbol */
68-
#define __Vectors __vector_table
69-
#endif
70-
extern const tVectorEntry __Vectors[];
71-
#endif
72-
7366
/*******************************************************************************
7467
***************************** PROTOTYPES **********************************
7568
******************************************************************************/

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32MG12/device/system_efr32mg12p.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
/** ULFRCO frequency */
4141
#define EFR32_ULFRCO_FREQ (1000UL)
4242

43+
#if defined(__VTOR_PRESENT) && (__VTOR_PRESENT == 1U)
44+
#if defined(__ICCARM__) /* IAR requires the __vector_table symbol */
45+
#define __Vectors __vector_table
46+
#endif
47+
extern const tVectorEntry __Vectors[];
48+
#endif
49+
4350
/*******************************************************************************
4451
************************** LOCAL VARIABLES ********************************
4552
******************************************************************************/

targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFR32MG12/device/system_efr32mg12p.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,6 @@ typedef union {
6363
extern uint32_t SystemCoreClock; /**< System Clock Frequency (Core Clock) */
6464
extern uint32_t SystemHfrcoFreq; /**< System HFRCO frequency */
6565

66-
#if defined(__VTOR_PRESENT) && (__VTOR_PRESENT == 1U)
67-
#if defined(__ICCARM__) /* IAR requires the __vector_table symbol */
68-
#define __Vectors __vector_table
69-
#endif
70-
extern const tVectorEntry __Vectors[];
71-
#endif
72-
7366
/*******************************************************************************
7467
***************************** PROTOTYPES **********************************
7568
******************************************************************************/

0 commit comments

Comments
 (0)