fix spell errors in bsp/simulator

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2542 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
goprife@gmail.com 2012-12-29 03:44:00 +00:00
parent ac9c373d7f
commit e1e948a33e
5 changed files with 24 additions and 25 deletions

View File

@ -30,7 +30,7 @@ void rt_init_thread_entry(void *parameter)
rt_platform_init(); rt_platform_init();
/* Filesystem Initialization */ /* File system Initialization */
#ifdef RT_USING_DFS #ifdef RT_USING_DFS
{ {
#ifdef RT_USING_DFS_WINSHAREDIR #ifdef RT_USING_DFS_WINSHAREDIR
@ -53,7 +53,7 @@ void rt_init_thread_entry(void *parameter)
if (dfs_mount("sd0", "/disk/sd", "elm", 0, 0) == 0) if (dfs_mount("sd0", "/disk/sd", "elm", 0, 0) == 0)
rt_kprintf("fatfs initialized!\n"); rt_kprintf("fatfs initialized!\n");
else else
rt_kprintf("fatfs initialzation failed!\n"); rt_kprintf("fatfs initialization failed!\n");
#endif #endif
#ifdef RT_USING_DFS_UFFS #ifdef RT_USING_DFS_UFFS
@ -61,7 +61,7 @@ void rt_init_thread_entry(void *parameter)
if (dfs_mount("nand0", "/disk/nand", "uffs", 0, 0) == 0) if (dfs_mount("nand0", "/disk/nand", "uffs", 0, 0) == 0)
rt_kprintf("uffs initialized!\n"); rt_kprintf("uffs initialized!\n");
else else
rt_kprintf("uffs initialzation failed!\n"); rt_kprintf("uffs initialization failed!\n");
#endif #endif
#ifdef RT_USING_DFS_JFFS2 #ifdef RT_USING_DFS_JFFS2
@ -69,7 +69,7 @@ void rt_init_thread_entry(void *parameter)
if (dfs_mount("nor", "/disk/nor", "jffs2", 0, 0) == 0) if (dfs_mount("nor", "/disk/nor", "jffs2", 0, 0) == 0)
rt_kprintf("jffs2 initialized!\n"); rt_kprintf("jffs2 initialized!\n");
else else
rt_kprintf("jffs2 initialzation failed!\n"); rt_kprintf("jffs2 initialization failed!\n");
#endif #endif
} }

View File

