Exemple #1
0
 /****** Object OS ******/

 /****** Object TASK ******/

const TaskType TaskMain = 0;

extern void TASKNAME( TaskMain )( void );

static __STK_UNIT _stack_TaskMain[__TCOUNT_STK_UNIT(512)];

const Priority tinib_inipri[TNUM_TASK] = { TPRI_MINTASK + 1, };
const Priority tinib_exepri[TNUM_TASK] = { TPRI_MINTASK + 1, };
const UINT8 tinib_maxact[TNUM_TASK] = { (1) - 1, };
const AppModeType tinib_autoact[TNUM_TASK] = { 0x00000001, };
const FP tinib_task[TNUM_TASK] = { TASKNAME( TaskMain ), };
const __STK_UNIT tinib_stk[TNUM_TASK] = { (__STK_UNIT)_stack_TaskMain, };
const UINT16 tinib_stksz[TNUM_TASK] = { 512, };

TaskType tcb_next[TNUM_TASK];
UINT8 tcb_tstat[TNUM_TASK];
Priority tcb_curpri[TNUM_TASK];
UINT8 tcb_actcnt[TNUM_TASK];
EventMaskType tcb_curevt[TNUM_EXTTASK+1];
EventMaskType tcb_waievt[TNUM_EXTTASK+1];
ResourceType tcb_lastres[TNUM_TASK];
DEFINE_CTXB(TNUM_TASK);

 /****** Object COUNTER ******/

const TaskType ActionTask2 = 1;
const TaskType DisplayTask = 2;

extern void TASKNAME( ActionTask )( void );
extern void TASKNAME( ActionTask2 )( void );
extern void TASKNAME( DisplayTask )( void );

static __STK_UNIT _stack_ActionTask[__TCOUNT_STK_UNIT(512)];
static __STK_UNIT _stack_ActionTask2[__TCOUNT_STK_UNIT(512)];
static __STK_UNIT _stack_DisplayTask[__TCOUNT_STK_UNIT(512)];

const Priority tinib_inipri[TNUM_TASK] = { TPRI_MINTASK + 4, TPRI_MINTASK + 3, TPRI_MINTASK + 1, };
const Priority tinib_exepri[TNUM_TASK] = { TPRI_MINTASK + 4, TPRI_MINTASK + 3, TPRI_MINTASK + 1, };
const UINT8 tinib_maxact[TNUM_TASK] = { (1) - 1, (1) - 1, (1) - 1, };
const AppModeType tinib_autoact[TNUM_TASK] = { 0x00000000, 0x00000000, 0x00000000, };
const FP tinib_task[TNUM_TASK] = { TASKNAME( ActionTask ), TASKNAME( ActionTask2 ), TASKNAME( DisplayTask ), };
const __STK_UNIT tinib_stk[TNUM_TASK] = { (__STK_UNIT)_stack_ActionTask, (__STK_UNIT)_stack_ActionTask2, (__STK_UNIT)_stack_DisplayTask, };
const UINT16 tinib_stksz[TNUM_TASK] = { 512, 512, 512, };

TaskType tcb_next[TNUM_TASK];
UINT8 tcb_tstat[TNUM_TASK];
Priority tcb_curpri[TNUM_TASK];
UINT8 tcb_actcnt[TNUM_TASK];
EventMaskType tcb_curevt[TNUM_EXTTASK+1];
EventMaskType tcb_waievt[TNUM_EXTTASK+1];
ResourceType tcb_lastres[TNUM_TASK];
DEFINE_CTXB(TNUM_TASK);

 /****** Object COUNTER ******/

const CounterType SysTimerCnt = 0;
Exemple #3
0
 /****** Object OS ******/

 /****** Object TASK ******/

const TaskType th = 0;

extern void TASKNAME( th )( void );

static __STK_UNIT _stack_th[__TCOUNT_STK_UNIT(512)];

const Priority tinib_inipri[TNUM_TASK] = { TPRI_MINTASK + 2, };
const Priority tinib_exepri[TNUM_TASK] = { TPRI_MINTASK + 2, };
const UINT8 tinib_maxact[TNUM_TASK] = { (1) - 1, };
const AppModeType tinib_autoact[TNUM_TASK] = { 0x00000000, };
const FP tinib_task[TNUM_TASK] = { TASKNAME( th ), };
const __STK_UNIT tinib_stk[TNUM_TASK] = { (__STK_UNIT)_stack_th, };
const UINT16 tinib_stksz[TNUM_TASK] = { 512, };

