Merge pull request #778 from TanekLiang/incompatible_type

Fix incompatible type error
This commit is contained in:
Bernard Xiong 2017-07-29 14:35:56 +08:00 committed by GitHub
commit 9da1f7d339
35 changed files with 37 additions and 37 deletions
bsp
avr32uc3b0
bf533
dm365/applications
efm32
frdm-k64f/applications
lm3s8962/applications
lm3s9b9x/applications
lm4f232/applications
lpc178x/applications
lpc2148/applications
lpc2478/applications
m16c62p/applications
microblaze
mini2440/applications
mini4020/applications
nios_ii
nuvoton_m05x/applications
nuvoton_m451/applications
pic32ethernet
sam7x/applications
sep6200/application
simulator/applications
stm32f0x/applications
stm32f20x/applications
stm32f40x/applications
stm32f429-apollo/applications
stm32f429-disco/applications
stm32l072/app
stm32l475-iot-disco/applications
stm32l476-nucleo/applications
taihu/applications
upd70f3454/applications
wh44b0
x86/applications
src

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

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

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

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

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

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

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

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

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

@ -34,7 +34,7 @@
/*@{*/ /*@{*/
#ifdef RT_USING_FINSH #ifdef RT_USING_FINSH
extern void finsh_system_init(void); extern int finsh_system_init(void);
#endif #endif
extern int rt_application_init(void); 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); extern rt_err_t rt_hw_serial_init(void);
#endif #endif
#ifdef RT_USING_FINSH #ifdef RT_USING_FINSH
extern void finsh_system_init(void); extern int finsh_system_init(void);
#endif #endif
#ifdef __CC_ARM #ifdef __CC_ARM

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

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

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

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

@ -35,7 +35,7 @@ extern int Image$$RW_RAM1$$ZI$$Limit;
#endif #endif
extern void rt_application_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); extern void sd_init(void);
void rtthread_startup() void rtthread_startup()

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

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

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

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

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

@ -49,7 +49,7 @@ extern unsigned char __bss_end;
extern void rt_hw_board_init(void); extern void rt_hw_board_init(void);
extern void rt_application_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); extern void sd_init(void);
void rtthread_startup() void rtthread_startup()

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -42,7 +42,7 @@
static rt_int16_t rt_scheduler_lock_nest; static rt_int16_t rt_scheduler_lock_nest;
extern volatile rt_uint8_t rt_interrupt_nest; extern volatile rt_uint8_t rt_interrupt_nest;
extern int __rt_ffs(int value); extern rt_ubase_t __rt_ffs(rt_ubase_t value);
rt_list_t rt_thread_priority_table[RT_THREAD_PRIORITY_MAX]; rt_list_t rt_thread_priority_table[RT_THREAD_PRIORITY_MAX];
struct rt_thread *rt_current_thread; struct rt_thread *rt_current_thread;