arranged by katano
Dependencies: MPU9150_DMP Neon_F303K8 QuaternionMath iSDIO mbed-rtos mbed
Fork of Neon_F303K8 by
Diff: main.cpp
- Revision:
- 1:73543a1fbe62
- Parent:
- 0:65a0ae5578da
- Child:
- 3:5f0d6133d34c
diff -r 65a0ae5578da -r 73543a1fbe62 main.cpp --- a/main.cpp Sat May 14 07:11:48 2016 +0000 +++ b/main.cpp Mon May 16 15:21:20 2016 +0000 @@ -4,6 +4,10 @@ #include "iSDIO.h" #include "gpio_defs.h" +#ifndef TARGET_NUCLEO_F303K8 +#error This program only supports to run on Nucleo F303K8. +#endif + extern void TaskSensor(void const* ); extern void TaskLed(void const* ); extern void TaskFA(void const* ); @@ -21,10 +25,14 @@ 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 ); + 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); // 適当な待ち時間 + StatusLED = 1; + Thread::wait(800); + StatusLED = 0; + Thread::wait(800); } } +