TaskType tcb_next[TNUM_TASK];
UINT8 tcb_tstat[TNUM_TASK];
Priority tcb_curpri[TNUM_TASK];
UINT8 tcb_actcnt[TNUM_TASK];
EventMaskType tcb_curevt[TNUM_EXTTASK+1];
EventMaskType tcb_waievt[TNUM_EXTTASK+1];
ResourceType tcb_lastres[TNUM_TASK];
DEFINE_CTXB(TNUM_TASK);

 /****** Object COUNTER ******/

const CounterType cpu_SystemCounter = 0;
 /****** Object TASK ******/

const TaskType TaskDrive = 0;
const TaskType TaskRobot = 1;

extern void TASKNAME( TaskDrive )( void );
extern void TASKNAME( TaskRobot )( void );

static __STK_UNIT _stack_TaskDrive[__TCOUNT_STK_UNIT(2176)];
static __STK_UNIT _stack_TaskRobot[__TCOUNT_STK_UNIT(1024)];

const Priority tinib_inipri[TNUM_TASK] = { TPRI_MINTASK + 2, TPRI_MINTASK + 10, };
const Priority tinib_exepri[TNUM_TASK] = { TPRI_MINTASK + 2, TPRI_MINTASK + 10, };
const UINT8 tinib_maxact[TNUM_TASK] = { (1) - 1, (1) - 1, };
const AppModeType tinib_autoact[TNUM_TASK] = { 0x00000001, 0x00000001, };
const FP tinib_task[TNUM_TASK] = { TASKNAME( TaskDrive ), TASKNAME( TaskRobot ), };
const __STK_UNIT tinib_stk[TNUM_TASK] = { (__STK_UNIT)_stack_TaskDrive, (__STK_UNIT)_stack_TaskRobot, };
const UINT16 tinib_stksz[TNUM_TASK] = { 2176, 1024, };

TaskType tcb_next[TNUM_TASK];
UINT8 tcb_tstat[TNUM_TASK];
Priority tcb_curpri[TNUM_TASK];
UINT8 tcb_actcnt[TNUM_TASK];
EventMaskType tcb_curevt[TNUM_EXTTASK];
EventMaskType tcb_waievt[TNUM_EXTTASK];
ResourceType tcb_lastres[TNUM_TASK];
DEFINE_CTXB(TNUM_TASK);

 /****** Object COUNTER ******/

const CounterType SysTimerCnt = 0;
Exemple #5
0
 /****** Object OS ******/

 /****** Object TASK ******/

const TaskType OSEK_Main_Task = 0;

extern void TASKNAME( OSEK_Main_Task )( void );

static __STK_UNIT _stack_OSEK_Main_Task[__TCOUNT_STK_UNIT(1024)];

const Priority tinib_inipri[TNUM_TASK] = { TPRI_MINTASK + 1, };
const Priority tinib_exepri[TNUM_TASK] = { TPRI_MINTASK + 1, };
const UINT8 tinib_maxact[TNUM_TASK] = { (1) - 1, };
const AppModeType tinib_autoact[TNUM_TASK] = { 0x00000001, };
const FP tinib_task[TNUM_TASK] = { TASKNAME( OSEK_Main_Task ), };
const __STK_UNIT tinib_stk[TNUM_TASK] = { (__STK_UNIT)_stack_OSEK_Main_Task, };
const UINT16 tinib_stksz[TNUM_TASK] = { 1024, };

UINT8 tcb_tstat[TNUM_TASK];
Priority tcb_curpri[TNUM_TASK];
DEFINE_CTXB(TNUM_TASK);
TaskType tcb_next[TNUM_TASK];
EventMaskType tcb_curevt[TNUM_EXTTASK+1];
EventMaskType tcb_waievt[TNUM_EXTTASK+1];
UINT8 tcb_actcnt[TNUM_TASK];
ResourceType tcb_lastres[TNUM_TASK];

 /****** Object COUNTER ******/

const TaskType ReadColour = 1;
const TaskType ManageState = 2;

extern void TASKNAME( ReadButtons )( void );
extern void TASKNAME( ReadColour )( void );
extern void TASKNAME( ManageState )( void );

static __STK_UNIT _stack_ReadButtons[__TCOUNT_STK_UNIT(512)];
static __STK_UNIT _stack_ReadColour[__TCOUNT_STK_UNIT(512)];
static __STK_UNIT _stack_ManageState[__TCOUNT_STK_UNIT(512)];

