fixed compiling error related to the RT_USING_INTERRUPT_INFO in mini4020

This commit is contained in:
yiyue.fang 2013-04-10 00:49:18 +08:00
parent 5510dec187
commit db548a1b37
2 changed files with 4 additions and 5 deletions

View File

@ -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); 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. * This function will mask a interrupt.
* @param vector the interrupt number * @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; *(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. * This function will un-mask a interrupt.
* @param vector the interrupt number * @param vector the interrupt number
*/ */
void rt_hw_interrupt_umask(rt_uint32_t vector) void rt_hw_interrupt_umask(int vector)
{ {
if(vector == 16) if(vector == 16)
{ {

View File

@ -152,7 +152,7 @@ void rt_hw_trap_irq(void)
} }
/* get interrupt service routine */ /* get interrupt service routine */
isr_func = isr_table[irq].isr_handle; isr_func = isr_table[irq].handler;
param = isr_table[irq].param; param = isr_table[irq].param;
/* turn to interrupt service routine */ /* turn to interrupt service routine */