remain the old handler to keep forward compatibility

This commit is contained in:
weety
2013-03-18 16:42:29 +08:00
parent 9678ee67e9
commit 7917cf09e7
5 changed files with 25 additions and 20 deletions

View File

@@ -427,6 +427,14 @@ void rt_module_unload_sethook(void (*hook)(rt_module_t module));
*/
typedef void (*rt_isr_handler_t)(int vector, void *param);
struct rt_irq_desc {
char irq_name[RT_NAME_MAX];
rt_isr_handler_t isr_handle;
void *param;
rt_uint32_t interrupt_cnt;
};
/*
* rt_interrupt_enter and rt_interrupt_leave only can be called by BSP
*/