diff options
author | Christian Pointner <equinox@mur.at> | 2013-08-04 22:54:56 +0000 |
---|---|---|
committer | Christian Pointner <equinox@mur.at> | 2013-08-04 22:54:56 +0000 |
commit | 2b1ba741d5c813df07feb2c37aab7cb2c5c4f947 (patch) | |
tree | 3c52b484126d1ed4a4df4c38717c0a04bb392399 /software/mpu.old/src/camera.c | |
parent | switched to chibios 2.6.0 (diff) |
remove old FreeRTOS based MPU files
git-svn-id: https://svn.spreadspace.org/mur.sat@824 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/mpu.old/src/camera.c')
-rw-r--r-- | software/mpu.old/src/camera.c | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/software/mpu.old/src/camera.c b/software/mpu.old/src/camera.c deleted file mode 100644 index 8ec62d3..0000000 --- a/software/mpu.old/src/camera.c +++ /dev/null @@ -1,62 +0,0 @@ -/*
- * camera.c
- *
- * Created on: 23.10.2011
- * Author: Roland
- */
-
-#include "Types.h"
-#include "FreeRTOS.h"
-#include "queue.h"
-
-#define TASK_PRIORITY_camera ( tskIDLE_PRIORITY + 2 )
-#define TASK_STACK_SIZE_camera ( ( unsigned short ) 64 )
-
-/* Globals */
-static Task_Param_t TaskParam_Camera;
-
-/*
- * The camera is connected to the MPU vie I2C to control the camera,
- * and has a 8 bit bus for data transmission ...
- * */
-static void camera_Process_Task(void *Param)
-{
- Message_t Msg;
- portCHAR chMsgBufCam[10] = "Hello Kl!";
-
- if(NULL == TaskParam_Camera.QueueHandles.hxq_Camera)
- {
- return;
- }
-
- while(1)
- {
- if( xQueueReceive( TaskParam_Camera.QueueHandles.hxq_Camera, &Msg, MS(5) ))
- {
- switch (Msg.Sender)
- {
- case Sender_Kernel:
- {
- Msg.Sender = Sender_Camera;
- Msg.pData = chMsgBufCam;
- xQueueSend(TaskParam_Camera.QueueHandles.hxq_Kernel, &Msg, MS(10));
- }
- default: {;} /* for the time being we ignore messages received from
- someone other than the kernel. */
- }
- }
- }
-}
-
-Status_t camera_Init_Camera(QH_t hxQueues)
-{
- TaskParam_Camera.QueueHandles = hxQueues;
-
- if(!xTaskCreate( camera_Process_Task, (signed char *) "Camera",
- TASK_STACK_SIZE_camera, &TaskParam_Camera,
- TASK_PRIORITY_camera, &(TaskParam_Camera.hxTask_Self)))
- return STATUS_ERROR_INIT;
-
- /*TODO: check for success and pass it over to caller. */
- return STATUS_OK;
-}
|