提交 db548a1b 编写于 作者: Y yiyue.fang

fixed compiling error related to the RT_USING_INTERRUPT_INFO in mini4020

上级 5510dec1
......@@ -31,10 +31,9 @@ rt_uint32_t rt_thread_switch_interrupt_flag;
*/
/*@{*/
rt_isr_handler_t rt_hw_interrupt_handle(rt_uint32_t vector)
static void rt_hw_interrupt_handle(int vector, void *param)
{
rt_kprintf("Unhandled interrupt %d occured!!!\n", vector);
return RT_NULL;
}
/**
......@@ -85,7 +84,7 @@ void rt_hw_interrupt_init(void)
* This function will mask a interrupt.
* @param vector the interrupt number
*/
void rt_hw_interrupt_mask(rt_uint32_t vector)
void rt_hw_interrupt_mask(int vector)
{
*(RP)(INTC_IMR) |= 1 << vector;
}
......@@ -94,7 +93,7 @@ void rt_hw_interrupt_mask(rt_uint32_t vector)
* This function will un-mask a interrupt.
* @param vector the interrupt number
*/
void rt_hw_interrupt_umask(rt_uint32_t vector)
void rt_hw_interrupt_umask(int vector)
{
if(vector == 16)
{
......
......@@ -152,7 +152,7 @@ void rt_hw_trap_irq(void)
}
/* get interrupt service routine */
isr_func = isr_table[irq].isr_handle;
isr_func = isr_table[irq].handler;
param = isr_table[irq].param;
/* turn to interrupt service routine */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册