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/src/lightsens.c | 116 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 software/mpu.old/src/lightsens.c (limited to 'software/mpu.old/src/lightsens.c') diff --git a/software/mpu.old/src/lightsens.c b/software/mpu.old/src/lightsens.c new file mode 100644 index 0000000..ed280f0 --- /dev/null +++ b/software/mpu.old/src/lightsens.c @@ -0,0 +1,116 @@ +/* + * lightsens.c + * + * Created on: 23.10.2011 + * Author: Roland + */ + +#include "Types.h" +#include "FreeRTOS.h" +#include "queue.h" +#include "adc.h" + +#define LED_PORT 0 // Port for led +#define LED_BIT 7 // Bit on port for led + +#define TASK_PRIORITY_lightsens ( tskIDLE_PRIORITY + 2 ) +#define TASK_STACK_SIZE_lightsens ( ( unsigned short ) 64 ) + + +/* Debug Helper */ +Status_t lightsens_ValueToString() +{ +} + +/* Globals */ +static Task_Param_t TaskParam_LightSens; + +/* + * Wake up other tasks, send them messages telling what to do, + * wait for them to have processed the commands or not, maybe + * put them to sleep again, ... + * */ +static void lightsens_Process_Task(void *Param) +{ + Message_t Msg; + portCHAR chBufLSe[10] = "Seas Knl!"; + + portCHAR led; + + portCHAR i; +// volatile uint32_t ADCValue[ADC_NUM]; + uint32_t ADCValue[ADC_NUM]; + + // set led port to output + LPC_GPIO0->DIR |= 1<MASKED_ACCESS[(1<