Skip to content

Commit

Permalink
replace __Vectors with __VECTOR_TABLE
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Negreanu <adrian.negreanu@nxp.com>
  • Loading branch information
Adrian Negreanu committed May 21, 2021
1 parent e103762 commit 93e724a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/cmsis-core/cmsis_gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ __STATIC_FORCEINLINE __NO_RETURN void __cmsis_start(void)
#endif

#ifndef __VECTOR_TABLE
#define __VECTOR_TABLE __Vectors
#define __VECTOR_TABLE __isr_vector
#endif

#ifndef __VECTOR_TABLE_ATTRIBUTE
Expand Down
4 changes: 2 additions & 2 deletions source/hic_hal/nxp/lpc4322/system_LPC43xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ void SystemCoreClockUpdate (void) {
}


extern uint32_t __Vectors; /* see startup_LPC43xx.s */
extern uint32_t __VECTOR_TABLE; /* see startup_LPC43xx.s */

/*----------------------------------------------------------------------------
Initialize the system
Expand All @@ -898,7 +898,7 @@ void SystemInit (void) {
SysTick->CTRL &= ~(SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk);

/* Set vector table pointer */
SCB->VTOR = ((uint32_t)(&__Vectors)) & 0xFFF00000UL;
SCB->VTOR = ((uint32_t)(&__VECTOR_TABLE)) & 0xFFF00000UL;

/* Configure PLL0 and PLL1, connect CPU clock to selected clock source */
SetClock();
Expand Down

0 comments on commit 93e724a

Please sign in to comment.