OSEK OSEK {

OS	ExampleOS {
	STATUS = CT_STATUS;
	PRETASKHOOK = FALSE;
	POSTTASKHOOK = FALSE;
	STARTUPHOOK = FALSE;
	ERRORHOOK = FALSE;
	SHUTDOWNHOOK = FALSE;
	MEMMAP = FALSE;
	USERESSCHEDULER = FALSE;
};

TASK Task1 {
	PRIORITY = 1;
	SCHEDULE = NON;
	ACTIVATION = 1;
	AUTOSTART = TRUE {
		APPMODE = AppMode1;
	};
	STACK = 2048;
	TYPE = BASIC;
};

TASK Task2 {
	PRIORITY = 2;
	SCHEDULE = NON;
	ACTIVATION = 1;
	AUTOSTART = FALSE;
	STACK = 2048;
	TYPE = BASIC;
}

TASK Task3 {
	PRIORITY = 3;
	SCHEDULE = NON;
	ACTIVATION = 1;
	AUTOSTART = FALSE;
	STACK = 2048;
	TYPE = BASIC;
}

TASK Task4 {
	PRIORITY = 3;
	SCHEDULE = CT_SCHEDULING_TASK;
	ACTIVATION = 1;
	AUTOSTART = FALSE;
	STACK = 2048;
	TYPE = BASIC;
}

ISR ISR2 {
	CATEGORY = 2;
	INTERRUPT = CT_ISR2;
	PRIORITY = 0;
}

APPMODE AppMode1;

};
