diff options
| author | weety <[email protected]> | 2013-03-17 10:38:38 +0800 |
|---|---|---|
| committer | weety <[email protected]> | 2013-03-19 11:25:12 +0800 |
| commit | b21028474b07f0a17d1c0559e96df0253c787bcd (patch) | |
| tree | 011790f3674a03a857f49d9efc272a21248220ae /include | |
| parent | 3de4b92a688bd7332661d13b21a084b6f65c1a01 (diff) | |
Modify the interrupt interface implementations, changes in the part of the parameter definition.
Diffstat (limited to 'include')
| -rw-r--r-- | include/rthw.h | 4 | ||||
| -rw-r--r-- | include/rtthread.h | 2 |
2 files changed, 3 insertions, 3 deletions
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 |
