BroBot Code for ESE350 Lab6 part 3 (Skeleton)
Dependencies: MPU6050_V3 mbed-rtos mbed
Fork of BroBot_RTOS_ESE350 by
Diff: rtos_definations.h
- Revision:
- 17:8e2824f64b91
- Parent:
- 16:3a85662fb740
diff -r 3a85662fb740 -r 8e2824f64b91 rtos_definations.h --- a/rtos_definations.h Wed Feb 08 22:33:21 2017 +0000 +++ b/rtos_definations.h Tue Mar 21 19:46:44 2017 +0000 @@ -1,29 +1,32 @@ #ifndef _RTOS_DEFINATIONS_H #define _RTOS_DEFINATIONS_H +#include "mbed.h" +#include "pin_assignments.h" + //*********** Thread Definations BEGIN ***********// //EVENT Signals -#define IMU_UPDATE_SIGNAL 0x02 +#define IMU_UPDATE_SIGNAL 0x04 +#define PID_UPDATE_SIGNAL 0x05 +#define COMMUNIATION_UPDATE_SIGNAL 0x06 +//GPIO Pins +DigitalOut pin_30(DEBUG_PIN1); //Yellow Channel +DigitalOut pin_5(DEBUG_PIN2); //Pink Channel +DigitalOut pin_6(DEBUG_PIN3); //Green void imu_update_thread(void const *args); osThreadId imu_update_thread_ID; osThreadDef(imu_update_thread, osPriorityHigh, DEFAULT_STACK_SIZE); -void communication_update_thread(void const *args); -osThreadId communication_update_thread_ID; -osThreadDef(communication_update_thread, osPriorityAboveNormal, DEFAULT_STACK_SIZE); - void pid_update_thread(void const *args); osThreadId pid_update_thread_ID; -osThreadDef(pid_update_thread, osPriorityNormal, DEFAULT_STACK_SIZE); +osThreadDef(pid_update_thread, osPriorityAboveNormal, DEFAULT_STACK_SIZE); -/* -void waypoint_update_thread(void const *args); -osThreadId waypoint_update_thread_ID; -osThreadDef(waypoint_update_thread, osPriorityNormal, DEFAULT_STACK_SIZE); -*/ +void communication_update_thread(void const *args); +osThreadId communication_update_thread_ID; +osThreadDef(communication_update_thread, osPriorityNormal, DEFAULT_STACK_SIZE); //*********** Thread Definations END *************//