summaryrefslogtreecommitdiff
path: root/software/mpu/inc/Types.h
diff options
context:
space:
mode:
authorRoland Sahlsten <Roland.Sahlsten.ASE10@fh-joanneum.at>2011-09-27 19:50:31 +0000
committerRoland Sahlsten <Roland.Sahlsten.ASE10@fh-joanneum.at>2011-09-27 19:50:31 +0000
commit365f6599a91f6b2ca8f22c08f62fb6c46ee098b1 (patch)
tree6311be5d784dca2369cfbbcf274cf5f378c9eb0c /software/mpu/inc/Types.h
parentremoving remaining mpu source files (diff)
Initial version of MPU
git-svn-id: https://svn.spreadspace.org/mur.sat@172 7de4ea59-55d0-425e-a1af-a3118ea81d4c
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;
+