source: UsbWattMeter/trunk/asp_dcre/target/grsakura_ccrx/target_config.h@ 164

Last change on this file since 164 was 164, checked in by coas-nagasima, 6 years ago

TOPPERS/ECNLサンプルアプリ「USB充電器電力計」を追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-chdr
File size: 4.1 KB
Line 
1/*
2 * TOPPERS/ASP Kernel
3 * Toyohashi Open Platform for Embedded Real-Time Systems/
4 * Advanced Standard Profile Kernel
5 *
6 * Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
7 * Toyohashi Univ. of Technology, JAPAN
8 * Copyright (C) 2005-2007 by Embedded and Real-Time Systems Laboratory
9 * Graduate School of Information Science, Nagoya Univ., JAPAN
10 * Copyright (C) 2008-2010 by Witz Corporation, JAPAN
11 *
12 * ã‹L’˜ìŒ ŽÒ‚́CˆÈ‰º‚Ì(1)`(4)‚ÌðŒ‚ð–ž‚½‚·ê‡‚ÉŒÀ‚èC–{ƒ\ƒtƒgƒEƒF
13 * ƒAi–{ƒ\ƒtƒgƒEƒFƒA‚ð‰ü•Ï‚µ‚½‚à‚Ì‚ðŠÜ‚ށDˆÈ‰º“¯‚¶j‚ðŽg—pE•¡»E‰ü
14 * •ÏEÄ”z•ziˆÈ‰ºC—˜—p‚ƌĂԁj‚·‚邱‚Ƃ𖳏ž‚Å‹–‘ø‚·‚éD
15 * (1) –{ƒ\ƒtƒgƒEƒFƒA‚ðƒ\[ƒXƒR[ƒh‚ÌŒ`‚Å—˜—p‚·‚éê‡‚ɂ́Cã‹L‚Ì’˜ì
16 * Œ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L‚Ì–³•ÛØ‹K’肪C‚»‚Ì‚Ü‚Ü‚ÌŒ`‚Ń\[
17 * ƒXƒR[ƒh’†‚ÉŠÜ‚Ü‚ê‚Ä‚¢‚邱‚ƁD
18 * (2) –{ƒ\ƒtƒgƒEƒFƒA‚ðCƒ‰ƒCƒuƒ‰ƒŠŒ`Ž®‚ȂǁC‘¼‚̃\ƒtƒgƒEƒFƒAŠJ”­‚ÉŽg
19 * —p‚Å‚«‚éŒ`‚ōĔz•z‚·‚éê‡‚ɂ́CÄ”z•z‚É”º‚¤ƒhƒLƒ…
20ƒƒ“ƒgi—˜—p
21 * ŽÒƒ}ƒjƒ…
22ƒAƒ‹‚Ȃǁj‚ɁCã‹L‚Ì’˜ìŒ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L
23 * ‚Ì–³•ÛØ‹K’è‚ðŒfÚ‚·‚邱‚ƁD
24 * (3) –{ƒ\ƒtƒgƒEƒFƒA‚ðC‹@Ší‚É‘g‚ݍž‚ނȂǁC‘¼‚̃\ƒtƒgƒEƒFƒAŠJ”­‚ÉŽg
25 * —p‚Å‚«‚È‚¢Œ`‚ōĔz•z‚·‚éê‡‚ɂ́CŽŸ‚Ì‚¢‚¸‚ê‚©‚ÌðŒ‚ð–ž‚½‚·‚±
26 * ‚ƁD
27 * (a) Ä”z•z‚É”º‚¤ƒhƒLƒ…
28ƒƒ“ƒgi—˜—pŽÒƒ}ƒjƒ…
29ƒAƒ‹‚Ȃǁj‚ɁCã‹L‚Ì’˜
30 * ìŒ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L‚Ì–³•ÛØ‹K’è‚ðŒfÚ‚·‚邱‚ƁD
31 * (b) Ä”z•z‚ÌŒ`‘Ô‚ðC•Ê‚É’è‚ß‚é•û–@‚É‚æ‚Á‚āCTOPPERSƒvƒƒWƒFƒNƒg‚É
32 * •ñ‚·‚邱‚ƁD
33 * (4) –{ƒ\ƒtƒgƒEƒFƒA‚Ì—˜—p‚É‚æ‚è’¼Ú“I‚Ü‚½‚͊ԐړI‚ɐ¶‚¶‚é‚¢‚©‚Ȃ鑹
34 * ŠQ‚©‚ç‚àCã‹L’˜ìŒ ŽÒ‚¨‚æ‚ÑTOPPERSƒvƒƒWƒFƒNƒg‚ð–Ɛӂ·‚邱‚ƁD
35 * ‚Ü‚½C–{ƒ\ƒtƒgƒEƒFƒA‚̃†[ƒU‚Ü‚½‚̓Gƒ“ƒhƒ†[ƒU‚©‚ç‚Ì‚¢‚©‚Ȃ闝
36 * —R‚ÉŠî‚­¿‹‚©‚ç‚àCã‹L’˜ìŒ ŽÒ‚¨‚æ‚ÑTOPPERSƒvƒƒWƒFƒNƒg‚ð
37 * –Ɛӂ·‚邱‚ƁD
38 *
39 * –{ƒ\ƒtƒgƒEƒFƒA‚́C–³•ÛØ‚Å’ñ‹Ÿ‚³‚ê‚Ä‚¢‚é‚à‚Ì‚Å‚ ‚éDã‹L’˜ìŒ ŽÒ‚¨
40 * ‚æ‚ÑTOPPERSƒvƒƒWƒFƒNƒg‚́C–{ƒ\ƒtƒgƒEƒFƒA‚ÉŠÖ‚µ‚āC“Á’è‚ÌŽg—p–Ú“I
41 * ‚ɑ΂·‚é“K‡«‚àŠÜ‚߂āC‚¢‚©‚È‚é•ÛØ‚às‚í‚È‚¢D‚Ü‚½C–{ƒ\ƒtƒgƒEƒF
42 * ƒA‚Ì—˜—p‚É‚æ‚è’¼Ú“I‚Ü‚½‚͊ԐړI‚ɐ¶‚¶‚½‚¢‚©‚Ȃ鑹ŠQ‚ÉŠÖ‚µ‚Ä‚àC‚»
43 * ‚̐ӔC‚𕉂í‚È‚¢D
44 *
45 * @(#) $Id: target_config.h 164 2016-03-07 11:33:50Z coas-nagasima $
46 */
47
48/*
49 * ƒ^[ƒQƒbƒgˆË‘¶ƒ‚ƒWƒ…
50[ƒ‹iGR-SAKURA—pj
51 *
52 * ƒJ[ƒlƒ‹‚̃^[ƒQƒbƒgˆË‘¶•”‚̃Cƒ“ƒNƒ‹[ƒhƒtƒ@ƒCƒ‹Dkernel_impl.h‚̃^[
53 * ƒQƒbƒgˆË‘¶•”‚̈ʒu•t‚¯‚Æ‚È‚éD
54 */
55
56#ifndef TOPPERS_TARGET_CONFIG_H
57#define TOPPERS_TARGET_CONFIG_H
58
59/*
60 * ƒ^[ƒQƒbƒgƒVƒXƒeƒ€‚̃n[ƒhƒEƒFƒAŽ‘Œ¹‚Ì’è‹`
61 */
62#include "grsakura.h"
63
64
65/*
66 * ƒfƒtƒHƒ‹ƒg‚Ì”ñƒ^ƒXƒNƒRƒ“ƒeƒLƒXƒg—p‚̃Xƒ^ƒbƒN—̈æ‚Ì’è‹`
67 *
68 * ƒXƒ^ƒbƒNƒTƒCƒY‚ð•ÏX‚·‚éê‡‚Í, sectrx.inc‚Ì_DEFAULT_ISTACK
69 * ƒ‰ƒxƒ‹‚̈ʒu‚É‚ ‚é.blkb–½—߂̃TƒCƒY‚Æ, ˆÈ‰ºDEFAULT_ISTKSZ‚Ì
70 * ƒTƒCƒY‚ð‡‚í‚¹‚Ä“¯‚¶’l‚ɕύX‚·‚邱‚Æ.
71 */
72#ifndef _MSC_VER
73#define DEFAULT_ISTKSZ ( 0x400/*__secsize("SI")*/ )
74#define DEFAULT_ISTK (STK_T *)__sectop("SI")
75#else
76#define DEFAULT_ISTKSZ ( 0 )
77#define DEFAULT_ISTK (STK_T *)NULL
78#endif // !_MSC_VER
79
80/*
81 * ƒ^[ƒQƒbƒgˆË‘¶‚Ì•¶Žšo—Í‚ÉŽg—p‚·‚éƒ|[ƒg‚Ì’è‹`
82 */
83#define TARGET_PUTC_PORTID ( 1 )
84
85
86#ifndef TOPPERS_MACRO_ONLY
87
88/*
89 * ƒ^[ƒQƒbƒgƒVƒXƒeƒ€ˆË‘¶‚̏‰Šú‰»
90 */
91extern void target_initialize( void );
92
93/*
94 * ƒ^[ƒQƒbƒgƒVƒXƒeƒ€‚̏I—¹
95 *
96 * ƒVƒXƒeƒ€‚ðI—¹‚·‚鎞‚ÉŽg‚¤D
97 */
98extern void target_exit( void ) NoReturn;
99
100#endif /* TOPPERS_MACRO_ONLY */
101
102
103/*
104 * ƒvƒƒZƒbƒTˆË‘¶ƒ‚ƒWƒ…
105[ƒ‹iRX630—pj
106 */
107#ifdef __RX
108#include "rx630_ccrx/rx630_config.h"
109#else
110#include "rx630_msvc/rx630_config.h"
111#endif
112
113/*
114 * ƒgƒŒ[ƒXƒƒO‚ÉŠÖ‚·‚éÝ’è
115 */
116#define TCNT_TRACE_BUFFER ( 32 )
117
118/*
119 * ƒgƒŒ[ƒXƒƒOo—Í‚·‚é‰ÓŠ‚Ì‘I‘ð
120 * ƒƒOo—Í‚·‚é‰ÓŠ‚ð1‚Å’è‹`
121 * ƒƒOo—Í‚µ‚È‚¢‰ÓŠ‚ð0‚Å’è‹`
122 */
123#ifdef TOPPERS_ENABLE_TRACE
124#define LOG_DSP_ENTER_ENABLE ( 1 )
125#define LOG_DSP_LEAVE_ENABLE ( 1 )
126#define LOG_INH_ENTER_ENABLE ( 1 )
127#define LOG_INH_LEAVE_ENABLE ( 1 )
128#define LOG_EXC_ENTER_ENABLE ( 1 )
129#define LOG_EXC_LEAVE_ENABLE ( 1 )
130#else
131#define LOG_DSP_ENTER_ENABLE ( 0 )
132#define LOG_DSP_LEAVE_ENABLE ( 0 )
133#define LOG_INH_ENTER_ENABLE ( 0 )
134#define LOG_INH_LEAVE_ENABLE ( 0 )
135#define LOG_EXC_ENTER_ENABLE ( 0 )
136#define LOG_EXC_LEAVE_ENABLE ( 0 )
137#endif
138
139#ifdef TOPPERS_ENABLE_TRACE
140#include "logtrace/trace_config.h"
141#endif /* TOPPERS_ENABLE_TRACE */
142
143#endif /* TOPPERS_TARGET_CONFIG_H */
Note: See TracBrowser for help on using the repository browser.