This repository has been archived on 2020-06-14. You can view files and clone it, but cannot push or open issues or pull requests.
2016-09-12 14:02:24 +02:00

36 lines
1.0 KiB
C

/**************************************************************************
* NAME: scheduler.h *
* PURPOSE: Defining the the scheduler to be used in the system to organize*
* the runtime for the tasks in the system based on priority. *
* INFORMATION: *
* GLOBAL VARIABLES: *
* Variable Type Description *
* -------- ---- ----------- *
***************************************************************************/
#ifndef SCHEDULER_H_
#define SCHEDULER_H_
#include <stdbool.h>
/* Enum containing all the possible task priorities */
typedef enum
{
IDLE = 0,
LOW,
MEDIUM,
HIGH,
REALTIME,
MAX_PRIORITY = 255
} taskPriority_t;
typedef struct
{
const char * taskName; /* Name of the task */
const char * subTaskName; /*Needed?*/
}task_t;
#endif /* SCHEDULER_H_ */