source: uKadecot/trunk/ssp/target/grsakura_ccrx/target_config.h@ 101

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

TOPPERS/uKadecotのソースコードを追加

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