const Priority tinib_inipri[TNUM_TASK] = { TPRI_MINTASK + 4, TPRI_MINTASK + 2, TPRI_MINTASK + 5, };
const Priority tinib_exepri[TNUM_TASK] = { TPRI_MINTASK + 4, TPRI_MINTASK + 2, TPRI_MINTASK + 5, };
const UINT8 tinib_maxact[TNUM_TASK] = { (1) - 1, (1) - 1, (1) - 1, };
const AppModeType tinib_autoact[TNUM_TASK] = { 0x00000001, 0x00000000, 0x00000000, };
const FP tinib_task[TNUM_TASK] = { TASKNAME( ReadButtons ), TASKNAME( ReadColour ), TASKNAME( ManageState ), };
const __STK_UNIT tinib_stk[TNUM_TASK] = { (__STK_UNIT)_stack_ReadButtons, (__STK_UNIT)_stack_ReadColour, (__STK_UNIT)_stack_ManageState, };
const UINT16 tinib_stksz[TNUM_TASK] = { 512, 512, 512, };

TaskType tcb_next[TNUM_TASK];
UINT8 tcb_tstat[TNUM_TASK];
Priority tcb_curpri[TNUM_TASK];
UINT8 tcb_actcnt[TNUM_TASK];
EventMaskType tcb_curevt[TNUM_EXTTASK+1];
EventMaskType tcb_waievt[TNUM_EXTTASK+1];
ResourceType tcb_lastres[TNUM_TASK];
DEFINE_CTXB(TNUM_TASK);

 /****** Object COUNTER ******/

const CounterType SysTimerCnt = 0;
Exemple #7
0
extern void TASKNAME( Input )( void );
extern void TASKNAME( InitHook )( void );

static __STK_UNIT _stack_Display_Task[__TCOUNT_STK_UNIT(512)];
static __STK_UNIT _stack_TASK_BT_INTERFACE_READER[__TCOUNT_STK_UNIT(512)];
static __STK_UNIT _stack_TASK_BT_INTERFACE_WRITER[__TCOUNT_STK_UNIT(512)];
static __STK_UNIT _stack_BT_IMPLIZIT_SLAVE[__TCOUNT_STK_UNIT(512)];
static __STK_UNIT _stack_BT_IMPLIZIT_SLAVE2[__TCOUNT_STK_UNIT(512)];
static __STK_UNIT _stack_Input[__TCOUNT_STK_UNIT(512)];
static __STK_UNIT _stack_InitHook[__TCOUNT_STK_UNIT(512)];

const Priority tinib_inipri[TNUM_TASK] = { TPRI_MINTASK + 1, TPRI_MINTASK + 7, TPRI_MINTASK + 7, TPRI_MINTASK + 9, TPRI_MINTASK + 7, TPRI_MINTASK + 3, TPRI_MINTASK + 10, };
const Priority tinib_exepri[TNUM_TASK] = { TPRI_MINTASK + 1, TPRI_MINTASK + 7, TPRI_MINTASK + 7, TPRI_MINTASK + 9, TPRI_MINTASK + 7, TPRI_MINTASK + 3, TPRI_MINTASK + 10, };
const UINT8 tinib_maxact[TNUM_TASK] = { (1) - 1, (1) - 1, (1) - 1, (1) - 1, (1) - 1, (1) - 1, (1) - 1, };
const AppModeType tinib_autoact[TNUM_TASK] = { 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000000, 0x00000001, };
const FP tinib_task[TNUM_TASK] = { TASKNAME( Display_Task ), TASKNAME( TASK_BT_INTERFACE_READER ), TASKNAME( TASK_BT_INTERFACE_WRITER ), TASKNAME( BT_IMPLIZIT_SLAVE ), TASKNAME( BT_IMPLIZIT_SLAVE2 ), TASKNAME( Input ), TASKNAME( InitHook ), };
const __STK_UNIT tinib_stk[TNUM_TASK] = { (__STK_UNIT)_stack_Display_Task, (__STK_UNIT)_stack_TASK_BT_INTERFACE_READER, (__STK_UNIT)_stack_TASK_BT_INTERFACE_WRITER, (__STK_UNIT)_stack_BT_IMPLIZIT_SLAVE, (__STK_UNIT)_stack_BT_IMPLIZIT_SLAVE2, (__STK_UNIT)_stack_Input, (__STK_UNIT)_stack_InitHook, };
const UINT16 tinib_stksz[TNUM_TASK] = { 512, 512, 512, 512, 512, 512, 512, };

