diff options
| author | Bernard Xiong <[email protected]> | 2013-03-22 17:43:40 -0700 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2013-03-22 17:43:40 -0700 |
| commit | 5a4d0d533875cf06b27510e17fb8ca708b9dd98b (patch) | |
| tree | 2f9bc6a4bda2c520725d4ef972977b1e3ff498f0 /include/rtthread.h | |
| parent | a9074e2ccd07dac20c8dde09477359f82679b7c3 (diff) | |
| parent | 7917cf09e78636699ddea076d049324c9c303294 (diff) | |
Merge pull request #54 from weety/new-branch
Modify the interrupt interface implementations and changes some parameters definition
Diffstat (limited to 'include/rtthread.h')
| -rw-r--r-- | include/rtthread.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/rtthread.h b/include/rtthread.h index 0048366fed..dbe48b492e 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -425,7 +425,15 @@ 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); + +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 |
