Ver Fonte

[bsp/raspi2]rt_hw_interrupt_install函数name参数增加const限定

liruncong há 6 anos atrás
pai
commit
cd98097104
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      bsp/raspi2/cpu/interrupt.c

+ 1 - 1
bsp/raspi2/cpu/interrupt.c

@@ -114,7 +114,7 @@ void rt_hw_interrupt_umask(int vector)
  * @param old_handler the old interrupt service routine
  * @param old_handler the old interrupt service routine
  */
  */
 rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t 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;
     rt_isr_handler_t old_handler = RT_NULL;