mirror of https://github.com/RT-Thread/rt-thread
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
This commit is contained in:
parent
dc5e5b7fa6
commit
36a93a4e4a
Binary file not shown.
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue