source: ssp_qb_r5f100le_cs/trunk/arch/ca78k0r/tool_stddef.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: 5.6 KB
Line 
1/*
2 * TOPPERS Software
3 * Toyohashi Open Platform for Embedded Real-Time Systems
4 *
5 * Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
6 * Toyohashi Univ. of Technology, JAPAN
7 * Copyright (C) 2004-2006 by Embedded and Real-Time Systems Laboratory
8 * Graduate School of Information Science, Nagoya Univ., JAPAN
9 * Copyright (C) 2007 by Witz Corporation, JAPAN
10 * Copyright (C) 2011,2014 by Naoki Saito
11 * Nagoya Municipal Industrial Research Institute, JAPAN
12 *
13 * ã‹L’˜ìŒ ŽÒ‚́CˆÈ‰º‚Ì(1)`(4)‚ÌðŒ‚ð–ž‚½‚·ê‡‚ÉŒÀ‚èC–{ƒ\ƒtƒgƒEƒF
14 * ƒAi–{ƒ\ƒtƒgƒEƒFƒA‚ð‰ü•Ï‚µ‚½‚à‚Ì‚ðŠÜ‚ށDˆÈ‰º“¯‚¶j‚ðŽg—pE•¡»E‰ü
15 * •ÏEÄ”z•ziˆÈ‰ºC—˜—p‚ƌĂԁj‚·‚邱‚Ƃ𖳏ž‚Å‹–‘ø‚·‚éD
16 * (1) –{ƒ\ƒtƒgƒEƒFƒA‚ðƒ\[ƒXƒR[ƒh‚ÌŒ`‚Å—˜—p‚·‚éê‡‚ɂ́Cã‹L‚Ì’˜ì
17 * Œ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L‚Ì–³•ÛØ‹K’肪C‚»‚Ì‚Ü‚Ü‚ÌŒ`‚Ń\[
18 * ƒXƒR[ƒh’†‚ÉŠÜ‚Ü‚ê‚Ä‚¢‚邱‚ƁD
19 * (2) –{ƒ\ƒtƒgƒEƒFƒA‚ðCƒ‰ƒCƒuƒ‰ƒŠŒ`Ž®‚ȂǁC‘¼‚̃\ƒtƒgƒEƒFƒAŠJ”­‚ÉŽg
20 * —p‚Å‚«‚éŒ`‚ōĔz•z‚·‚éê‡‚ɂ́CÄ”z•z‚É”º‚¤ƒhƒLƒ…
21ƒƒ“ƒgi—˜—p
22 * ŽÒƒ}ƒjƒ…
23ƒAƒ‹‚Ȃǁj‚ɁCã‹L‚Ì’˜ìŒ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L
24 * ‚Ì–³•ÛØ‹K’è‚ðŒfÚ‚·‚邱‚ƁD
25 * (3) –{ƒ\ƒtƒgƒEƒFƒA‚ðC‹@Ší‚É‘g‚ݍž‚ނȂǁC‘¼‚̃\ƒtƒgƒEƒFƒAŠJ”­‚ÉŽg
26 * —p‚Å‚«‚È‚¢Œ`‚ōĔz•z‚·‚éê‡‚ɂ́CŽŸ‚Ì‚¢‚¸‚ê‚©‚ÌðŒ‚ð–ž‚½‚·‚±
27 * ‚ƁD
28 * (a) Ä”z•z‚É”º‚¤ƒhƒLƒ…
29ƒƒ“ƒgi—˜—pŽÒƒ}ƒjƒ…
30ƒAƒ‹‚Ȃǁj‚ɁCã‹L‚Ì’˜
31 * ìŒ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L‚Ì–³•ÛØ‹K’è‚ðŒfÚ‚·‚邱‚ƁD
32 * (b) Ä”z•z‚ÌŒ`‘Ô‚ðC•Ê‚É’è‚ß‚é•û–@‚É‚æ‚Á‚āCTOPPERSƒvƒƒWƒFƒNƒg‚É
33 * •ñ‚·‚邱‚ƁD
34 * (4) –{ƒ\ƒtƒgƒEƒFƒA‚Ì—˜—p‚É‚æ‚è’¼Ú“I‚Ü‚½‚͊ԐړI‚ɐ¶‚¶‚é‚¢‚©‚Ȃ鑹
35 * ŠQ‚©‚ç‚àCã‹L’˜ìŒ ŽÒ‚¨‚æ‚ÑTOPPERSƒvƒƒWƒFƒNƒg‚ð–Ɛӂ·‚邱‚ƁD
36 * ‚Ü‚½C–{ƒ\ƒtƒgƒEƒFƒA‚̃†[ƒU‚Ü‚½‚̓Gƒ“ƒhƒ†[ƒU‚©‚ç‚Ì‚¢‚©‚Ȃ闝
37 * —R‚ÉŠî‚­¿‹‚©‚ç‚àCã‹L’˜ìŒ ŽÒ‚¨‚æ‚ÑTOPPERSƒvƒƒWƒFƒNƒg‚ð
38 * –Ɛӂ·‚邱‚ƁD
39 *
40 * –{ƒ\ƒtƒgƒEƒFƒA‚́C–³•ÛØ‚Å’ñ‹Ÿ‚³‚ê‚Ä‚¢‚é‚à‚Ì‚Å‚ ‚éDã‹L’˜ìŒ ŽÒ‚¨
41 * ‚æ‚ÑTOPPERSƒvƒƒWƒFƒNƒg‚́C–{ƒ\ƒtƒgƒEƒFƒA‚ÉŠÖ‚µ‚āC“Á’è‚ÌŽg—p–Ú“I
42 * ‚ɑ΂·‚é“K‡«‚àŠÜ‚߂āC‚¢‚©‚È‚é•ÛØ‚às‚í‚È‚¢D‚Ü‚½C–{ƒ\ƒtƒgƒEƒF
43 * ƒA‚Ì—˜—p‚É‚æ‚è’¼Ú“I‚Ü‚½‚͊ԐړI‚ɐ¶‚¶‚½‚¢‚©‚Ȃ鑹ŠQ‚ÉŠÖ‚µ‚Ä‚àC‚»
44 * ‚̐ӔC‚𕉂í‚È‚¢D
45 *
46 */
47
48/*
49 * t_stddef.h‚ÌŠJ”­ŠÂ‹«ˆË‘¶•”iƒ‹ƒlƒTƒXƒGƒŒƒNƒgƒƒjƒNƒX CA78K0R—pj
50 *
51 * ‚±‚̃Cƒ“ƒNƒ‹[ƒhƒtƒ@ƒCƒ‹‚́Ctarget_stddef.h ‚̐擪‚ŃCƒ“ƒNƒ‹[ƒh‚³‚ê‚éD
52 */
53
54#if !defined( TOPPERS_TOOL_STDDEF_H )
55#define TOPPERS_TOOL_STDDEF_H
56
57/*
58 * ƒRƒ“ƒpƒCƒ‰‚ÌŠg’£‹@”\‚Ì‚½‚߂̃}ƒNƒ’è‹`
59 */
60/*
61 * inline Ž¯•ÊŽq‚̓Rƒ“ƒpƒCƒ‰‚ªƒTƒ|[ƒg‚µ‚È‚¢D
62 */
63#define inline
64#define Inline static
65
66/*
67 * ƒRƒ“ƒpƒCƒ‰‚Å‚Í __asm Ž¯•ÊŽq‚ªƒTƒ|[ƒg‚³‚ê‚Ä‚¢‚邪Žg—p‚µ‚È‚¢‚½‚ß–¢’è‹`‚Æ‚·‚éD
68 */
69
70/*
71 * ƒŠƒ^[ƒ“‚µ‚È‚¢ŠÖ”‚Å‚ ‚邱‚Æ‚ðŽ¦‚·‚½‚߂̃L[ƒ[ƒh
72 * ŽÀÛ‚ɂ͉½‚à‚µ‚È‚¢
73 */
74#define NoReturn
75
76
77/*
78 * ŠJ”­ŠÂ‹«‚Ì•W€ƒCƒ“ƒNƒ‹[ƒhƒtƒ@ƒCƒ‹‚Ì—˜—p
79 *
80 * NULL‚Ì’è‹`‚ðstddef.h‚©‚çCINT_MAXCINT_MINCUINT_MAXCLONG_MAXC
81 * LONG_MINCULONG_MAXCCHAR_BIT‚Ì’è‹`‚ðlimits.h‚©‚çŽæ‚荞‚ށD
82 */
83#ifndef TOPPERS_MACRO_ONLY
84#include <stddef.h>
85#include <limits.h>
86#endif /* TOPPERS_MACRO_ONLY */
87
88/*
89 * stdint.h‚Ì‘ã—p‚Æ‚È‚é’è‹`
90 *
91 * C99 ‚Ì stdint.h ‚ª—pˆÓ‚³‚ê‚Ä‚¢‚È‚¢‚½‚߁C‚»‚Ì‘ã—p‚Æ‚È‚é’è‹`‚ð—^‚¦‚éD
92 */
93
94/*
95 * ƒRƒ“ƒpƒCƒ‰ˆË‘¶‚̃f[ƒ^Œ^‚Ì’è‹`
96 */
97#ifndef TOPPERS_MACRO_ONLY
98
99typedef signed char int8_t; /* •„†•t‚«8ƒrƒbƒg®” */
100typedef unsigned char uint8_t; /* •„†–³‚µ8ƒrƒbƒg®” */
101
102typedef signed short int16_t; /* •„†•t‚«16ƒrƒbƒg®” */
103typedef unsigned short uint16_t; /* •„†–³‚µ16ƒrƒbƒg®” */
104
105typedef signed long int32_t; /* •„†•t‚«32ƒrƒbƒg®” */
106typedef unsigned long uint32_t; /* •„†–³‚µ32ƒrƒbƒg®” */
107
108/* 64ƒrƒbƒg®”Œ^‚Í–¢ƒTƒ|[ƒg */
109
110typedef int8_t int_least8_t; /* 8ƒrƒbƒgˆÈã‚Ì•„†•t‚«®” */
111typedef uint8_t uint_least8_t; /* 8ƒrƒbƒgˆÈã‚Ì•„†–³‚µ®” */
112
113typedef long intptr_t; /* ƒ|ƒCƒ“ƒ^‚ðŠi”[‚Å‚«‚é•„†•t‚«®” */
114typedef unsigned long uintptr_t; /* ƒ|ƒCƒ“ƒ^‚ðŠi”[‚Å‚«‚é•„†–³‚µ®” */
115
116#endif /* TOPPERS_MACRO_ONLY */
117
118/*
119 * ƒRƒ“ƒpƒCƒ‰ˆË‘¶‚̃f[ƒ^Œ^‚̐®”’萔‚ðì‚éƒ}ƒNƒ(C99)
120 * —pˆÓ‚³‚ê‚Ä‚¢‚È‚¢‚½‚߁C‚±‚±‚Å’è‹`‚·‚éD
121 */
122#ifndef INT8_C
123#define INT8_C(val) ((int8_t)(val))
124#endif /* INT8_C */
125
126#ifndef UINT8_C
127#define UINT8_C(val) ((uint8_t)(val ## U))
128#endif /* UINT8_C */
129
130#ifndef INT16_C
131#define INT16_C(val) ((int16_t)(val))
132#endif /* INT16_C */
133
134#ifndef UINT16_C
135#define UINT16_C(val) ((uint16_t)(val ## U))
136#endif /* UINT16_C */
137
138#ifndef INT32_C
139#define INT32_C(val) ((int32_t)(val))
140#endif /* INT32_C */
141
142#ifndef UINT32_C
143#define UINT32_C(val) ((uint32_t)(val ## U))
144#endif /* UINT32_C */
145
146/*
147 * ƒRƒ“ƒpƒCƒ‰ˆË‘¶‚̃f[ƒ^Œ^‚ÉŠi”[‚Å‚«‚éÅ‘å’l‚ƍŏ¬’l‚Ì’è‹`(C99)
148 * —pˆÓ‚³‚ê‚Ä‚¢‚È‚¢‚½‚߁C‚±‚±‚Å’è‹`‚·‚éD
149 */
150#define INT8_MAX SCHAR_MAX
151#define INT8_MIN SCHAR_MIN
152#define UINT8_MAX UCHAR_MAX
153
154#define INT16_MAX SHRT_MAX
155#define INT16_MIN SHRT_MIN
156#define UINT16_MAX USHRT_MAX
157
158#define INT32_MAX LONG_MAX
159#define INT32_MIN LONG_MIN
160#define UINT32_MAX ULONG_MAX
161
162#define INT_LEAST8_MAX INT8_MAX
163#define INT_LEAST8_MIN INT8_MIN
164#define UINT_LEAST8_MAX INT8_MAX
165
166/*
167 * •‚“®¬”“_Œ^‚ÉŠÖ‚·‚é’è‹`
168 */
169#ifndef TOPPERS_MACRO_ONLY
170
171typedef float float32_t; /* IEEE754€‹’‚Ì’P¸“x•‚“®¬”“_” */
172/* ”{¸“x•‚“®¬”“_”‚Í–¢ƒTƒ|[ƒg‚Å‚ ‚èCdouble‚àfloat‚Æ“¯‚¶32ƒrƒbƒg */
173
174#endif /* TOPPERS_MACRO_ONLY */
175
176#define FLOAT32_MIN 1.17549435e-38F
177#define FLOAT32_MAX 3.40282347e+38F
178
179/*
180 * ‹óƒ‰ƒxƒ‹‚Ì’è‹`
181 * ‘å‚«‚³ƒ[ƒ‚Ì”z—ñ‚ÍŒx‚ɂȂ邽‚߁A
182 * ‚±‚±‚Å•Ê“r’è‹`‚·‚éB
183 */
184#define TOPPERS_EMPTY_LABEL(x,y) x y[1]
185
186#endif /* TOPPERS_TOOL_STDDEF_H */
187
Note: See TracBrowser for help on using the repository browser.