Rev | Line | |
---|
[305] | 1 | /*
|
---|
| 2 | * ãã¼ã¿ãã¥ã¼æ©è½ã®ãã¹ã(1)ã®ããããã¡ã¤ã«
|
---|
| 3 | *
|
---|
| 4 | * $Id: test_dtq1.h 602 2016-02-07 12:22:32Z 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 | /*
|
---|
| 33 | * éåä¿¡ãããã¼ã¿ã®å®ç¾©
|
---|
| 34 | */
|
---|
| 35 | #define DATA0 ((intptr_t) 0)
|
---|
| 36 | #define DATA1 ((intptr_t) 1)
|
---|
| 37 | #define DATA2 ((intptr_t) 2)
|
---|
| 38 | #define DATA3 ((intptr_t) 3)
|
---|
| 39 | #define DATA4 ((intptr_t) 4)
|
---|
| 40 | #define DATA5 ((intptr_t) 5)
|
---|
| 41 |
|
---|
| 42 | /*
|
---|
| 43 | * é¢æ°ã®ãããã¿ã¤ã宣è¨
|
---|
| 44 | */
|
---|
| 45 | #ifndef TOPPERS_MACRO_ONLY
|
---|
| 46 |
|
---|
| 47 | extern void task1(intptr_t exinf);
|
---|
| 48 | extern void task2(intptr_t exinf);
|
---|
| 49 | extern void task3(intptr_t exinf);
|
---|
| 50 | extern void alarm1_handler(intptr_t exinf);
|
---|
| 51 |
|
---|
| 52 | #endif /* TOPPERS_MACRO_ONLY */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.