Explorar el Código

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

liruncong hace 6 años
padre
commit
332dbfe0c3
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      bsp/fh8620/drivers/interrupt.c
  2. 1 1
      bsp/fh8620/drivers/interrupt.h

+ 1 - 1
bsp/fh8620/drivers/interrupt.c

@@ -169,7 +169,7 @@ void rt_hw_interrupt_umask(int irq)
  * @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;
 

+ 1 - 1
bsp/fh8620/drivers/interrupt.h

@@ -35,6 +35,6 @@ void rt_hw_interrupt_init(void);
 void rt_hw_interrupt_mask(int irq);
 void rt_hw_interrupt_umask(int irq);
 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 /* INTERRUPT_H_ */