summaryrefslogtreecommitdiff
path: root/software/mpu/inc/Types.h
diff options
context:
space:
mode:
Diffstat (limited to 'software/mpu/inc/Types.h')
-rw-r--r--software/mpu/inc/Types.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/software/mpu/inc/Types.h b/software/mpu/inc/Types.h
new file mode 100644
index 0000000..501d359
--- /dev/null
+++ b/software/mpu/inc/Types.h
@@ -0,0 +1,33 @@
+#include "FreeRTOS.h"
+#include "task.h"
+#include "queue.h"
+
+typedef enum
+{
+ STATUS_OK = 0x0U,
+ STATUS_ERROR_INIT,
+ STATUS_ERROR_SND,
+ STATUS_ERROR_RCV,
+ STATUS_ERROR_TIMEOUT
+}Status_t;
+
+typedef enum
+{
+ Sender_Kernel = 0x0,
+ Sender_Camera,
+ Sender_Spi,
+ Sender_LightSens
+}Sender_t;
+
+typedef struct
+{
+ void *pData;
+ Sender_t Sender;
+}Message_t;
+
+typedef struct
+{
+ xTaskHandle *pxTask_Lightsens;
+ xQueueHandle *pxQueue;
+}Task_Param_t;
+