
BroBot Code for ESE350 Lab6 part 3 (Skeleton)
Dependencies: MPU6050_V3 mbed-rtos mbed
Fork of BroBot_RTOS_ESE350 by
rtos_definations.h@11:2553f5798f84, 2017-01-19 (annotated)
- Committer:
- arvindnr89
- Date:
- Thu Jan 19 19:18:54 2017 +0000
- Revision:
- 11:2553f5798f84
- Child:
- 16:3a85662fb740
Working code with bug fixes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
arvindnr89 | 11:2553f5798f84 | 1 | #ifndef _RTOS_DEFINATIONS_H |
arvindnr89 | 11:2553f5798f84 | 2 | #define _RTOS_DEFINATIONS_H |
arvindnr89 | 11:2553f5798f84 | 3 | |
arvindnr89 | 11:2553f5798f84 | 4 | //*********** Thread Definations BEGIN ***********// |
arvindnr89 | 11:2553f5798f84 | 5 | //EVENT Signals |
arvindnr89 | 11:2553f5798f84 | 6 | #define IMU_UPDATE_SIGNAL 0x02 |
arvindnr89 | 11:2553f5798f84 | 7 | |
arvindnr89 | 11:2553f5798f84 | 8 | |
arvindnr89 | 11:2553f5798f84 | 9 | |
arvindnr89 | 11:2553f5798f84 | 10 | void imu_update_thread(void const *args); |
arvindnr89 | 11:2553f5798f84 | 11 | osThreadId imu_update_thread_ID; |
arvindnr89 | 11:2553f5798f84 | 12 | osThreadDef(imu_update_thread, osPriorityHigh, DEFAULT_STACK_SIZE); |
arvindnr89 | 11:2553f5798f84 | 13 | |
arvindnr89 | 11:2553f5798f84 | 14 | void communication_update_thread(void const *args); |
arvindnr89 | 11:2553f5798f84 | 15 | osThreadId communication_update_thread_ID; |
arvindnr89 | 11:2553f5798f84 | 16 | osThreadDef(communication_update_thread, osPriorityAboveNormal, DEFAULT_STACK_SIZE); |
arvindnr89 | 11:2553f5798f84 | 17 | |
arvindnr89 | 11:2553f5798f84 | 18 | void pid_update_thread(void const *args); |
arvindnr89 | 11:2553f5798f84 | 19 | osThreadId pid_update_thread_ID; |
arvindnr89 | 11:2553f5798f84 | 20 | osThreadDef(pid_update_thread, osPriorityNormal, DEFAULT_STACK_SIZE); |
arvindnr89 | 11:2553f5798f84 | 21 | |
arvindnr89 | 11:2553f5798f84 | 22 | |
arvindnr89 | 11:2553f5798f84 | 23 | |
arvindnr89 | 11:2553f5798f84 | 24 | //*********** Thread Definations END *************// |
arvindnr89 | 11:2553f5798f84 | 25 | #endif |