-
Notifications
You must be signed in to change notification settings - Fork 1
/
patriots.c
36 lines (27 loc) · 879 Bytes
/
patriots.c
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
/*
* PATRIOT SYSTEM SIMULATION
*
* Simple demo application simulating a Patriot which
* tries to catch an incoming enemy missile.
*
* Created on: 14/ott/2015
* Author: Paolo Sassi
*/
#include "globals.h" /* application global constants */
#include "taskslib.h" /* task management functions */
#include "graphics.h" /* graphics functions */
#include "tasks.h" /* task code and task-related functions */
int main()
{
init();
drawGUI();
/* create the initial task set */
create_task(display_task, DISPLAY_PER, DISPLAY_DL, DISPLAY_PRIO, DISPLAY_INDEX);
create_task(radar_task, RADAR_PER, RADAR_DL, RADAR_PRIO, RADAR_INDEX);
create_task(keyboard_task, KEYBOARD_PER, KEYBOARD_DL, KEYBOARD_PRIO, KEYBOARD_INDEX);
create_task(ecs_task, ECS_PER, ECS_DL, ECS_PRIO, ECS_INDEX);
/* wait until application end */
waitEnd();
endProgram();
return 0;
}