diff options
| author | liruncong <[email protected]> | 2018-12-05 20:41:07 +0800 |
|---|---|---|
| committer | liruncong <[email protected]> | 2018-12-05 20:43:57 +0800 |
| commit | fedc5737686aee91c0971b4de756c1fdd71f478c (patch) | |
| tree | 23e5f8b88428bd48745899bdda3ec21c4a5ddf90 /bsp | |
| parent | b4df57d1d277f44259422c5385c460066311ea46 (diff) | |
[bsp/hifive1]rt_hw_interrupt_install函数name参数增加const限定
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/hifive1/drivers/interrupt.c | 2 | ||||
| -rw-r--r-- | bsp/hifive1/drivers/interrupt.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bsp/hifive1/drivers/interrupt.c b/bsp/hifive1/drivers/interrupt.c index 5acd7f7167..30c5279a62 100644 --- a/bsp/hifive1/drivers/interrupt.c +++ b/bsp/hifive1/drivers/interrupt.c @@ -110,7 +110,7 @@ void rt_hw_interrupt_ack(rt_uint32_t fiq_irq, rt_uint32_t id) * @return old handler */ rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler, - void *param, char *name) + void *param, const char *name) { rt_isr_handler_t old_handler = RT_NULL; diff --git a/bsp/hifive1/drivers/interrupt.h b/bsp/hifive1/drivers/interrupt.h index 3266f881d7..506634e667 100644 --- a/bsp/hifive1/drivers/interrupt.h +++ b/bsp/hifive1/drivers/interrupt.h @@ -32,6 +32,6 @@ void rt_hw_interrupt_init(void); rt_uint32_t rt_hw_interrupt_get_active(rt_uint32_t fiq_irq); void rt_hw_interrupt_ack(rt_uint32_t fiq_irq, rt_uint32_t id); rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler, - void *param, char *name); + void *param, const char *name); #endif |
