1 | /*
|
---|
2 | * ãã¼ã¿ãã¥ã¼æ©è½ã®ãã¹ã(1)ã®ããããã¡ã¤ã«
|
---|
3 | *
|
---|
4 | * $Id: test_dtq1.h 737 2016-04-05 13:11:23Z ertl-hiro $
|
---|
5 | */
|
---|
6 |
|
---|
7 | #include <kernel.h>
|
---|
8 |
|
---|
9 | /*
|
---|
10 | * ã¿ã¼ã²ããä¾åã®å®ç¾©
|
---|
11 | */
|
---|
12 | #include "target_test.h"
|
---|
13 |
|
---|
14 | /*
|
---|
15 | * åªå
|
---|
16 | 度ã®å®ç¾©
|
---|
17 | */
|
---|
18 | #define HIGH_PRIORITY 9 /* é«åªå
|
---|
19 | 度 */
|
---|
20 | #define MID_PRIORITY 10 /* ä¸åªå
|
---|
21 | 度 */
|
---|
22 | #define LOW_PRIORITY 11 /* ä½åªå
|
---|
23 | 度 */
|
---|
24 |
|
---|
25 | /*
|
---|
26 | * ã¿ã¼ã²ããã«ä¾åããå¯è½æ§ã®ããå®æ°ã®å®ç¾©
|
---|
27 | */
|
---|
28 | #ifndef STACK_SIZE
|
---|
29 | #define STACK_SIZE 4096 /* ã¿ã¹ã¯ã®ã¹ã¿ãã¯ãµã¤ãº */
|
---|
30 | #endif /* STACK_SIZE */
|
---|
31 |
|
---|
32 | #ifndef TEST_TIME_CP
|
---|
33 | #define TEST_TIME_CP 50000U /* ãã§ãã¯ãã¤ã³ãå°éæ
|
---|
34 | å ±ã®åºåæé */
|
---|
35 | #endif /* TEST_TIME_CP */
|
---|
36 |
|
---|
37 | #ifndef TEST_TIME_PROC
|
---|
38 | #define TEST_TIME_PROC 1000U /* ãã§ãã¯ãã¤ã³ããéããªãå ´åã®æé */
|
---|
39 | #endif /* TEST_TIME_PROC */
|
---|
40 |
|
---|
41 | /*
|
---|
42 | * éåä¿¡ãããã¼ã¿ã®å®ç¾©
|
---|
43 | */
|
---|
44 | #define DATA0 ((intptr_t) 0)
|
---|
45 | #define DATA1 ((intptr_t) 1)
|
---|
46 | #define DATA2 ((intptr_t) 2)
|
---|
47 | #define DATA3 ((intptr_t) 3)
|
---|
48 | #define DATA4 ((intptr_t) 4)
|
---|
49 | #define DATA5 ((intptr_t) 5)
|
---|
50 |
|
---|
51 | /*
|
---|
52 | * é¢æ°ã®ãããã¿ã¤ã宣è¨
|
---|
53 | */
|
---|
54 | #ifndef TOPPERS_MACRO_ONLY
|
---|
55 |
|
---|
56 | extern void task1(intptr_t exinf);
|
---|
57 | extern void task2(intptr_t exinf);
|
---|
58 | extern void task3(intptr_t exinf);
|
---|
59 | extern void alarm1_handler(intptr_t exinf);
|
---|
60 |
|
---|
61 | #endif /* TOPPERS_MACRO_ONLY */
|
---|