-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample1.cfg
30 lines (27 loc) · 1.16 KB
/
sample1.cfg
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
/*
* サンプルプログラム(1)のシステムコンフィギュレーションファイル
*
* $Id: sample1.cfg 705 2016-03-29 14:16:41Z ertl-hiro $
*/
INCLUDE("tecsgen.cfg");
#include "sample1.h"
CRE_TSK(TASK1, { TA_NULL, 1, task1, MID_PRIORITY, STACK_SIZE, NULL });
CRE_TSK(TASK2, { TA_NULL, 2, task2, MID_PRIORITY, STACK_SIZE, NULL });
CRE_TSK(TASK3, { TA_NULL, 3, task3, MID_PRIORITY, STACK_SIZE, NULL });
CRE_TSK(MAIN_TASK, { TA_ACT, 0, main_task, MAIN_PRIORITY, STACK_SIZE, NULL });
CRE_TSK(EXC_TASK, { TA_NULL, 0, exc_task, EXC_PRIORITY, STACK_SIZE, NULL });
CRE_CYC(CYCHDR1, { TA_NULL, { TNFY_HANDLER, 0, cyclic_handler }, 2000000, 0 });
CRE_ALM(ALMHDR1, { TA_NULL, { TNFY_HANDLER, 0, alarm_handler }});
#ifdef INTNO1
CFG_INT(INTNO1, { INTNO1_INTATR, INTNO1_INTPRI });
CRE_ISR(INTNO1_ISR, { TA_NULL, 0, INTNO1, intno1_isr, 1 });
#endif /* INTNO1 */
#ifdef CPUEXC1
DEF_EXC(CPUEXC1, { TA_NULL, cpuexc_handler });
#endif /* CPUEXC1 */
// TLSFを使う
CRE_MTX(TLSF_MTX, { TA_TPRI });
//mrubyのshared memoryクラスを使うためのデータキュー
CRE_DTQ(DTQ1, { TA_NULL, 2, NULL });
CRE_DTQ(DTQ2, { TA_NULL, 2, NULL });
CRE_DTQ(DTQ3, { TA_NULL, 2, NULL });