TaskType tcb_next[TNUM_TASK];
UINT8 tcb_tstat[TNUM_TASK];
Priority tcb_curpri[TNUM_TASK];
UINT8 tcb_actcnt[TNUM_TASK];
EventMaskType tcb_curevt[TNUM_EXTTASK];
EventMaskType tcb_waievt[TNUM_EXTTASK];
ResourceType tcb_lastres[TNUM_TASK];
DEFINE_CTXB(TNUM_TASK);

 /****** Object COUNTER ******/

const CounterType C_Input_Alarm = 0;
Exemple #8
0
 /****** Object OS ******/

 /****** Object TASK ******/

const TaskType OSEK_Task_Background = 0;

extern void TASKNAME( OSEK_Task_Background )( void );

static __STK_UNIT _stack_OSEK_Task_Background[__TCOUNT_STK_UNIT(512)];

const Priority tinib_inipri[TNUM_TASK] = { TPRI_MINTASK + 1, };
const Priority tinib_exepri[TNUM_TASK] = { TPRI_MINTASK + 1, };
const UINT8 tinib_maxact[TNUM_TASK] = { (1) - 1, };
const AppModeType tinib_autoact[TNUM_TASK] = { 0x00000001, };
const FP tinib_task[TNUM_TASK] = { TASKNAME( OSEK_Task_Background ), };
const __STK_UNIT tinib_stk[TNUM_TASK] = { (__STK_UNIT)_stack_OSEK_Task_Background, };
const UINT16 tinib_stksz[TNUM_TASK] = { 512, };

TaskType tcb_next[TNUM_TASK];
UINT8 tcb_tstat[TNUM_TASK];
Priority tcb_curpri[TNUM_TASK];
UINT8 tcb_actcnt[TNUM_TASK];
EventMaskType tcb_curevt[TNUM_EXTTASK+1];
EventMaskType tcb_waievt[TNUM_EXTTASK+1];
ResourceType tcb_lastres[TNUM_TASK];
DEFINE_CTXB(TNUM_TASK);

 /****** Object COUNTER ******/

Exemple #9
0
const TaskType BALANCE_CONTROL = 1;
const TaskType SONAR_CONTROL = 2;

extern void TASKNAME( RUNNING_CONTROL )( void );
extern void TASKNAME( BALANCE_CONTROL )( void );
extern void TASKNAME( SONAR_CONTROL )( void );

static __STK_UNIT _stack_RUNNING_CONTROL[__TCOUNT_STK_UNIT(2560)];
static __STK_UNIT _stack_BALANCE_CONTROL[__TCOUNT_STK_UNIT(1024)];
static __STK_UNIT _stack_SONAR_CONTROL[__TCOUNT_STK_UNIT(512)];

const Priority tinib_inipri[TNUM_TASK] = { TPRI_MINTASK + 14, TPRI_MINTASK + 15, TPRI_MINTASK + 13, };
const Priority tinib_exepri[TNUM_TASK] = { TPRI_MINTASK + 14, TPRI_MINTASK + 15, TPRI_MINTASK + 13, };
const UINT8 tinib_maxact[TNUM_TASK] = { (1) - 1, (1) - 1, (1) - 1, };
const AppModeType tinib_autoact[TNUM_TASK] = { 0x00000001, 0x00000001, 0x00000001, };
const FP tinib_task[TNUM_TASK] = { TASKNAME( RUNNING_CONTROL ), TASKNAME( BALANCE_CONTROL ), TASKNAME( SONAR_CONTROL ), };
const __STK_UNIT tinib_stk[TNUM_TASK] = { (__STK_UNIT)_stack_RUNNING_CONTROL, (__STK_UNIT)_stack_BALANCE_CONTROL, (__STK_UNIT)_stack_SONAR_CONTROL, };
const UINT16 tinib_stksz[TNUM_TASK] = { 2560, 1024, 512, };

TaskType tcb_next[TNUM_TASK];
UINT8 tcb_tstat[TNUM_TASK];
Priority tcb_curpri[TNUM_TASK];
UINT8 tcb_actcnt[TNUM_TASK];
EventMaskType tcb_curevt[TNUM_EXTTASK];
EventMaskType tcb_waievt[TNUM_EXTTASK];
ResourceType tcb_lastres[TNUM_TASK];
DEFINE_CTXB(TNUM_TASK);

 /****** Object COUNTER ******/

const CounterType Cnt = 0;