a0ccd623c6
git-svn-id: file:///srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/repositories/svn/Diplomarbeit@110 9fe90eed-be63-e94b-8204-d34ff4c2ff93
178 lines
5.1 KiB
C
178 lines
5.1 KiB
C
/* ---------------------------------------------------------------------------
|
|
* taskfunctions.h (c) 2008 Micro-key bv
|
|
* ---------------------------------------------------------------------------
|
|
* Micro-key bv
|
|
* Industrieweg 28, 9804 TG Noordhorn
|
|
* Postbus 92, 9800 AB Zuidhorn
|
|
* The Netherlands
|
|
* Tel: +31 594 503020
|
|
* Fax: +31 594 505825
|
|
* Email: support@microkey.nl
|
|
* Web: www.microkey.nl
|
|
* ---------------------------------------------------------------------------
|
|
* Description:
|
|
* Headerfile for taskfunctions.c
|
|
* ---------------------------------------------------------------------------
|
|
* Version(s): 0.1, Apr 09, 2008, MMi
|
|
* Creation.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
#ifndef TASKFUNCTIONS_H_
|
|
#define TASKFUNCTIONS_H_
|
|
/* ---------------------------------------------------------------------------
|
|
* System include files.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
#include "lpc23xx.h"
|
|
#include "types.h"
|
|
|
|
/* FreeRTOS includes */
|
|
#include "FreeRTOS.h"
|
|
#include "task.h"
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Application include files.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Constant and macro definitions.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
#define allMemoryUseSameLED 1
|
|
|
|
|
|
/* Allocation of digital Output LEDs to a single Test */
|
|
/* LED Setting correspond to if all memory Test should share the same LED */
|
|
#if (allMemoryUseSameLED == 0)
|
|
#define LEDTESTLED 0
|
|
#define EEPROMLED 1
|
|
#define FLASHLED 2
|
|
#define LOGLED 3
|
|
#define DIOLED 4
|
|
#define MMCLED 5
|
|
#define POWERLED 6
|
|
#define RTCLED 7
|
|
#define AIOLED 8
|
|
#define BUSLED 8
|
|
#define COMLED 8
|
|
#else
|
|
#define BATTERYLED 0
|
|
#define LEDTESTLED 1
|
|
#define MEMORYLED 2
|
|
#define DIOLED 3
|
|
#define AIOLED 4
|
|
#define MMCLED 5
|
|
#define POWERLED 6
|
|
#define RTCLED 7
|
|
#define BUSLED 8
|
|
#define COMLED 8
|
|
#endif
|
|
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Type definitions.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Variable declarations.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
|
|
/* Taskhandler
|
|
* Last Argument called in xTaskCreate
|
|
* Needed to identify a Task
|
|
*/
|
|
xTaskHandle batteryled;
|
|
xTaskHandle gLED;
|
|
xTaskHandle ledtestled;
|
|
xTaskHandle dioled;
|
|
xTaskHandle aioled;
|
|
xTaskHandle busled;
|
|
xTaskHandle eepromled;
|
|
xTaskHandle flashled;
|
|
xTaskHandle logled;
|
|
xTaskHandle memoryled;
|
|
xTaskHandle mmcled;
|
|
xTaskHandle comled;
|
|
xTaskHandle powerled;
|
|
xTaskHandle rtcled;
|
|
xTaskHandle spinWheel;
|
|
|
|
/* BaseType
|
|
* Return of xTaskCreate
|
|
* Indicates wether a Function was created (=pdPASS) oder not (= 0)
|
|
*/
|
|
portBASE_TYPE d_batteryled;
|
|
portBASE_TYPE d_gLED;
|
|
portBASE_TYPE d_ledtestled;
|
|
portBASE_TYPE d_dioled;
|
|
portBASE_TYPE d_aioled;
|
|
portBASE_TYPE d_busled;
|
|
portBASE_TYPE d_eepromled;
|
|
portBASE_TYPE d_flashled;
|
|
portBASE_TYPE d_logled;
|
|
portBASE_TYPE d_memoryled;
|
|
portBASE_TYPE d_mmcled;
|
|
portBASE_TYPE d_comled;
|
|
portBASE_TYPE d_powerled;
|
|
portBASE_TYPE d_rtcled;
|
|
portBASE_TYPE d_spinWheel;
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Function declarations.
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Function: taskInit
|
|
*
|
|
* Function to initialize TaskStatus Variables
|
|
*
|
|
* Parameter: void
|
|
*
|
|
* Return: void
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
void taskInit (void);
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Function: diotasksdelete
|
|
*
|
|
* Function to delete ALL existing Tasks flashing a DIO-LED
|
|
*
|
|
* Parameter: void
|
|
*
|
|
* Return: void
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
void diotasksdelete(void);
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Function: diotaskssuspend
|
|
*
|
|
* Function to suspend ALL existing Tasks flashing a DIO-LED
|
|
*
|
|
* Parameter: void
|
|
*
|
|
* Return: void
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
void diotaskssuspend (void);
|
|
|
|
/* ---------------------------------------------------------------------------
|
|
* Function: diotasksresume
|
|
*
|
|
* Function to resume ALL existing and suspended Tasks flashing a DIO-LED
|
|
*
|
|
* Parameter: void
|
|
*
|
|
* Return: void
|
|
* ---------------------------------------------------------------------------
|
|
*/
|
|
void diotasksresume (void);
|
|
|
|
#endif /*TASKFUNCTIONS_H_*/
|