1 | /*
|
---|
2 | * TOPPERS/ASP Kernel
|
---|
3 | * Toyohashi Open Platform for Embedded Real-Time Systems/
|
---|
4 | * Advanced Standard Profile Kernel
|
---|
5 | *
|
---|
6 | * Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
|
---|
7 | * Toyohashi Univ. of Technology, JAPAN
|
---|
8 | * Copyright (C) 2004-2010 by Embedded and Real-Time Systems Laboratory
|
---|
9 | * Graduate School of Information Science, Nagoya Univ., JAPAN
|
---|
10 | *
|
---|
11 | * ãLì ÒÍCȺÌ(1)`(4)Ìðð½·êÉÀèC{\tgEF
|
---|
12 | * Ai{\tgEFAðüϵ½àÌðÜÞDȺ¯¶jðgpE¡»Eü
|
---|
13 | * ÏEÄzziȺCpÆÄÔj·é±Æð³Åø·éD
|
---|
14 | * (1) {\tgEFAð\[XR[hÌ`Åp·éêÉÍCãLÌì
|
---|
15 | * \¦C±Ìpð¨æѺL̳ÛØKèªC»ÌÜÜÌ`Å\[
|
---|
16 | * XR[hÉÜÜêÄ¢é±ÆD
|
---|
17 | * (2) {\tgEFAðCCu`®ÈÇC¼Ì\tgEFAJÉg
|
---|
18 | * pÅ«é`ÅÄzz·éêÉÍCÄzzɺ¤hL
|
---|
19 | gip
|
---|
20 | * Ò}j
|
---|
21 | AÈÇjÉCãLÌì \¦C±Ìpð¨æѺL
|
---|
22 | * ̳ÛØKèðfÚ·é±ÆD
|
---|
23 | * (3) {\tgEFAðC@íÉgÝÞÈÇC¼Ì\tgEFAJÉg
|
---|
24 | * pÅ«È¢`ÅÄzz·éêÉÍCÌ¢¸ê©Ìðð½·±
|
---|
25 | * ÆD
|
---|
26 | * (a) Äzzɺ¤hL
|
---|
27 | gipÒ}j
|
---|
28 | AÈÇjÉCãLÌ
|
---|
29 | * ì \¦C±Ìpð¨æѺL̳ÛØKèðfÚ·é±ÆD
|
---|
30 | * (b) ÄzzÌ`ÔðCÊÉèßéû@ÉæÁÄCTOPPERSvWFNgÉ
|
---|
31 | * ñ·é±ÆD
|
---|
32 | * (4) {\tgEFAÌpÉæè¼ÚIܽÍÔÚIɶ¶é¢©Èé¹
|
---|
33 | * Q©çàCãLì Ò¨æÑTOPPERSvWFNgðÆÓ·é±ÆD
|
---|
34 | * ܽC{\tgEFAÌ[UܽÍGh[U©çÌ¢©Èé
|
---|
35 | * RÉîÿ©çàCãLì Ò¨æÑTOPPERSvWFNgð
|
---|
36 | * ÆÓ·é±ÆD
|
---|
37 | *
|
---|
38 | * {\tgEFAÍC³ÛØÅñ³êÄ¢éàÌÅ éDãLì Ò¨
|
---|
39 | * æÑTOPPERSvWFNgÍC{\tgEFAÉÖµÄCÁèÌgpÚI
|
---|
40 | * ÉηéK«àÜßÄC¢©ÈéÛØàsíÈ¢DܽC{\tgEF
|
---|
41 | * AÌpÉæè¼ÚIܽÍÔÚIɶ¶½¢©Èé¹QÉÖµÄàC»
|
---|
42 | * ÌÓCðíÈ¢D
|
---|
43 | *
|
---|
44 | * @(#) $Id: sample1.h 1717 2010-01-31 11:41:03Z ertl-hiro $
|
---|
45 | */
|
---|
46 |
|
---|
47 | /*
|
---|
48 | * TvvO(1)Ìwb_t@C
|
---|
49 | */
|
---|
50 |
|
---|
51 | /*
|
---|
52 | * ^[Qbg˶Ìè`
|
---|
53 | */
|
---|
54 | #include "target_test.h"
|
---|
55 |
|
---|
56 | /*
|
---|
57 | * e^XNÌDæxÌè`
|
---|
58 | */
|
---|
59 |
|
---|
60 | #define MAIN_PRIORITY 5 /* C^XNÌDæx */
|
---|
61 | /* HIGH_PRIORITYæè·é±Æ */
|
---|
62 |
|
---|
63 | #define HIGH_PRIORITY 9 /* ÀñÉÀs³êé^XNÌDæx */
|
---|
64 | #define MID_PRIORITY 10
|
---|
65 | #define LOW_PRIORITY 11
|
---|
66 |
|
---|
67 | /*
|
---|
68 | * ^[QbgÉ˶·éÂ\«Ì éèÌè`
|
---|
69 | */
|
---|
70 |
|
---|
71 | #ifndef TASK_PORTID
|
---|
72 | #define TASK_PORTID 1 /* ¶üÍ·éVA|[gID */
|
---|
73 | #endif /* TASK_PORTID */
|
---|
74 |
|
---|
75 | #ifndef STACK_SIZE
|
---|
76 | #define STACK_SIZE 4096 /* ^XNÌX^bNTCY */
|
---|
77 | #endif /* STACK_SIZE */
|
---|
78 |
|
---|
79 | #ifndef LOOP_REF
|
---|
80 | #define LOOP_REF ULONG_C(1000000) /* ¬xvªpÌ[vñ */
|
---|
81 | #endif /* LOOP_REF */
|
---|
82 |
|
---|
83 | /*
|
---|
84 | * ÖÌvg^Cvé¾
|
---|
85 | */
|
---|
86 | #ifndef TOPPERS_MACRO_ONLY
|
---|
87 |
|
---|
88 | extern void task(intptr_t exinf);
|
---|
89 | extern void main_task(intptr_t exinf);
|
---|
90 | extern void tex_routine(TEXPTN texptn, intptr_t exinf);
|
---|
91 | #ifdef CPUEXC1
|
---|
92 | extern void cpuexc_handler(void *p_excinf);
|
---|
93 | #endif /* CPUEXC1 */
|
---|
94 | extern void cyclic_handler(intptr_t exinf);
|
---|
95 | extern void alarm_handler(intptr_t exinf);
|
---|
96 | #ifdef TOPPERS_SUPPORT_OVRHDR
|
---|
97 | extern void overrun_handler(ID tskid, intptr_t exinf);
|
---|
98 | #endif /* TOPPERS_SUPPORT_OVRHDR */
|
---|
99 |
|
---|
100 | #endif /* TOPPERS_MACRO_ONLY */
|
---|