From 3ab7176e463268a471eb0e90c8520be4ff15a42f Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 28 May 2013 19:22:38 +0000 Subject: moved old FreeRTOS based MPU Softeware to mpu.old git-svn-id: https://svn.spreadspace.org/mur.sat@768 7de4ea59-55d0-425e-a1af-a3118ea81d4c --- software/mpu.old/inc/Types.h | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 software/mpu.old/inc/Types.h (limited to 'software/mpu.old/inc/Types.h') diff --git a/software/mpu.old/inc/Types.h b/software/mpu.old/inc/Types.h new file mode 100644 index 0000000..9cb0101 --- /dev/null +++ b/software/mpu.old/inc/Types.h @@ -0,0 +1,45 @@ +#include "FreeRTOS.h" +#include "task.h" +#include "queue.h" + +#define MS(ms) portTICK_RATE_MS * (ms) + +/* Status_t*/ +typedef enum +{ + STATUS_OK = 0x0U, + STATUS_ERROR_INIT, + STATUS_ERROR_SND, + STATUS_ERROR_RCV, + STATUS_ERROR_TIMEOUT +}Status_t; + +/* Sender_t */ +typedef enum +{ + Sender_Kernel = 0x0, + Sender_Camera, + Sender_Spi, + Sender_LightSens, + Sender_UART +}Sender_t; + +/* Message_t */ +typedef struct +{ + void *pData; + Sender_t Sender; +}Message_t; + +typedef struct +{ + xQueueHandle hxq_Kernel; + xQueueHandle hxq_Camera; + xQueueHandle hxq_LightSens; +}QH_t; + +typedef struct +{ + xTaskHandle hxTask_Self; + QH_t QueueHandles; +}Task_Param_t; -- cgit v1.2.3