Merge pull request #13064 from 0xc0170/fix_nxp_vector

nxp: fix vector redefinition from CMSIS
pull/13069/head
Martin Kojtal 2020-06-04 15:10:40 +02:00 committed by GitHub
commit 0988e5d0f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,12 @@
*/
#include "fsl_common.h"
/* At least CMSIS 5.7 introduced vector table and define this GCC linker symbol to
__Vectors - not valid for many NXP MCU. To fix this, we undefine it if already defined
as it comes from a linker */
#undef __VECTOR_TABLE
void InstallIRQHandler(IRQn_Type irq, uint32_t irqHandler)
{
/* Addresses for VECTOR_TABLE and VECTOR_RAM come from the linker file */