From b21028474b07f0a17d1c0559e96df0253c787bcd Mon Sep 17 00:00:00 2001 From: weety Date: Sun, 17 Mar 2013 10:38:38 +0800 Subject: Modify the interrupt interface implementations, changes in the part of the parameter definition. --- include/rthw.h | 4 ++-- include/rtthread.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/rthw.h b/include/rthw.h index 204f822a69..808639c951 100644 --- a/include/rthw.h +++ b/include/rthw.h @@ -42,8 +42,8 @@ void rt_hw_interrupt_init(void); void rt_hw_interrupt_mask(int vector); void rt_hw_interrupt_umask(int vector); void rt_hw_interrupt_install(int vector, - rt_isr_handler_t new_handler, - rt_isr_handler_t *old_handler); + rt_isr_handler_t handler, + void *param, char *name); void rt_hw_interrupt_handle(int vector); rt_base_t rt_hw_interrupt_disable(void); diff --git a/include/rtthread.h b/include/rtthread.h index 0048366fed..53111b8465 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -425,7 +425,7 @@ void rt_module_unload_sethook(void (*hook)(rt_module_t module)); /* * interrupt service */ -typedef void (*rt_isr_handler_t)(int vector); +typedef void (*rt_isr_handler_t)(int vector, void *param); /* * rt_interrupt_enter and rt_interrupt_leave only can be called by BSP -- cgit v1.3.1