diff --git a/bsp/evb4020/Rt-thread sep4020 分支介绍.doc b/bsp/evb4020/Rt-thread sep4020 分支介绍.doc new file mode 100755 index 0000000000..eabd3d60ac Binary files /dev/null and b/bsp/evb4020/Rt-thread sep4020 分支介绍.doc differ diff --git a/bsp/evb4020/src/application.c b/bsp/evb4020/src/application.c index 7bc321e258..3ada483834 100755 --- a/bsp/evb4020/src/application.c +++ b/bsp/evb4020/src/application.c @@ -63,6 +63,7 @@ void rt_init_thread_entry(void* parameter) else rt_kprintf("haven't written\n"); + lseek(fd,0,SEEK_SET); sz = read(fd,buffer,sizeof(buffer)); @@ -71,6 +72,7 @@ void rt_init_thread_entry(void* parameter) rt_kprintf("READ %d:",sz); while(sz--) rt_kprintf("%c",buffer[sz]);//opposite + rt_kprintf("\n"); } else rt_kprintf("haven't read\n");