/** 
 *  Sample program for Hyper Operating System V4 Advance
 *
 * @file  system.cfg
 * @brief %jp{サンプルのコンフィギュレーション}
 *
 * Copyright (C) 1998-2006 by Project HOS
 * http://sourceforge.jp/projects/hos/
 */


/* %jp{カーネル独自の設定}%en{kernel} */
KERNEL_HEP_MEM(4096, NULL);
KERNEL_INT_STK(1024, NULL);
KERNEL_TIM_TIC(10, 1);
KERNEL_MAX_TSKID(8);
KERNEL_MAX_SEMID(8);
KERNEL_MAX_MBXID(8);
KERNEL_MAX_MPFID(8);
KERNEL_MAX_CYCID(8);


/* %jp{OSタイマの設定}%en{OS timer} */
INCLUDE("\"ostimer.h\"");
ATT_INI({TA_HLNG, 0, OsTimer_Initialize});

/* %jp{サンプル}%en{Sample program} */
INCLUDE("\"sample.h\"");
ATT_INI({TA_HLNG, 0, Sample_Initialize});
CRE_TSK(TSKID_PRINT,   {TA_HLNG, 1, Sample_Print, 1, 1024, NULL});
CRE_TSK(TSKID_SAMPLE1, {TA_HLNG, 1, Sample_Task, 2, 1024, NULL});
CRE_TSK(TSKID_SAMPLE2, {TA_HLNG, 2, Sample_Task, 2, 1024, NULL});
CRE_TSK(TSKID_SAMPLE3, {TA_HLNG, 3, Sample_Task, 2, 1024, NULL});
CRE_TSK(TSKID_SAMPLE4, {TA_HLNG, 4, Sample_Task, 2, 1024, NULL});
CRE_TSK(TSKID_SAMPLE5, {TA_HLNG, 5, Sample_Task, 2, 1024, NULL});
CRE_SEM(1, {TA_TFIFO, 1, 1});
CRE_SEM(2, {TA_TFIFO, 1, 1});
CRE_SEM(3, {TA_TFIFO, 1, 1});
CRE_SEM(4, {TA_TFIFO, 1, 1});
CRE_SEM(5, {TA_TFIFO, 1, 1});


/* end of file */
