source: asp3_tinet_ecnl_arm/trunk/asp3_dcre/target/gr_peach_gcc/tSIOPortGRPeach.cdl@ 352

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

arm向けASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/plain;charset=UTF-8
File size: 7.8 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) 2015 by Ushio Laboratory
7 * Graduate School of Engineering Science, Osaka Univ., JAPAN
8 * Copyright (C) 2015,2016 by Embedded and Real-Time Systems Laboratory
9 * Graduate School of Information Science, Nagoya Univ., JAPAN
10 *
11 * 上記著作権者は,以下の(1)~(4)の条件を満たす場合に限り,本ソフトウェ
12 * ア(本ソフトウェアを改変したものを含む.以下同じ)を使用・複製・改
13 * 変・再配布(以下,利用と呼ぶ)することを無償で許諾する.
14 * (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作
15 * 権表示,この利用条件および下記の無保証規定が,そのままの形でソー
16 * スコード中に含まれていること.
17 * (2) 本ソフトウェアを,ライブラリ形式など,他のソフトウェア開発に使
18 * 用できる形で再配布する場合には,再配布に伴うドキュメント(利用
19 * 者マニュアルなど)に,上記の著作権表示,この利用条件および下記
20 * の無保証規定を掲載すること.
21 * (3) 本ソフトウェアを,機器に組み込むなど,他のソフトウェア開発に使
22 * 用できない形で再配布する場合には,次のいずれかの条件を満たすこ
23 * と.
24 * (a) 再配布に伴うドキュメント(利用者マニュアルなど)に,上記の著
25 * 作権表示,この利用条件および下記の無保証規定を掲載すること.
26 * (b) 再配布の形態を,別に定める方法によって,TOPPERSプロジェクトに
27 * 報告すること.
28 * (4) 本ソフトウェアの利用により直接的または間接的に生じるいかなる損
29 * 害からも,上記著作権者およびTOPPERSプロジェクトを免責すること.
30 * また,本ソフトウェアのユーザまたはエンドユーザからのいかなる理
31 * 由に基づく請求からも,上記著作権者およびTOPPERSプロジェクトを
32 * 免責すること.
33 *
34 * 本ソフトウェアは,無保証で提供されているものである.上記著作権者お
35 * よびTOPPERSプロジェクトは,本ソフトウェアに関して,特定の使用目的
36 * に対する適合性も含めて,いかなる保証も行わない.また,本ソフトウェ
37 * アの利用により直接的または間接的に生じたいかなる損害に関しても,そ
38 * の責任を負わない.
39 *
40 * $Id$
41 */
42
43/*
44 * シリアルインタフェースドライバのターゲット依存部(GR-PEACH用)
45 * のコンポーネント記述
46 */
47
48/*
49 * GR-PEACHとRZ/A1に関する定義
50 */
51import_C("gr_peach.h");
52import_C("rza1.h");
53
54/*
55 * FIFO内蔵シリアルコミュニケーションインタフェース用 簡易SIOドライバ
56 */
57import("tSCIF.cdl");
58
59/*
60 * シリアルインタフェースドライバのターゲット依存部の本体(シリアルイ
61 * ンタフェースドライバとSIOドライバを接続する部分)のセルタイプ
62 */
63celltype tSIOPortGRPeachMain {
64 /*
65 * シリアルインタフェースドライバとの結合
66 */
67 [inline] entry sSIOPort eSIOPort;
68 [optional] call siSIOCBR ciSIOCBR;
69
70 /*
71 * SIOドライバとの結合
72 */
73 call sSIOPort cSIOPort;
74 [inline] entry siSIOCBR eiSIOCBR;
75
76 /*
77 * 割込み要求ライン操作のための結合
78 */
79 call sInterruptRequest cRxInterruptRequest;
80 call sInterruptRequest cTxInterruptRequest;
81};
82
83/*
84 * シリアルインタフェースドライバのターゲット依存部(複合コンポーネン
85 * ト)のセルタイプ
86 */
87[active]
88composite tSIOPortGRPeach {
89 /*
90 * シリアルインタフェースドライバとの結合
91 */
92 entry sSIOPort eSIOPort;
93 [optional] call siSIOCBR ciSIOCBR;
94
95 /*
96 * 属性の定義
97 */
98 attr {
99 uintptr_t baseAddress; /* ベースアドレス */
100 INTNO rxInterruptNumber; /* 受信割込み番号 */
101 INTNO txInterruptNumber; /* 送信割込み番号 */
102 PRI isrPriority = 1; /* ISR優先度 */
103 PRI interruptPriority = -4; /* 割込み優先度 */
104 uint32_t baudRate = 115200; /* ボーレートの設定値 */
105 };
106
107 /*
108 * SIOドライバ
109 */
110 cell tSCIF SCIF {
111 baseAddress = composite.baseAddress;
112 baudRate = composite.baudRate;
113 ciSIOCBR = SIOPortMain.eiSIOCBR;
114 };
115
116 /*
117 * シリアルインタフェースドライバのターゲット依存部の本体
118 */
119 cell tSIOPortGRPeachMain SIOPortMain {
120 ciSIOCBR => composite.ciSIOCBR;
121 cSIOPort = SCIF.eSIOPort;
122 cRxInterruptRequest = RxInterruptRequest.eInterruptRequest;
123 cTxInterruptRequest = TxInterruptRequest.eInterruptRequest;
124 };
125 composite.eSIOPort => SIOPortMain.eSIOPort;
126
127 /*
128 * SIOの受信割込みサービスルーチンと割込み要求ライン
129 */
130 cell tISR RxISRInstance {
131 interruptNumber = composite.rxInterruptNumber;
132 isrPriority = composite.isrPriority;
133 ciISRBody = SCIF.eiRxISR;
134 };
135 cell tInterruptRequest RxInterruptRequest {
136 interruptNumber = composite.rxInterruptNumber;
137 interruptPriority = composite.interruptPriority;
138 };
139
140 /*
141 * SIOの受信割込みサービスルーチンと割込み要求ライン
142 */
143 cell tISR TxISRInstance {
144 interruptNumber = composite.txInterruptNumber;
145 isrPriority = composite.isrPriority;
146 ciISRBody = SCIF.eiTxISR;
147 };
148 cell tInterruptRequest TxInterruptRequest {
149 interruptNumber = composite.txInterruptNumber;
150 interruptPriority = composite.interruptPriority;
151 };
152};
153
154/*
155 * シリアルインタフェースドライバのターゲット依存部のプロトタイプ
156 *
157 * サンプルプログラムが使うポートが,SIOPortTarget1に固定されているた
158 * め,ポート1とポート3を入れ換えている.具体的には,SIOPortTarget1は
159 * SCIFのチャネル2(チャネル番号は0から始まるので,ポート3のこと)に,
160 * SIOPortTarget3はSCIFのチャネル0につながっている.
161 */
162[prototype]
163cell tSIOPortGRPeach SIOPortTarget1 {
164 /* 属性の設定 */
165 baseAddress = C_EXP("SCIF2_BASE");
166 rxInterruptNumber = C_EXP("INTNO_SCIF2_RXI");
167 txInterruptNumber = C_EXP("INTNO_SCIF2_TXI");
168};
169
170[prototype]
171cell tSIOPortGRPeach SIOPortTarget2 {
172 /* 属性の設定 */
173 baseAddress = C_EXP("SCIF1_BASE");
174 rxInterruptNumber = C_EXP("INTNO_SCIF1_RXI");
175 txInterruptNumber = C_EXP("INTNO_SCIF1_TXI");
176};
177
178[prototype]
179cell tSIOPortGRPeach SIOPortTarget3 {
180 /* 属性の設定 */
181 baseAddress = C_EXP("SCIF0_BASE");
182 rxInterruptNumber = C_EXP("INTNO_SCIF0_RXI");
183 txInterruptNumber = C_EXP("INTNO_SCIF0_TXI");
184};
185
186[prototype]
187cell tSIOPortGRPeach SIOPortTarget4 {
188 /* 属性の設定 */
189 baseAddress = C_EXP("SCIF3_BASE");
190 rxInterruptNumber = C_EXP("INTNO_SCIF3_RXI");
191 txInterruptNumber = C_EXP("INTNO_SCIF3_TXI");
192};
193
194[prototype]
195cell tSIOPortGRPeach SIOPortTarget5 {
196 /* 属性の設定 */
197 baseAddress = C_EXP("SCIF4_BASE");
198 rxInterruptNumber = C_EXP("INTNO_SCIF4_RXI");
199 txInterruptNumber = C_EXP("INTNO_SCIF4_TXI");
200};
201
202[prototype]
203cell tSIOPortGRPeach SIOPortTarget6 {
204 /* 属性の設定 */
205 baseAddress = C_EXP("SCIF5_BASE");
206 rxInterruptNumber = C_EXP("INTNO_SCIF5_RXI");
207 txInterruptNumber = C_EXP("INTNO_SCIF5_TXI");
208};
209
210[prototype]
211cell tSIOPortGRPeach SIOPortTarget7 {
212 /* 属性の設定 */
213 baseAddress = C_EXP("SCIF6_BASE");
214 rxInterruptNumber = C_EXP("INTNO_SCIF6_RXI");
215 txInterruptNumber = C_EXP("INTNO_SCIF6_TXI");
216};
217
218[prototype]
219cell tSIOPortGRPeach SIOPortTarget8 {
220 /* 属性の設定 */
221 baseAddress = C_EXP("SCIF7_BASE");
222 rxInterruptNumber = C_EXP("INTNO_SCIF7_RXI");
223 txInterruptNumber = C_EXP("INTNO_SCIF7_TXI");
224};
Note: See TracBrowser for help on using the repository browser.