Browse Source

[bsp] fix incompatible type error for "finsh_system_init()"

tanek liang 7 years ago
parent
commit
d793cfdef7

+ 1 - 1
bsp/avr32uc3b0/startup.c

@@ -18,7 +18,7 @@ extern void rt_hw_board_init(void);
 extern void rt_application_init(void);
 
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(const char* device);
 #endif
 

+ 1 - 1
bsp/bf533/startup.c

@@ -70,7 +70,7 @@ void rtthread_startup(void)
 
 #ifdef RT_USING_FINSH
     /* init finsh */
-    extern void finsh_system_init(void);
+    extern int finsh_system_init(void);
     finsh_system_init();
     finsh_set_device("uart0");
 #endif

+ 1 - 1
bsp/dm365/applications/startup.c

@@ -62,7 +62,7 @@ extern void rt_application_init(void);
 #endif
 
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 #endif
 
 

+ 1 - 1
bsp/efm32/copy_this_file_shell.c

@@ -468,7 +468,7 @@ void finsh_system_var_init(const void* begin, const void* end)
  *
  * This function will initialize finsh shell
  */
-void finsh_system_init(void)
+int finsh_system_init(void)
 {
 	rt_err_t result;
 

+ 1 - 1
bsp/frdm-k64f/applications/startup.c

@@ -25,7 +25,7 @@
 
 extern int  rt_application_init(void);
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(const char* device);
 #endif
 

+ 1 - 1
bsp/lm3s8962/applications/startup.c

@@ -30,7 +30,7 @@ extern void rt_hw_serial_init(void);
 
 /*@{*/
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(char* device);
 #endif
 

+ 1 - 1
bsp/lm3s9b9x/applications/startup.c

@@ -30,7 +30,7 @@ extern void rt_hw_serial_init(void);
 
 /*@{*/
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(char* device);
 #endif
 

+ 1 - 1
bsp/lm4f232/applications/startup.c

@@ -30,7 +30,7 @@ extern void rt_hw_serial_init(void);
 
 /*@{*/
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(char* device);
 #endif
 

+ 1 - 1
bsp/lpc178x/applications/startup.c

@@ -21,7 +21,7 @@
 
 extern int  rt_application_init(void);
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(const char* device);
 #endif
 

+ 2 - 2
bsp/lpc2148/applications/startup.c

@@ -34,7 +34,7 @@
 /*@{*/
 
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 #endif
 
 extern int  rt_application_init(void);
@@ -43,7 +43,7 @@ extern void rt_show_version(void);
 extern rt_err_t rt_hw_serial_init(void);
 #endif
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 #endif
 
 #ifdef __CC_ARM

+ 1 - 1
bsp/lpc2478/applications/startup.c

@@ -18,7 +18,7 @@
 
 #ifdef RT_USING_FINSH
 #include <finsh.h>
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 #endif
 
 #include <LPC24xx.h>

+ 1 - 1
bsp/m16c62p/applications/startup.c

@@ -23,7 +23,7 @@
 extern void rt_hw_interrupt_init(void);
 extern int  rt_application_init(void);
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(const char* device);
 #endif
 

+ 1 - 1
bsp/microblaze/startup.c

@@ -20,7 +20,7 @@
 
 #ifdef RT_USING_FINSH
 #include <finsh.h>
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 #endif
 
 extern void rt_hw_led_flash(void);

+ 1 - 1
bsp/mini2440/applications/startup.c

@@ -61,7 +61,7 @@ extern struct rt_device uart2_device;
 #endif
 
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 #endif
 
 /**

+ 1 - 1
bsp/mini4020/applications/startup.c

@@ -35,7 +35,7 @@ extern int Image$$RW_RAM1$$ZI$$Limit;
 #endif
 
 extern void rt_application_init(void);
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void sd_init(void);
 
 void rtthread_startup()

+ 1 - 1
bsp/nios_ii/startup.c

@@ -26,7 +26,7 @@
 extern int rt_application_init(void);
 
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(const char* device);
 #endif
 

+ 1 - 1
bsp/nuvoton_m05x/applications/startup.c

@@ -25,7 +25,7 @@
 
 extern int  rt_application_init(void);
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(const char* device);
 #endif
 

+ 1 - 1
bsp/nuvoton_m451/applications/startup.c

@@ -25,7 +25,7 @@
 
 extern int  rt_application_init(void);
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(const char* device);
 #endif
 

+ 1 - 1
bsp/pic32ethernet/startup.c

@@ -20,7 +20,7 @@ extern int _ramfunc_end;
 #define PIC32_SRAM_END (0xA0000000 + 1024UL*128) //795F512L 512K FLASH 128KB SRAM
 
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(const char* device);
 #endif
 

+ 2 - 2
bsp/sam7x/applications/startup.c

@@ -28,7 +28,7 @@ extern rt_err_t eth_system_device_init(void);
 
 #ifdef RT_USING_FINSH
 #include <finsh.h>
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 #endif
 
 /**
@@ -51,7 +51,7 @@ extern int  rt_application_init(void);
 extern rt_err_t rt_hw_serial_init(void);
 #endif
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 #endif
 
 void led_flash()

+ 1 - 1
bsp/sep6200/application/startup.c

@@ -49,7 +49,7 @@ extern unsigned char __bss_end;
 
 extern void rt_hw_board_init(void);
 extern void rt_application_init(void);
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void sd_init(void);
 
 void rtthread_startup()

+ 1 - 1
bsp/simulator/applications/startup.c

@@ -25,7 +25,7 @@
 
 extern int  rt_application_init(void);
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(const char *device);
 #endif
 

+ 1 - 1
bsp/stm32f0x/applications/startup.c

@@ -26,7 +26,7 @@
 
 extern int  rt_application_init(void);
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(const char* device);
 #endif
 

+ 1 - 1
bsp/stm32f20x/applications/startup.c

@@ -26,7 +26,7 @@
 
 extern int  rt_application_init(void);
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(const char* device);
 #endif
 

+ 1 - 1
bsp/stm32f40x/applications/startup.c

@@ -27,7 +27,7 @@
 
 extern int  rt_application_init(void);
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(const char* device);
 #endif
 

+ 1 - 1
bsp/stm32f429-apollo/applications/startup.c

@@ -27,7 +27,7 @@
 
 extern int  rt_application_init(void);
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(const char* device);
 #endif
 

+ 1 - 1
bsp/stm32f429-disco/applications/startup.c

@@ -27,7 +27,7 @@
 
 extern int  rt_application_init(void);
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(const char* device);
 #endif
 

+ 1 - 1
bsp/stm32l072/app/startup.c

@@ -26,7 +26,7 @@
 
 extern int  rt_application_init(void);
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(const char* device);
 #endif
 

+ 1 - 1
bsp/stm32l475-iot-disco/applications/startup.c

@@ -27,7 +27,7 @@
 
 extern int  rt_application_init(void);
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(const char* device);
 #endif
 

+ 1 - 1
bsp/stm32l476-nucleo/applications/startup.c

@@ -27,7 +27,7 @@
 
 extern int  rt_application_init(void);
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(const char* device);
 #endif
 

+ 1 - 1
bsp/taihu/applications/startup.c

@@ -17,7 +17,7 @@
 
 #ifdef RT_USING_FINSH
 #include <finsh.h>
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 #endif
 
 extern int  rt_application_init(void);

+ 1 - 1
bsp/upd70f3454/applications/startup.c

@@ -29,7 +29,7 @@
 extern int  rt_application_init(void);
 
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(const char *device);
 #endif
 

+ 1 - 1
bsp/wh44b0/startup.c

@@ -35,7 +35,7 @@ extern int __bss_end;
 #endif
 
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 #endif
 extern int  rt_application_init(void);
 

+ 1 - 1
bsp/x86/applications/startup.c

@@ -27,7 +27,7 @@ extern int  rt_application_init(void);
 //extern void rt_thread_idle_init(void);
 
 #ifdef RT_USING_FINSH
-extern void finsh_system_init(void);
+extern int finsh_system_init(void);
 extern void finsh_set_device(const char *device);
 #endif