/* * 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<