@ -129,7 +129,7 @@ static int dfs_win32_open(struct dfs_fd *file)
} }
strcat(file_path, "*.*"); strcat(file_path, "*.*");
/* _findfirst 会得到 . */ /* _findfirst will get '.' */
if ((handle = _findfirst(file_path, &dir)) == -1) if ((handle = _findfirst(file_path, &dir)) == -1)
{ {
rt_free(file_path); rt_free(file_path);
@ -160,7 +160,7 @@ static int dfs_win32_open(struct dfs_fd *file)
if (fd < 0) if (fd < 0)
goto __err; goto __err;
/* save this pointer, it will be used when calling read()write(), /* save this pointer, it will be used when calling read(), write(),
* flush(), seek(), and will be free when calling close()*/ * flush(), seek(), and will be free when calling close()*/
file->data = (void *)fd; file->data = (void *)fd;
file->pos = 0; file->pos = 0;
@ -298,7 +298,7 @@ static int dfs_win32_getdents(
else else
d->d_type = DFS_DT_REG; d->d_type = DFS_DT_REG;
/* write the rest args of struct dirent* dirp */ /* write the rest arguments of struct dirent* dirp */
d->d_namlen = strlen(fileinfo.name); d->d_namlen = strlen(fileinfo.name);
d->d_reclen = (rt_uint16_t)sizeof(struct dirent); d->d_reclen = (rt_uint16_t)sizeof(struct dirent);
strcpy(d->d_name, fileinfo.name); strcpy(d->d_name, fileinfo.name);

View File

@ -4,7 +4,7 @@
void rt_platform_init(void) void rt_platform_init(void)
{ {
#ifdef RT_USING_DFS #ifdef RT_USING_DFS
/* initilize sd card */ /* initialize sd card */
rt_hw_sdcard_init(); rt_hw_sdcard_init();
#if defined(RT_USING_MTD_NAND) #if defined(RT_USING_MTD_NAND)
@ -22,8 +22,7 @@ void rt_platform_init(void)
rt_hw_sdl_start(); rt_hw_sdl_start();
#endif /* RT_USING_RTGUI */ #endif /* RT_USING_RTGUI */
#ifdef WIN32 #ifdef _WIN32
rt_thread_idle_sethook(rt_hw_win32_low_cpu); rt_thread_idle_sethook(rt_hw_win32_low_cpu);
#endif #endif
rt_thread_delay(50); rt_thread_delay(50);

View File

@ -18,7 +18,7 @@ void rt_hw_usart_init(void)
{ {
/* /*
* create serial thread that revice key input from keyboard * create serial thread that receive key input from keyboard
*/ */
OSKey_Thread = CreateThread(NULL, OSKey_Thread = CreateThread(NULL,

View File

@ -2,7 +2,7 @@
#ifndef __RTTHREAD_CFG_H__ #ifndef __RTTHREAD_CFG_H__
#define __RTTHREAD_CFG_H__ #define __RTTHREAD_CFG_H__
/* SECTION: port for visual stuido */ /* SECTION: port for visual studio */
#ifdef _MSC_VER #ifdef _MSC_VER
#undef RT_USING_NEWLIB #undef RT_USING_NEWLIB
#undef RT_USING_MINILIBC #undef RT_USING_MINILIBC
@ -79,10 +79,10 @@
#define RT_CONSOLEBUF_SIZE 128 #define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "sci0" #define RT_CONSOLE_DEVICE_NAME "sci0"
/* SECTION: commponent opitions */ /* SECTION: component options */
#define RT_USING_COMPONENTS_INIT #define RT_USING_COMPONENTS_INIT
/* SECTION: MTD interface opitons */ /* SECTION: MTD interface options */
/* using mtd nand flash */ /* using mtd nand flash */
#define RT_USING_MTD_NAND #define RT_USING_MTD_NAND
/* using mtd nor flash */ /* using mtd nor flash */
@ -94,7 +94,7 @@
#define FINSH_USING_SYMTAB #define FINSH_USING_SYMTAB
#define FINSH_USING_DESCRIPTION #define FINSH_USING_DESCRIPTION
/* SECTION: device filesystem */ /* SECTION: device file system */
#define RT_USING_DFS #define RT_USING_DFS
/* DFS: ELM FATFS options */ /* DFS: ELM FATFS options */
@ -109,30 +109,30 @@
/* Maximum sector size to be handled. */ /* Maximum sector size to be handled. */
#define RT_DFS_ELM_MAX_SECTOR_SIZE 512 #define RT_DFS_ELM_MAX_SECTOR_SIZE 512
/* DFS: network filesystem options */ /* DFS: network file system options */
#define RT_USING_DFS_NFS #define RT_USING_DFS_NFS
/* DFS: uffs nand filesystem options */ /* DFS: uffs nand file system options */
/* #define RT_USING_DFS_UFFS */ /* #define RT_USING_DFS_UFFS */
/* configration for uffs, more to see dfs_uffs.h and uffs_config.h */ /* configuration for uffs, more to see dfs_uffs.h and uffs_config.h */
/* use ecc soft, the uffs will do all the things about ecc */ /* use ecc soft, the uffs will do all the things about ecc */
#define RT_CONFIG_UFFS_ECC_MODE UFFS_ECC_SOFT #define RT_CONFIG_UFFS_ECC_MODE UFFS_ECC_SOFT
/* enable this ,you need provide a mark_badblock/check_block funciton */ /* enable this ,you need provide a mark_badblock/check_block function */
#define RT_UFFS_USE_CHECK_MARK_FUNCITON #define RT_UFFS_USE_CHECK_MARK_FUNCITON
/* DFS: uffs nor flash filesystem options */ /* DFS: uffs nor flash file system options */
#define RT_USING_DFS_JFFS2 #define RT_USING_DFS_JFFS2
/* DFS: windows share dictory mounted to rt-thread/dfs */ /* DFS: windows share directory mounted to rt-thread/dfs */
/* only used in bsp/simulator */ /* only used in bsp/simulator */
#define RT_USING_DFS_WINSHAREDIR #define RT_USING_DFS_WINSHAREDIR
/* the max number of mounted filesystem */ /* the max number of mounted file system */
#define DFS_FILESYSTEMS_MAX 4 #define DFS_FILESYSTEMS_MAX 4
/* the max number of opened files */ /* the max number of opened files */
#define DFS_FD_MAX 4 #define DFS_FD_MAX 4
/* SECTION: lwip, a lighwight TCP/IP protocol stack */ /* SECTION: lwip, a lightweight TCP/IP protocol stack */
/* #define RT_USING_LWIP */ /* #define RT_USING_LWIP */
/* LwIP uses RT-Thread Memory Management */ /* LwIP uses RT-Thread Memory Management */
#define RT_LWIP_USING_RT_MEM #define RT_LWIP_USING_RT_MEM
@ -145,7 +145,7 @@
/* Enable DNS */ /* Enable DNS */
#define RT_LWIP_DNS #define RT_LWIP_DNS
/* the number of simulatenously active TCP connections*/ /* the number of simultaneously active TCP connections*/
#define RT_LWIP_TCP_PCB_NUM 5 #define RT_LWIP_TCP_PCB_NUM 5
/* Using DHCP */ /* Using DHCP */
@ -174,7 +174,7 @@
#define RT_LWIP_TCPTHREAD_MBOX_SIZE 10 #define RT_LWIP_TCPTHREAD_MBOX_SIZE 10
#define RT_LWIP_TCPTHREAD_STACKSIZE 1024 #define RT_LWIP_TCPTHREAD_STACKSIZE 1024
/* ethernet if thread options */ /* Ethernet if thread options */
#define RT_LWIP_ETHTHREAD_PRIORITY 15 #define RT_LWIP_ETHTHREAD_PRIORITY 15
#define RT_LWIP_ETHTHREAD_MBOX_SIZE 10 #define RT_LWIP_ETHTHREAD_MBOX_SIZE 10
#define RT_LWIP_ETHTHREAD_STACKSIZE 512 #define RT_LWIP_ETHTHREAD_STACKSIZE 512