![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
センサー動作確認版
Dependencies: MPU9150_DMP QuaternionMath iSDIO mbed-rtos mbed
Diff: taskFA.cpp
- Revision:
- 1:73543a1fbe62
- Parent:
- 0:65a0ae5578da
--- a/taskFA.cpp Sat May 14 07:11:48 2016 +0000 +++ b/taskFA.cpp Mon May 16 15:21:20 2016 +0000 @@ -1,10 +1,16 @@ #include "mbed.h" #include "common.h" +#include "configure.h" #include "SDFileSystem.h" #include "rtos.h" +#include "led.h" + +#if 0 static SDFileSystem sd(PA_7,PA_6,PA_5,PA_4,"sd"); // MOSI,MISO,SCK,CS +extern Led LedStripe[NUMBER_OF_LEDS]; + /* +--------+ | |VOUT---+ ,--------+ @@ -23,19 +29,22 @@ void TaskFA(void const *argument) { - pc.printf("iSDIO Initialize\r\n"); - mkdir("/sd/mydir", 0777); + printf("TaskFA started\r\n\r\n"); + + // create private directory + mkdir("/sd/Neon", 0777); - FILE *fp = fopen("/sd/mydir/sdtest.txt", "w"); + FILE *fp = fopen("/sd/mydir/NeonInfo.txt", "w"); if(fp == NULL) { - pc.printf("Could not open file for write\r\n"); + printf("Could not open file for write\r\n"); } - fprintf(fp, "Hello fun SD Card World!"); + fprintf(fp, "Neon firmware launched\r\n"); fclose(fp); - pc.printf("SD process end\r\n"); + printf("TaskFA process finished\r\n"); - while(1){ - Thread::wait(100); + while(true){ + Thread::wait(10000); // 適当な待ち時間 } } +#endif