fix vector assign

This commit is contained in:
hathach
2020-09-03 23:48:56 +07:00
parent ef651e0734
commit 4ecedc70c8
6 changed files with 6 additions and 6 deletions

View File

@@ -68,7 +68,7 @@ void SystemInit(void)
#ifdef __USE_LPCOPEN
extern void (* const g_pfnVectors[])(void);
unsigned int *pSCB_VTOR = (unsigned int *) 0xE000ED08;
*pSCB_VTOR = (unsigned int) &g_pfnVectors;
*pSCB_VTOR = (unsigned int) g_pfnVectors;
#endif
Chip_IOCON_Init(LPC_IOCON);