diff --git a/bsp/simulator/applications/application.c b/bsp/simulator/applications/application.c index ce30ff9d7..580c68801 100644 --- a/bsp/simulator/applications/application.c +++ b/bsp/simulator/applications/application.c @@ -30,7 +30,7 @@ void rt_init_thread_entry(void *parameter) rt_platform_init(); - /* Filesystem Initialization */ + /* File system Initialization */ #ifdef RT_USING_DFS { #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) rt_kprintf("fatfs initialized!\n"); else - rt_kprintf("fatfs initialzation failed!\n"); + rt_kprintf("fatfs initialization failed!\n"); #endif #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) rt_kprintf("uffs initialized!\n"); else - rt_kprintf("uffs initialzation failed!\n"); + rt_kprintf("uffs initialization failed!\n"); #endif #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) rt_kprintf("jffs2 initialized!\n"); else - rt_kprintf("jffs2 initialzation failed!\n"); + rt_kprintf("jffs2 initialization failed!\n"); #endif } diff --git a/bsp/simulator/applications/dfs_win32.c b/bsp/simulator/applications/dfs_win32.c index e1023dd96..be9afb882 100644 --- a/bsp/simulator/applications/dfs_win32.c +++ b/bsp/simulator/applications/dfs_win32.c @@ -129,7 +129,7 @@ static int dfs_win32_open(struct dfs_fd *file) } strcat(file_path, "*.*"); - /* _findfirst »áµÃµ½ . */ + /* _findfirst will get '.' */ if ((handle = _findfirst(file_path, &dir)) == -1) { rt_free(file_path); @@ -160,7 +160,7 @@ static int dfs_win32_open(struct dfs_fd *file) if (fd < 0) 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()*/ file->data = (void *)fd; file->pos = 0; @@ -298,7 +298,7 @@ static int dfs_win32_getdents( else 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_reclen = (rt_uint16_t)sizeof(struct dirent); strcpy(d->d_name, fileinfo.name); diff --git a/bsp/simulator/applications/platform.c b/bsp/simulator/applications/platform.c index 375882ff2..cc2a56b8e 100644 --- a/bsp/simulator/applications/platform.c +++ b/bsp/simulator/applications/platform.c @@ -4,7 +4,7 @@ void rt_platform_init(void) { #ifdef RT_USING_DFS - /* initilize sd card */ + /* initialize sd card */ rt_hw_sdcard_init(); #if defined(RT_USING_MTD_NAND) @@ -22,8 +22,7 @@ void rt_platform_init(void) rt_hw_sdl_start(); #endif /* RT_USING_RTGUI */ -#ifdef WIN32 - +#ifdef _WIN32 rt_thread_idle_sethook(rt_hw_win32_low_cpu); #endif rt_thread_delay(50); diff --git a/bsp/simulator/drivers/usart_sim.c b/bsp/simulator/drivers/usart_sim.c index 7db37c848..e13793acd 100644 --- a/bsp/simulator/drivers/usart_sim.c +++ b/bsp/simulator/drivers/usart_sim.c @@ -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, diff --git a/bsp/simulator/rtconfig.h b/bsp/simulator/rtconfig.h index 0d885851b..ded6b25da 100644 --- a/bsp/simulator/rtconfig.h +++ b/bsp/simulator/rtconfig.h @@ -2,7 +2,7 @@ #ifndef __RTTHREAD_CFG_H__ #define __RTTHREAD_CFG_H__ -/* SECTION: port for visual stuido */ +/* SECTION: port for visual studio */ #ifdef _MSC_VER #undef RT_USING_NEWLIB #undef RT_USING_MINILIBC @@ -79,10 +79,10 @@ #define RT_CONSOLEBUF_SIZE 128 #define RT_CONSOLE_DEVICE_NAME "sci0" -/* SECTION: commponent opitions */ +/* SECTION: component options */ #define RT_USING_COMPONENTS_INIT -/* SECTION: MTD interface opitons */ +/* SECTION: MTD interface options */ /* using mtd nand flash */ #define RT_USING_MTD_NAND /* using mtd nor flash */ @@ -94,7 +94,7 @@ #define FINSH_USING_SYMTAB #define FINSH_USING_DESCRIPTION -/* SECTION: device filesystem */ +/* SECTION: device file system */ #define RT_USING_DFS /* DFS: ELM FATFS options */ @@ -109,30 +109,30 @@ /* Maximum sector size to be handled. */ #define RT_DFS_ELM_MAX_SECTOR_SIZE 512 -/* DFS: network filesystem options */ +/* DFS: network file system options */ #define RT_USING_DFS_NFS -/* DFS: uffs nand filesystem options */ +/* DFS: uffs nand file system options */ /* #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 */ #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 -/* DFS: uffs nor flash filesystem options */ +/* DFS: uffs nor flash file system options */ #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 */ #define RT_USING_DFS_WINSHAREDIR -/* the max number of mounted filesystem */ +/* the max number of mounted file system */ #define DFS_FILESYSTEMS_MAX 4 /* the max number of opened files */ #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 */ /* LwIP uses RT-Thread Memory Management */ #define RT_LWIP_USING_RT_MEM @@ -145,7 +145,7 @@ /* Enable 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 /* Using DHCP */ @@ -174,7 +174,7 @@ #define RT_LWIP_TCPTHREAD_MBOX_SIZE 10 #define RT_LWIP_TCPTHREAD_STACKSIZE 1024 -/* ethernet if thread options */ +/* Ethernet if thread options */ #define RT_LWIP_ETHTHREAD_PRIORITY 15 #define RT_LWIP_ETHTHREAD_MBOX_SIZE 10 #define RT_LWIP_ETHTHREAD_STACKSIZE 512