![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
センサー動作確認版
Dependencies: MPU9150_DMP QuaternionMath iSDIO mbed-rtos mbed
Diff: main.cpp
- Revision:
- 0:65a0ae5578da
- Child:
- 1:73543a1fbe62
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat May 14 07:11:48 2016 +0000 @@ -0,0 +1,30 @@ +#include "mbed.h" +#include "rtos.h" +#include "math.h" +#include "iSDIO.h" +#include "gpio_defs.h" + +extern void TaskSensor(void const* ); +extern void TaskLed(void const* ); +extern void TaskFA(void const* ); + +Thread* threadLed = NULL; +Thread* threadSensor = NULL; +Thread* threadFA = NULL; + +Serial pc(USBTX, USBRX); + +int main() { + pc.baud(115200); + printf("Startup Neon main program\r\n"); + + Thread::wait(500); // 適当な待ち時間 + + //threadLed = new Thread(TaskLed, NULL, osPriorityNormal, DEFAULT_STACK_SIZE, NULL ); + //threadSensor = new Thread(TaskSensor, NULL, osPriorityNormal, DEFAULT_STACK_SIZE*2, NULL ); // スタックサイズ未検証 + //threadFA = new Thread(TaskFA, NULL, osPriorityNormal, DEFAULT_STACK_SIZE, NULL ); + + while(true){ + Thread::wait(10000); // 適当な待ち時間 + } +}