From 36a93a4e4a0174529c2b669aa6d23f03c2d10b3a Mon Sep 17 00:00:00 2001 From: wangjiyang Date: Sun, 28 Nov 2010 08:44:48 +0000 Subject: 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 --- ...345\210\206\346\224\257\344\273\213\347\273\215.doc" | Bin 0 -> 33792 bytes bsp/evb4020/src/application.c | 2 ++ 2 files changed, 2 insertions(+) create mode 100755 "bsp/evb4020/Rt-thread sep4020 \345\210\206\346\224\257\344\273\213\347\273\215.doc" diff --git "a/bsp/evb4020/Rt-thread sep4020 \345\210\206\346\224\257\344\273\213\347\273\215.doc" "b/bsp/evb4020/Rt-thread sep4020 \345\210\206\346\224\257\344\273\213\347\273\215.doc" new file mode 100755 index 0000000000..eabd3d60ac Binary files /dev/null and "b/bsp/evb4020/Rt-thread sep4020 \345\210\206\346\224\257\344\273\213\347\273\215.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"); -- cgit v1.3.1