You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
628 B
33 lines
628 B
5 months ago
|
/*
|
||
|
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
|
||
|
*
|
||
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
*
|
||
|
* Change Logs:
|
||
|
* Date Author Notes
|
||
|
* 2020-08-20 zx.chen novic table init
|
||
|
*/
|
||
|
|
||
|
#include <csi_config.h>
|
||
|
#include <soc.h>
|
||
|
|
||
|
extern void Default_Handler(void);
|
||
|
extern void SysTick_Handler(void);
|
||
|
extern void TIM4_NMIHandler(void);
|
||
|
|
||
|
void (*g_irqvector[48])(void);
|
||
|
void (*g_nmivector)(void);
|
||
|
|
||
|
void irq_vectors_init(void)
|
||
|
{
|
||
|
int i;
|
||
|
|
||
|
for (i = 0; i < 48; i++)
|
||
|
{
|
||
|
g_irqvector[i] = Default_Handler;
|
||
|
}
|
||
|
|
||
|
g_irqvector[CORET_IRQn] = SysTick_Handler;
|
||
|
g_nmivector = TIM4_NMIHandler;
|
||
|
}
|