source: ssp_qb_r5f100le_cs/trunk/syssvc/logtask.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.6 KB
RevLine 
[93]1/*
2 * TOPPERS/SSP Kernel
3 * Smallest Set Profile Kernel
4 *
5 * Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
6 * Toyohashi Univ. of Technology, JAPAN
7 * Copyright (C) 2004-2008 by Embedded and Real-Time Systems Laboratory
8 * Graduate School of Information Science, Nagoya Univ., JAPAN
9 *
10 * ã‹L’˜ìŒ ŽÒ‚́CˆÈ‰º‚Ì(1)`(4)‚ÌðŒ‚ð–ž‚½‚·ê‡‚ÉŒÀ‚èC–{ƒ\ƒtƒgƒEƒF
11 * ƒAi–{ƒ\ƒtƒgƒEƒFƒA‚ð‰ü•Ï‚µ‚½‚à‚Ì‚ðŠÜ‚ށDˆÈ‰º“¯‚¶j‚ðŽg—pE•¡»E‰ü
12 * •ÏEÄ”z•ziˆÈ‰ºC—˜—p‚ƌĂԁj‚·‚邱‚Ƃ𖳏ž‚Å‹–‘ø‚·‚éD
13 * (1) –{ƒ\ƒtƒgƒEƒFƒA‚ðƒ\[ƒXƒR[ƒh‚ÌŒ`‚Å—˜—p‚·‚éê‡‚ɂ́Cã‹L‚Ì’˜ì
14 * Œ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L‚Ì–³•ÛØ‹K’肪C‚»‚Ì‚Ü‚Ü‚ÌŒ`‚Ń\[
15 * ƒXƒR[ƒh’†‚ÉŠÜ‚Ü‚ê‚Ä‚¢‚邱‚ƁD
16 * (2) –{ƒ\ƒtƒgƒEƒFƒA‚ðCƒ‰ƒCƒuƒ‰ƒŠŒ`Ž®‚ȂǁC‘¼‚̃\ƒtƒgƒEƒFƒAŠJ”­‚ÉŽg
17 * —p‚Å‚«‚éŒ`‚ōĔz•z‚·‚éê‡‚ɂ́CÄ”z•z‚É”º‚¤ƒhƒLƒ…
18ƒƒ“ƒgi—˜—p
19 * ŽÒƒ}ƒjƒ…
20ƒAƒ‹‚Ȃǁj‚ɁCã‹L‚Ì’˜ìŒ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L
21 * ‚Ì–³•ÛØ‹K’è‚ðŒfÚ‚·‚邱‚ƁD
22 * (3) –{ƒ\ƒtƒgƒEƒFƒA‚ðC‹@Ší‚É‘g‚ݍž‚ނȂǁC‘¼‚̃\ƒtƒgƒEƒFƒAŠJ”­‚ÉŽg
23 * —p‚Å‚«‚È‚¢Œ`‚ōĔz•z‚·‚éê‡‚ɂ́CŽŸ‚Ì‚¢‚¸‚ê‚©‚ÌðŒ‚ð–ž‚½‚·‚±
24 * ‚ƁD
25 * (a) Ä”z•z‚É”º‚¤ƒhƒLƒ…
26ƒƒ“ƒgi—˜—pŽÒƒ}ƒjƒ…
27ƒAƒ‹‚Ȃǁj‚ɁCã‹L‚Ì’˜
28 * ìŒ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L‚Ì–³•ÛØ‹K’è‚ðŒfÚ‚·‚邱‚ƁD
29 * (b) Ä”z•z‚ÌŒ`‘Ô‚ðC•Ê‚É’è‚ß‚é•û–@‚É‚æ‚Á‚āCTOPPERSƒvƒƒWƒFƒNƒg‚É
30 * •ñ‚·‚邱‚ƁD
31 * (4) –{ƒ\ƒtƒgƒEƒFƒA‚Ì—˜—p‚É‚æ‚è’¼Ú“I‚Ü‚½‚͊ԐړI‚ɐ¶‚¶‚é‚¢‚©‚Ȃ鑹
32 * ŠQ‚©‚ç‚àCã‹L’˜ìŒ ŽÒ‚¨‚æ‚ÑTOPPERSƒvƒƒWƒFƒNƒg‚ð–Ɛӂ·‚邱‚ƁD
33 * ‚Ü‚½C–{ƒ\ƒtƒgƒEƒFƒA‚̃†[ƒU‚Ü‚½‚̓Gƒ“ƒhƒ†[ƒU‚©‚ç‚Ì‚¢‚©‚Ȃ闝
34 * —R‚ÉŠî‚­¿‹‚©‚ç‚àCã‹L’˜ìŒ ŽÒ‚¨‚æ‚ÑTOPPERSƒvƒƒWƒFƒNƒg‚ð
35 * –Ɛӂ·‚邱‚ƁD
36 *
37 * –{ƒ\ƒtƒgƒEƒFƒA‚́C–³•ÛØ‚Å’ñ‹Ÿ‚³‚ê‚Ä‚¢‚é‚à‚Ì‚Å‚ ‚éDã‹L’˜ìŒ ŽÒ‚¨
38 * ‚æ‚ÑTOPPERSƒvƒƒWƒFƒNƒg‚́C–{ƒ\ƒtƒgƒEƒFƒA‚ÉŠÖ‚µ‚āC“Á’è‚ÌŽg—p–Ú“I
39 * ‚ɑ΂·‚é“K‡«‚àŠÜ‚߂āC‚¢‚©‚È‚é•ÛØ‚às‚í‚È‚¢D‚Ü‚½C–{ƒ\ƒtƒgƒEƒF
40 * ƒA‚Ì—˜—p‚É‚æ‚è’¼Ú“I‚Ü‚½‚͊ԐړI‚ɐ¶‚¶‚½‚¢‚©‚Ȃ鑹ŠQ‚ÉŠÖ‚µ‚Ä‚àC‚»
41 * ‚̐ӔC‚𕉂í‚È‚¢D
42 *
43 * @(#) $Id: logtask.h 774 2008-03-08 06:35:57Z hiro $
44 */
45
46/*
47 * ƒVƒXƒeƒ€ƒƒOƒ^ƒXƒN
48 */
49
50#ifndef TOPPERS_LOGTASK_H
51#define TOPPERS_LOGTASK_H
52
53#ifdef __cplusplus
54extern "C" {
55#endif
56
57#include "target_syssvc.h"
58
59/*
60 * ƒVƒXƒeƒ€ƒƒOƒ^ƒXƒNŠÖ˜A‚̒萔‚̃fƒtƒHƒ‹ƒg’l‚Ì’è‹`
61 */
62#ifndef LOGTASK_PRIORITY
63#define LOGTASK_PRIORITY 3 /* ‰Šú—Dæ“x */
64#endif /* LOGTASK_PRIORITY */
65
66#ifndef LOGTASK_STACK_SIZE
67#define LOGTASK_STACK_SIZE 256 /* ƒXƒ^ƒbƒN—̈æ‚̃TƒCƒY */
68#endif /* LOGTASK_STACK_SIZE */
69
70#ifndef LOGTASK_PORTID
71#define LOGTASK_PORTID 1 /* ƒVƒXƒeƒ€ƒƒO—p‚̃VƒŠƒAƒ‹ƒ|[ƒg”ԍ† */
72#endif /* LOGTASK_PORTID */
73
74#ifndef LOGTASK_INTERVAL
75#define LOGTASK_INTERVAL 10U /* ƒVƒXƒeƒ€ƒƒOƒ^ƒXƒN‚Ì“®ìŠÔŠuiƒ~ƒŠ•bj*/
76#endif /* LOGTASK_INTERVAL */
77
78#ifndef LOGTASK_FLUSH_WAIT
79#define LOGTASK_FLUSH_WAIT 1U /* ƒtƒ‰ƒbƒVƒ…
80‘Ò‚¿‚Ì’PˆÊŽžŠÔiƒ~ƒŠ•bj*/
81#endif /* LOGTASK_FLUSH_WAIT */
82
83/*
84 * ƒVƒXƒeƒ€ƒƒOo—Í‚Ì‘Ò‚¿‡‚킹
85 *
86 * ƒƒOƒoƒbƒtƒ@’†‚̃ƒO‚̐”‚ªcountˆÈ‰º‚É‚È‚é‚܂ő҂Dcount‚ª0‚̏ꍇ‚É
87 * ‚́CƒVƒŠƒAƒ‹ƒoƒbƒtƒ@‚ª‹ó‚É‚È‚é‚Ì‚à‘҂D
88 */
89extern ER logtask_flush(uint_t count) throw();
90
91/*
92 * ƒVƒXƒeƒ€ƒƒOƒ^ƒXƒN‚̏‰Šú‰»ˆ—
93 */
94extern void logtask_initialize(ID log_portid) throw();
95
96/*
97 * ƒVƒXƒeƒ€ƒƒOƒ^ƒXƒN‚Ì–{‘Ì
98 */
99extern void logtask_main(intptr_t exinf) throw();
100
101/*
102 * ƒVƒXƒeƒ€ƒƒOƒ^ƒXƒN‚ð‹N“®‚·‚éŽüŠúƒnƒ“ƒhƒ‰
103 */
104extern void cychdr_act_logtsk(intptr_t exinf) throw();
105
106/*
107 * ƒVƒXƒeƒ€ƒƒOƒ^ƒXƒN‚̏I—¹ˆ—
108 */
109extern void logtask_terminate(intptr_t exinf) throw();
110
111#ifdef __cplusplus
112}
113#endif
114
115#endif /* TOPPERS_LOGTASK_H */
Note: See TracBrowser for help on using the repository browser.