sd & rtos & serial test
Dependencies: SDFileSystem mbed-rtos mbed
Revision 0:8aef073b3e23, committed 2013-01-28
- Comitter:
- tetuomin
- Date:
- Mon Jan 28 07:43:09 2013 +0000
- Child:
- 1:0714787a8824
- Commit message:
- sd test with serials and rtos
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SDFileSystem.lib Mon Jan 28 07:43:09 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/SDFileSystem/#c8f66dc765d4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Jan 28 07:43:09 2013 +0000 @@ -0,0 +1,22 @@ +#include "mbed.h" +#include "rtos.h" +#include "SDFileSystem.h" + +#define FILE_LOC "/sd/test.txt" + +Serial pc(USBTX, USBRX); +Serial gps(p28, p27); +Serial test(p9,p10); +SDFileSystem sd(p5, p6, p7, p8, "sd"); +DigitalOut myled(LED1); + +int main() { + + while(1) { + myled = !myled; + FILE *fp = NULL; + fp = fopen(FILE_LOC, "w"); + if( fp != NULL ) fclose(fp); + Thread::wait(1000); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-rtos.lib Mon Jan 28 07:43:09 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed-rtos/#88a1a9c26ae3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Jan 28 07:43:09 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/0954ebd79f59 \ No newline at end of file