From 365f6599a91f6b2ca8f22c08f62fb6c46ee098b1 Mon Sep 17 00:00:00 2001 From: Roland Sahlsten Date: Tue, 27 Sep 2011 19:50:31 +0000 Subject: Initial version of MPU git-svn-id: https://svn.spreadspace.org/mur.sat@172 7de4ea59-55d0-425e-a1af-a3118ea81d4c --- software/mpu/src/boot.c | 57 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 software/mpu/src/boot.c (limited to 'software/mpu/src/boot.c') diff --git a/software/mpu/src/boot.c b/software/mpu/src/boot.c new file mode 100644 index 0000000..1f18918 --- /dev/null +++ b/software/mpu/src/boot.c @@ -0,0 +1,57 @@ +/* + * boot.c + * + * Created on: 13.09.2011 + * Author: Roland + */ + +#include "Types.h" +#include "FreeRTOS.h" +#include "task.h" +#include "queue.h" + +//static void kernel_Process_Task(void *Param); +//static xTaskHandle *pkernel_TaskHandle; +//static Task_Param_t kernel_Param; + +Status_t kernel_Init_Kernel(xQueueHandle * pxQueue); + +Status_t boot_Init_Kernel(xQueueHandle * pxQueue) +{ + return kernel_Init_Kernel( pxQueue ); +} +Status_t boot_Init_Camera(xQueueHandle * pxQueue) +{ + return STATUS_OK; +} +Status_t boot_Init_LightSens(xQueueHandle * pxQueue) +{ + return STATUS_OK; +} + +Status_t boot_CreateQueues( xQueueHandle *pxQueue_Kernel, + xQueueHandle *pxQueue_Camera, + xQueueHandle *pxQueue_LightSens) +{ + return STATUS_OK; +} +void boot_Main(void) +{ + /* + * + * */ + Status_t Status; + xQueueHandle * pxQueue_Kernel = NULL, + * pxQueue_Camera = NULL, + * pxQueue_LightSens = NULL; + + Status = boot_CreateQueues(pxQueue_Kernel, pxQueue_Camera, pxQueue_LightSens); + + Status = boot_Init_Kernel(pxQueue_Kernel); + Status = boot_Init_Camera(pxQueue_Camera); + Status = boot_Init_LightSens(pxQueue_LightSens); + + /* Start the tasks. */ + vTaskStartScheduler(); +} + -- cgit v1.2.3