diff --git a/bsp/at91sam9260/applications/application.c b/bsp/at91sam9260/applications/application.c index 1fd9324cd2123a9ef62c395aba8611a49d657c76..53d08e5ef6268d3a02700a9aeba22e60b5069853 100644 --- a/bsp/at91sam9260/applications/application.c +++ b/bsp/at91sam9260/applications/application.c @@ -31,8 +31,6 @@ #include #ifdef RT_USING_DFS -/* dfs init */ -#include /* dfs filesystem:ELM FatFs filesystem init */ #include /* dfs Filesystem APIs */ diff --git a/bsp/beaglebone/applications/board.c b/bsp/beaglebone/applications/board.c index 89c8c263ab5c719c44fd54dff5feb860cc7c02ba..7a7380c5f8ff53520ebcee81a8baf10da5ca2e55 100644 --- a/bsp/beaglebone/applications/board.c +++ b/bsp/beaglebone/applications/board.c @@ -14,6 +14,7 @@ #include #include +#include #include "board.h" #include diff --git a/bsp/efm32/application.c b/bsp/efm32/application.c index 781b1ab77eabb183d78be9cedd6bb53e762a7342..841ee48432c5ff2bd007e7d5836922bf601ff049 100644 --- a/bsp/efm32/application.c +++ b/bsp/efm32/application.c @@ -34,8 +34,6 @@ #include #if defined(RT_USING_DFS) -/* dfs init */ -#include /* dfs filesystem:ELM filesystem init */ #include /* dfs Filesystem APIs */ diff --git a/bsp/frdm-k64f/applications/application.c b/bsp/frdm-k64f/applications/application.c index f31581a9202a83d7226663e9e9de40f96ef7c278..0b2f9cda6ed0271d1f44ec8205f9fc61069a7573 100644 --- a/bsp/frdm-k64f/applications/application.c +++ b/bsp/frdm-k64f/applications/application.c @@ -17,6 +17,7 @@ */ /*@{*/ +#include #include #include "MK64F12.h" @@ -25,12 +26,6 @@ #include "led.h" -#ifdef RT_USING_LWIP -#include -#include -#include -#endif - void rt_init_thread_entry(void* parameter) { #ifdef RT_USING_COMPONENTS_INIT @@ -72,15 +67,9 @@ int rt_application_init() { rt_thread_t init_thread; -#if (RT_THREAD_PRIORITY_MAX == 32) init_thread = rt_thread_create("init", rt_init_thread_entry, RT_NULL, - 2048, 8, 20); -#else - init_thread = rt_thread_create("init", - rt_init_thread_entry, RT_NULL, - 2048, 80, 20); -#endif + 2048, RT_THREAD_PRIORITY_MAX/3, 20); if (init_thread != RT_NULL) rt_thread_startup(init_thread); diff --git a/bsp/lm3s8962/applications/application.c b/bsp/lm3s8962/applications/application.c index 28c13a22e026813b6383e671a75406b85ff46bee..25275ce3d0c6899b1748a7a89cdc6b890fd9b9c2 100644 --- a/bsp/lm3s8962/applications/application.c +++ b/bsp/lm3s8962/applications/application.c @@ -21,8 +21,6 @@ #include #ifdef RT_USING_DFS -/* dfs init */ -#include /* dfs filesystem:ELM FatFs filesystem init */ #include /* dfs Filesystem APIs */ diff --git a/bsp/lm3s8962/rtconfig.h b/bsp/lm3s8962/rtconfig.h index ae7bd5f3d15a144ca784efe841c5c6035c4937e2..c3b3bc8369690b49a8e9272aaadebd64e86de60d 100644 --- a/bsp/lm3s8962/rtconfig.h +++ b/bsp/lm3s8962/rtconfig.h @@ -57,6 +57,7 @@ /* SECTION: Device System */ /* Using Device System*/ #define RT_USING_DEVICE +#define RT_USING_DEVICE_IPC #define RT_USING_UART1 // #define RT_USING_UART2 diff --git a/bsp/lm3s9b9x/rtconfig.h b/bsp/lm3s9b9x/rtconfig.h index 7a0185fc47d44bec7ead1f330b0fb1eaf21928e2..b6afc3072360d0c52ae831fa86ac07f0aa421d33 100644 --- a/bsp/lm3s9b9x/rtconfig.h +++ b/bsp/lm3s9b9x/rtconfig.h @@ -112,7 +112,7 @@ #define RT_LWIP_ETH_PAD_SIZE 2 /* Enable SNMP protocol*/ -#define RT_LWIP_SNMP +//#define RT_LWIP_SNMP /* Using DHCP*/ /* #define RT_LWIP_DHCP */ diff --git a/bsp/mini2440/applications/application.c b/bsp/mini2440/applications/application.c index fe2626a827df3cb508e7b716b8c815faf1afecbf..89dbfb6b19d1a68439f252cb073296e9d1e70534 100644 --- a/bsp/mini2440/applications/application.c +++ b/bsp/mini2440/applications/application.c @@ -26,8 +26,6 @@ #include "dm9000.h" #ifdef RT_USING_DFS -/* dfs init */ -#include /* dfs filesystem:ELM FatFs filesystem init */ #include /* dfs Filesystem APIs */ diff --git a/bsp/mini2440/drivers/sdcard.c b/bsp/mini2440/drivers/sdcard.c index 4d26676cd8d1c426cee1ad4ca9843659f2279442..7cb5bbe324a246d8716910b88c56b8ddc9b1a738 100644 --- a/bsp/mini2440/drivers/sdcard.c +++ b/bsp/mini2440/drivers/sdcard.c @@ -398,7 +398,7 @@ static rt_size_t rt_sdcard_read(rt_device_t dev, if (dev == RT_NULL) { - rt_set_errno(-DFS_STATUS_EINVAL); + rt_set_errno(-EINVAL); return 0; } @@ -429,7 +429,7 @@ static rt_size_t rt_sdcard_write(rt_device_t dev, if (dev == RT_NULL) { - rt_set_errno(-DFS_STATUS_EINVAL); + rt_set_errno(-EINVAL); return 0; } diff --git a/bsp/mini2440/rtconfig.h b/bsp/mini2440/rtconfig.h index cbe7e4c99ba2699ece294e0d055404a82a7c1ede..32ee42c9088c1d65882c331caa1839747eb8f77b 100644 --- a/bsp/mini2440/rtconfig.h +++ b/bsp/mini2440/rtconfig.h @@ -64,6 +64,7 @@ //
#define RT_USING_DEVICE +#define RT_USING_DEVICE_IPC // #define RT_USING_UART0 // diff --git a/bsp/stm32f0x/drivers/led.c b/bsp/stm32f0x/drivers/led.c index 15776cb457d7040676f6e3b08359c33cb653b55c..2a17a55adbcb110935841db1854be708ae69e8a8 100644 --- a/bsp/stm32f0x/drivers/led.c +++ b/bsp/stm32f0x/drivers/led.c @@ -12,6 +12,7 @@ * 2013-11-15 bright the first version */ +#include #include "led.h" /* @@ -20,7 +21,7 @@ LED_RED : PC9 */ /* Initial led gpio pin */ -void rt_hw_led_init(void) +int rt_hw_led_init(void) { GPIO_InitTypeDef GPIO_InitStructure; @@ -34,7 +35,8 @@ void rt_hw_led_init(void) GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL; GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; GPIO_Init(GPIOC, &GPIO_InitStructure); -} + return 0; +} /* Initial components for device */ INIT_DEVICE_EXPORT(rt_hw_led_init); diff --git a/bsp/stm32f0x/drivers/led.h b/bsp/stm32f0x/drivers/led.h index 15b7bb9676dd196e6178ea3b7b19dee150aa69df..af513637a27bbb2559643a69e144f591008664ad 100644 --- a/bsp/stm32f0x/drivers/led.h +++ b/bsp/stm32f0x/drivers/led.h @@ -15,13 +15,13 @@ #ifndef __LED_H__ #define __LED_H__ -#include #include #include #define rt_hw_led_on() GPIO_SetBits(GPIOC, GPIO_Pin_9) #define rt_hw_led_off() GPIO_ResetBits(GPIOC, GPIO_Pin_9) -void rt_hw_led_init(void); +int rt_hw_led_init(void); #endif + diff --git a/bsp/stm32f0x/rtconfig.h b/bsp/stm32f0x/rtconfig.h index 03fa50ba3c6a385ebe3853720e024294d46c7115..bee200136a644c55c0c8f81aab3897a40a47f965 100644 --- a/bsp/stm32f0x/rtconfig.h +++ b/bsp/stm32f0x/rtconfig.h @@ -34,7 +34,7 @@ #define RT_USING_SEMAPHORE /* Using Mutex */ -/* #define RT_USING_MUTEX */ +#define RT_USING_MUTEX /* Using Event */ /* #define RT_USING_EVENT */ diff --git a/bsp/stm32f107/applications/application.c b/bsp/stm32f107/applications/application.c index ef28641004f7d766acb4aa3ff36832e94aa8db2b..81c72e0cd54751d9db7c0f8643e9377ae060c7fe 100644 --- a/bsp/stm32f107/applications/application.c +++ b/bsp/stm32f107/applications/application.c @@ -22,7 +22,6 @@ #ifdef RT_USING_DFS #include -#include #include #endif diff --git a/components/drivers/serial/serial.c b/components/drivers/serial/serial.c index 48b60caeaffcc8ff242f9ae598ed4b1baa3e676f..c279490dec63cb22f82c0409bb62bfee53bbaf7d 100644 --- a/components/drivers/serial/serial.c +++ b/components/drivers/serial/serial.c @@ -48,6 +48,7 @@ #include #endif +#ifdef RT_USING_DFS #ifdef RT_USING_DFS_DEVFS #include @@ -209,7 +210,7 @@ const static struct dfs_file_ops _serial_fops = serial_fops_poll, }; #endif - +#endif /* * Serial poll routines */ diff --git a/components/drivers/src/pipe.c b/components/drivers/src/pipe.c index b455870c8a6c042037e1b82476084d21f311a815..bc9ed5f9a2bfecc487d2db7784785f1fc85adf7d 100644 --- a/components/drivers/src/pipe.c +++ b/components/drivers/src/pipe.c @@ -23,8 +23,10 @@ */ #include #include +#if defined(RT_USING_DFS) #include #include +#endif #if defined(RT_USING_DFS) && defined(RT_USING_DFS_DEVFS) static int pipe_open(struct dfs_fd *fd) diff --git a/components/libc/compilers/minilibc/stdint.h b/components/libc/compilers/minilibc/stdint.h index f397b57bc5deba0146c5bbca7b10a44045bb88c3..eaafb3d2a5b2e8c87d6965a6481baf2cf9086882 100644 --- a/components/libc/compilers/minilibc/stdint.h +++ b/components/libc/compilers/minilibc/stdint.h @@ -11,6 +11,8 @@ typedef rt_int32_t int32_t; typedef rt_uint32_t uint32_t; typedef long long int64_t; typedef unsigned long long uint64_t; +typedef signed long intptr_t; +typedef unsigned long uintptr_t; /* * 7.18.2 Limits of specified-width integer types. diff --git a/components/libc/compilers/minilibc/stdio.h b/components/libc/compilers/minilibc/stdio.h index 160b4d2c781165fb3ea65827d1d0c7451c58786a..a6ecb329313a99fc660f74586eab71851d820b32 100644 --- a/components/libc/compilers/minilibc/stdio.h +++ b/components/libc/compilers/minilibc/stdio.h @@ -4,5 +4,15 @@ #define BUFSIZ 128 #define EOF (-1) +#ifndef SEEK_SET +#define SEEK_SET 0 /* set file offset to offset */ +#endif +#ifndef SEEK_CUR +#define SEEK_CUR 1 /* set file offset to current plus offset */ +#endif +#ifndef SEEK_END +#define SEEK_END 2 /* set file offset to EOF plus offset */ +#endif + #endif diff --git a/components/net/SConscript b/components/net/SConscript index bfb1cb9afde47869eb682b6d95cab762e2666b49..b930821bd8d57ecc62ca7f20b8a8db7a966a4235 100644 --- a/components/net/SConscript +++ b/components/net/SConscript @@ -7,8 +7,8 @@ objs = [] cwd = GetCurrentDir() list = os.listdir(cwd) -# the default version of LWIP is 1.4.1 -if not GetDepend('RT_USING_LWIP132') and not GetDepend('RT_USING_LWIP140') and not GetDepend('RT_USING_LWIP202'): +# the default version of LWIP is 2.0.2 +if not GetDepend('RT_USING_LWIP132') and not GetDepend('RT_USING_LWIP141') and not GetDepend('RT_USING_LWIP202'): AddDepend('RT_USING_LWIP202') for d in list: