//中断程序
void __irq Isr_UsbOtg(void)
{
buzzer_on();
INTC_Disable(NUM_OTG); //This function sets the corresponding bit of interrupt enable clear register
OTGDEV_HandleEvent(); //handles various OTG interrupts of Device mode
INTC_Enable(NUM_OTG); //This function sets the corresponding bit of interrupt enable register
INTC_ClearVectAddr(); //clears the vector address register
}
//中断初始化
void USB_isr_init(void)
{
//中断函数入口
INTC_SetVectAddr(NUM_OTG, Isr_UsbOtg);
//使能中断
INTC_Enable(NUM_OTG);
}
int main(void)
{
u32 timeclick = 0 , i = 1;
SYSTEM_InitException();
SYSC_GetClkInform();
INTC_Init();
GPIO_Init();
//USB初始化
OTGDEV_InitOtg(USB_HIGH);
USB_isr_init();
while(1);
}
ADC中断 时钟中断 都成功了 就是这OTG中断 进不了中断程序 中断初始化函数和ADC、时钟是一样的就是改了下中断号 和中断入口 怎么不行了呢