void HWIInit(void)
{
// 动态创建硬件中断
Hwi_Params hwiParams;
Hwi_Params_init(&hwiParams);
hwiParams.eventId = SYS_INT_UART1_INT;
hwiParams.enableInt = true;
Hwi_create(C674X_MASK_INT6, UART1Isr, &hwiParams, NULL);
}
中断响应正常。
由于中断数量比较多,不可屏蔽中断号不够用,于是我仿照光盘V2.6里sy***ios下的Board例程我改成下面,
void HwiInit(void)
{
Hwi_Params hwiParams;
Hwi_Params_init(&hwiParams);
/* UART1 */
EventCombiner_dispatchPlug(SYS_INT_UART1_INT, &UART1Isr, 1, TRUE);
UART1InterruptInit();
}
void HWIInit(void)
{
// 动态创建硬件中断
Hwi_Params hwiParams;
Hwi_Params_init(&hwiParams);
hwiParams.eventId = SYS_INT_UART1_INT;
hwiParams.enableInt = true;
Hwi_create(C674X_MASK_INT6, UART1Isr, &hwiParams, NULL);
}
中断响应正常。
由于中断数量比较多,不可屏蔽中断号不够用,于是我仿照光盘V2.6里sy***ios下的Board例程我改成下面,
void HwiInit(void)
{
Hwi_Params hwiParams;
Hwi_Params_init(&hwiParams);
/* UART1 */
EventCombiner_dispatchPlug(SYS_INT_UART1_INT, &UART1Isr, 1, TRUE);
UART1InterruptInit();
}
举报