summaryrefslogtreecommitdiff
path: root/software/mpu/src/boot.c
blob: 1f18918fefad36363cdb5f177df41b1cf2f77105 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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();
}