Subversion Repositories shark

Rev

Blame | Last modification | View Log | RSS feed

// define CONSTANTS for error codes
#define _CONST_

#define INITERR 1
#define MODEERR 2

#define XMIN     5
#define XMAX     805
#define YMIN     50
#define YMAX     650
#define GRID_SIZE 200

#define MAX_PLANES   50            /* max number of planes         */
#define MAX_SIMUL_PLANES 10
#define NPLANECABS MAX_PLANES
#define ESC      27             /* ASCII code of ESCAPE key     */
#define PLANEGROUP 1
#define ATCGROUP 2
#define MAX_ATCS 12
#define ATCSIZE 8

#define NOTMYZONE -2

#define TIME_SPEED 5
#define SCALE_DIST 100

#define MIN_DIST 50
#define PLANE_AIRPORT_DIST 30

/* Subparts */
#define JET_ON

/* CPU Speed Selection
   --------------------------------------------------------------------
   1700 - Pentium 4 1.7 GHz
   400  - Pentium 2 400 MHz
   133  - Pentium 1 133 MHz
*/

#define CPU 1700

/*
 *
 * WCET, Periods and Models
 *
 */


#if CPU==133
#define WCET_JETCTRL     10000
#define WCET_JETDUMMY      300
#define WCET_JETSLIDE     2000
#endif

#if CPU==400
#define WCET_JETCTRL      7500
#define WCET_JETDUMMY      200
#define WCET_JETSLIDE     2100
#endif

#if CPU==1700
#define WCET_JETCTRL      4500
#define WCET_JETDUMMY      100
#define WCET_JETSLIDE     1300
#endif

#define PERIOD_JETCTRL  100000
#define PERIOD_JETDUMMY 100000
#define PERIOD_JETSLIDE 100000



/*
 *
 * JETCONTROL stuffs
 *
 */

#define DUMMY_PID    1


#define JET_NTASK   35
#define JET_Y_NAME YMIN+JET_DUMMY_HEIGHT+20

#define JET_DUMMY_WIDTH    180
#define JET_DUMMY_HEIGHT    80

/* the point (x, y) is the top left corner */
#define JET_DUMMY_X        XMAX+10
#define JET_DUMMY_Y        YMIN

#define JET_SLIDE_WIDTH    25
#define JET_SLIDE_X        XMAX+155

#define JETCONTROL 5


#define DISPPLANEINFOWCET      10000
#define DISPPLANEINFOPERIOD    80000

#define PLANEWCET              200
#define PLANEPERIOD            40000

#define REGWITHATCWCET         50
#define REGWITHATCPERIOD       40000

#define RECVMSGWCET            150
#define RECVMSGPERIOD          40000

#define MANAGERATCWCET         700
#define MANAGERATCPERIOD       80000

#define DISPATCWCET            10000
#define DISPATCPERIOD          100000

#define DRAWSIMAREAWCET        2400
#define DRAWSIMAREAPERIOD      160000