![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
センサー動作確認版
Dependencies: MPU9150_DMP QuaternionMath iSDIO mbed-rtos mbed
main.cpp
- Committer:
- yishii
- Date:
- 2016-05-14
- Revision:
- 0:65a0ae5578da
- Child:
- 1:73543a1fbe62
File content as of revision 0:65a0ae5578da:
#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); // 適当な待ち時間 } }