source: ssp_qb_r5f100le_cs/trunk/target/qb_r5f100le_cs/ssp_rl78/sample1/src/sample1.h@ 93

Last change on this file since 93 was 93, checked in by nmir-saito, 8 years ago

add Combined package of SSP kernel for QB-R5F100LE-TB(RL78 processor)

File size: 3.4 KB
RevLine 
[93]1/*
2 * TOPPERS/SSP Kernel
3 * Smallest Set Profile Kernel
4 *
5 * Copyright (C) 2010-2012 by Meika Sugimoto
6 * Copyright (C) 2014 by Naoki Saito
7 * Nagoya Municipal Industrial Research Institute, JAPAN
8 *
9 * ã‹L’˜ìŒ ŽÒ‚́CˆÈ‰º‚Ì (1)`(4) ‚ÌðŒ‚ð–ž‚½‚·ê‡‚ÉŒÀ‚èC–{ƒ\ƒtƒgƒEƒF
10 * ƒAi–{ƒ\ƒtƒgƒEƒFƒA‚ð‰ü•Ï‚µ‚½‚à‚Ì‚ðŠÜ‚ށDˆÈ‰º“¯‚¶j‚ðŽg—pE•¡»E‰ü•ÏE
11 * Ä”z•ziˆÈ‰ºC—˜—p‚ƌĂԁj‚·‚邱‚Ƃ𖳏ž‚Å‹–‘ø‚·‚éD
12 * (1) –{ƒ\ƒtƒgƒEƒFƒA‚ðƒ\[ƒXƒR[ƒh‚ÌŒ`‚Å—˜—p‚·‚éê‡‚ɂ́Cã‹L‚Ì’˜ìŒ 
13 * •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L‚Ì–³•ÛØ‹K’肪C‚»‚Ì‚Ü‚Ü‚ÌŒ`‚Ń\[ƒX
14 * ƒR[ƒh’†‚ÉŠÜ‚Ü‚ê‚Ä‚¢‚邱‚ƁD
15 * (2) –{ƒ\ƒtƒgƒEƒFƒA‚ðCƒ‰ƒCƒuƒ‰ƒŠŒ`Ž®‚ȂǁC‘¼‚̃\ƒtƒgƒEƒFƒAŠJ”­‚ÉŽg—p
16 * ‚Å‚«‚éŒ`‚ōĔz•z‚·‚éê‡‚ɂ́CÄ”z•z‚É”º‚¤ƒhƒLƒ…
17ƒƒ“ƒgi—˜—pŽÒƒ}
18 * ƒjƒ…
19ƒAƒ‹‚Ȃǁj‚ɁCã‹L‚Ì’˜ìŒ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L‚Ì–³•Û
20 * Ø‹K’è‚ðŒfÚ‚·‚邱‚ƁD
21 * (3) –{ƒ\ƒtƒgƒEƒFƒA‚ðC‹@Ší‚É‘g‚ݍž‚ނȂǁC‘¼‚̃\ƒtƒgƒEƒFƒAŠJ”­‚ÉŽg—p
22 * ‚Å‚«‚È‚¢Œ`‚ōĔz•z‚·‚éê‡‚ɂ́CŽŸ‚Ì‚¢‚¸‚ê‚©‚ÌðŒ‚ð–ž‚½‚·‚±‚ƁD
23 * (a) Ä”z•z‚É”º‚¤ƒhƒLƒ…
24ƒƒ“ƒgi—˜—pŽÒƒ}ƒjƒ…
25ƒAƒ‹‚Ȃǁj‚ɁCã‹L‚Ì’˜ì
26 * Œ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L‚Ì–³•ÛØ‹K’è‚ðŒfÚ‚·‚邱‚ƁD
27 * (b) Ä”z•z‚ÌŒ`‘Ô‚ðC•Ê‚É’è‚ß‚é•û–@‚É‚æ‚Á‚āCTOPPERSƒvƒƒWƒFƒNƒg‚É•ñ
28 * ‚·‚邱‚ƁD
29 * (4) –{ƒ\ƒtƒgƒEƒFƒA‚Ì—˜—p‚É‚æ‚è’¼Ú“I‚Ü‚½‚͊ԐړI‚ɐ¶‚¶‚é‚¢‚©‚Ȃ鑹ŠQ
30 * ‚©‚ç‚àCã‹L’˜ìŒ ŽÒ‚¨‚æ‚ÑTOPPERSƒvƒƒWƒFƒNƒg‚ð–Ɛӂ·‚邱‚ƁD‚Ü‚½C
31 * –{ƒ\ƒtƒgƒEƒFƒA‚̃†[ƒU‚Ü‚½‚̓Gƒ“ƒhƒ†[ƒU‚©‚ç‚Ì‚¢‚©‚Ȃ闝—R‚ÉŠî‚Ã
32 * ‚­¿‹‚©‚ç‚àCã‹L’˜ìŒ ŽÒ‚¨‚æ‚ÑTOPPERSƒvƒƒWƒFƒNƒg‚ð–Ɛӂ·‚邱‚ƁD
33 *
34 * –{ƒ\ƒtƒgƒEƒFƒA‚́C–³•ÛØ‚Å’ñ‹Ÿ‚³‚ê‚Ä‚¢‚é‚à‚Ì‚Å‚ ‚éDã‹L’˜ìŒ ŽÒ‚¨‚æ
35 * ‚ÑTOPPERSƒvƒƒWƒFƒNƒg‚́C–{ƒ\ƒtƒgƒEƒFƒA‚ÉŠÖ‚µ‚āC“Á’è‚ÌŽg—p–Ú“I‚ɑ΂·
36 * ‚é“K‡«‚àŠÜ‚߂āC‚¢‚©‚È‚é•ÛØ‚às‚í‚È‚¢D‚Ü‚½C–{ƒ\ƒtƒgƒEƒFƒA‚Ì—˜—p
37 * ‚É‚æ‚è’¼Ú“I‚Ü‚½‚͊ԐړI‚ɐ¶‚¶‚½‚¢‚©‚Ȃ鑹ŠQ‚ÉŠÖ‚µ‚Ä‚àC‚»‚̐ӔC‚ð•‰
38 * ‚í‚È‚¢D
39 *
40 */
41
42#ifndef TOPPERS_SAMPLE1_H
43#define TOPPERS_SAMPLE1_H
44
45/*
46 * ƒ^[ƒQƒbƒgˆË‘¶‚Ì’è‹`
47 */
48#include "target_test.h"
49
50#if TMAX_TPRI == 16
51
52#define INIT_PRIORITY (1)
53#define ERRORTSK_PRIORITY (6)
54#define MAIN_PRIORITY (7)
55#define TASK1_PRIORITY (8)
56#define TASK2_PRIORITY (9)
57#define TASK3_PRIORITY (10)
58#define TASK3_EXEPRIORITY (9)
59
60#else
61
62/* TMAX_TPRI == 8 */
63#define INIT_PRIORITY (1)
64#define ERRORTSK_PRIORITY (2)
65#define MAIN_PRIORITY (3)
66#define TASK1_PRIORITY (4)
67#define TASK2_PRIORITY (5)
68#define TASK3_PRIORITY (6)
69#define TASK3_EXEPRIORITY (5)
70
71#endif /* TMAX_TPRI == 16 */
72
73#ifndef ALL_STACKSIZE
74#define ALL_STACKSIZE (2048)
75#endif /* ITSK_STACKSIZE */
76
77#ifndef INTERRUPT_STACKSIZE
78#define INTERRUPT_STACKSIZE (1024)
79#endif /* INTERRUPT_STACKSIZE */
80
81
82#ifndef TASK_PORTID
83#define TASK_PORTID 1 /* •¶Žš“ü—Í‚·‚éƒVƒŠƒAƒ‹ƒ|[ƒgID */
84#endif /* TASK_PORTID */
85
86#ifndef LOOP_REF
87#define LOOP_REF ULONG_C(1000000) /* ‘¬“xŒv‘ª—p‚̃‹[ƒv‰ñ” */
88#endif /* LOOP_REF */
89
90#ifndef STACK_SIZE
91#define STACK_SIZE (256)
92#endif /* STACK_SIZE */
93
94#ifndef TOPPERS_MACRO_ONLY
95
96extern void init_task(intptr_t exinf);
97extern void main_task(intptr_t exinf);
98extern void task(intptr_t exinf);
99
100extern void main_task_cychdr(intptr_t exinf);
101extern void cyclic_handler(intptr_t exinf);
102extern void alarm_handler(intptr_t exinf);
103extern void interrupt_service_routine(intptr_t exinf);
104#ifdef CPUEXC1
105extern void exc_handler(void *p_excinf);
106#endif /* CPUEXC1 */
107
108#endif /* TOPPERS_MACRO_ONLY */
109#endif /* TOPPERS_SAMPLE1_H */
110
Note: See TracBrowser for help on using the repository browser.