Browse Source

added a document 2 bsp/evb4020/src & modified application.c

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1131 bbd45198-f89e-11dd-88c7-29a3b14d5316
wangjiyang 14 years ago
parent
commit
36a93a4e4a
2 changed files with 2 additions and 0 deletions
  1. BIN
      bsp/evb4020/Rt-thread sep4020 分支介绍.doc
  2. 2 0
      bsp/evb4020/src/application.c

BIN
bsp/evb4020/Rt-thread sep4020 分支介绍.doc


+ 2 - 0
bsp/evb4020/src/application.c

@@ -63,6 +63,7 @@ void rt_init_thread_entry(void* parameter)
 		else
 		else
 			rt_kprintf("haven't written\n");
 			rt_kprintf("haven't written\n");
 
 
+		lseek(fd,0,SEEK_SET);
 		
 		
 		sz = read(fd,buffer,sizeof(buffer));
 		sz = read(fd,buffer,sizeof(buffer));
 
 
@@ -71,6 +72,7 @@ void rt_init_thread_entry(void* parameter)
 			rt_kprintf("READ %d:",sz);
 			rt_kprintf("READ %d:",sz);
 			while(sz--)
 			while(sz--)
 				rt_kprintf("%c",buffer[sz]);//opposite
 				rt_kprintf("%c",buffer[sz]);//opposite
+			rt_kprintf("\n");
 		}
 		}
 		else
 		else
 			rt_kprintf("haven't read\n");
 			rt_kprintf("haven't read\n");