1 /*******************************************************************************
\r
3 * This software is supplied by Renesas Electronics Corporation and is only
\r
4 * intended for use with Renesas products. No other uses are authorized. This
\r
5 * software is owned by Renesas Electronics Corporation and is protected under
\r
6 * all applicable laws, including copyright laws.
\r
7 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
\r
8 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
\r
9 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
\r
10 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
\r
11 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
\r
12 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
\r
13 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
\r
14 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
\r
15 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
\r
16 * Renesas reserves the right, without notice, to make changes to this software
\r
17 * and to discontinue the availability of this software. By using this software,
\r
18 * you agree to the additional terms and conditions found by accessing the
\r
20 * http://www.renesas.com/disclaimer
\r
22 * Copyright (C) 2012 Renesas Electronics Corporation. All rights reserved.
\r
23 *******************************************************************************/
\r
24 /*******************************************************************************
\r
25 * File Name : spibsc_iodefine.h
\r
28 * Tool-Chain : DS-5 Ver 5.8
\r
31 * H/W Platform : CPU Board
\r
33 *******************************************************************************/
\r
34 /*******************************************************************************
\r
35 * History : 05.11.2012 0.01 Version Description
\r
36 *******************************************************************************/
\r
37 #ifndef __SPIBSC_IODEFINE_H__
\r
38 #define __SPIBSC_IODEFINE_H__
\r
40 #include "typedefine.h"
\r
43 /****************************************************************/
\r
45 /****************************************************************/
\r
46 struct st_spibsc_n { /* struct SPIBSC*/
\r
48 _UDWORD LONG; /* Long Access */
\r
49 struct { /* Bit Access */
\r
50 _UDWORD BSZ:2; /* BSZ */
\r
52 _UDWORD CPOL:1; /* CPOL */
\r
53 _UDWORD SSLP:1; /* SSLP */
\r
54 _UDWORD CPHAR:1; /* CPHAR */
\r
55 _UDWORD CPHAT:1; /* CPHAT */
\r
57 _UDWORD IO0FV:2; /* IO0FV */
\r
59 _UDWORD IO2FV:2; /* IO2FV */
\r
60 _UDWORD IO3FV:2; /* IO3FV */
\r
61 _UDWORD MOIIO0:2; /* MOIIO0 */
\r
62 _UDWORD MOIIO1:2; /* MOIIO1 */
\r
63 _UDWORD MOIIO2:2; /* MOIIO2 */
\r
64 _UDWORD MOIIO3:2; /* MOIIO3 */
\r
66 _UDWORD MD:1; /* MD */
\r
70 _UDWORD LONG; /* Long Access */
\r
71 struct { /* Bit Access */
\r
72 _UDWORD SCKDL:3; /* SCKDL */
\r
74 _UDWORD SLNDL:3; /* SLNDL */
\r
76 _UDWORD SPNDL:3; /* SPNDL */
\r
81 _UDWORD LONG; /* Long Access */
\r
82 struct { /* Bit Access */
\r
83 _UDWORD BRDV:2; /* BRDV */
\r
85 _UDWORD SPBR:8; /* SPBR */
\r
90 _UDWORD LONG; /* Long Access */
\r
91 struct { /* Bit Access */
\r
92 _UDWORD SSLE:1; /* SSLE */
\r
94 _UDWORD RBE:1; /* RBE */
\r
95 _UDWORD RCF:1; /* RCF */
\r
97 _UDWORD RBURST:4; /* RBURST */
\r
99 _UDWORD SSLN:1; /* SSLN */
\r
103 union { /* DRCMR */
\r
104 _UDWORD LONG; /* Long Access */
\r
105 struct { /* Bit Access */
\r
106 _UDWORD OCMD:8; /* OCMD */
\r
108 _UDWORD CMD:8; /* CMD */
\r
112 union { /* DREAR */
\r
113 _UDWORD LONG; /* Long Access */
\r
114 struct { /* Bit Access */
\r
115 _UDWORD EAC:3; /* EAC */
\r
117 _UDWORD EAV:8; /* EAV */
\r
121 union { /* DROPR */
\r
122 _UDWORD LONG; /* Long Access */
\r
123 struct { /* Bit Access */
\r
124 _UDWORD OPD0:8; /* OPD0 */
\r
125 _UDWORD OPD1:8; /* OPD1 */
\r
126 _UDWORD OPD2:8; /* OPD2 */
\r
127 _UDWORD OPD3:8; /* OPD3 */
\r
130 union { /* DRENR */
\r
131 _UDWORD LONG; /* Long Access */
\r
132 struct { /* Bit Access */
\r
134 _UDWORD OPDE:4; /* OPDE */
\r
135 _UDWORD ADE:4; /* ADE */
\r
136 _UDWORD OCDE:1; /* OCDE */
\r
138 _UDWORD CDE:1; /* CDE */
\r
139 _UDWORD DME:1; /* DME */
\r
140 _UDWORD DRDB:2; /* DRDB */
\r
142 _UDWORD OPDB:2; /* OPDB */
\r
144 _UDWORD ADB:2; /* ADB */
\r
146 _UDWORD OCDB:2; /* OCDB */
\r
147 _UDWORD CDB:2; /* CDB */
\r
151 _UDWORD LONG; /* Long Access */
\r
152 struct { /* Bit Access */
\r
153 _UDWORD SPIE:1; /* SPIE */
\r
154 _UDWORD SPIWE:1; /* SPIWE */
\r
155 _UDWORD SPIRE:1; /* SPIRE */
\r
157 _UDWORD SSLKP:1; /* SSLKP */
\r
161 union { /* SMCMR */
\r
162 _UDWORD LONG; /* Long Access */
\r
163 struct { /* Bit Access */
\r
164 _UDWORD OCMD:8; /* OCMD */
\r
166 _UDWORD CMD:8; /* CMD */
\r
170 union { /* SMADR */
\r
171 _UDWORD LONG; /* Long Access */
\r
172 struct { /* Bit Access */
\r
173 _UDWORD ADR:32; /* ADR */
\r
176 union { /* SMOPR */
\r
177 _UDWORD LONG; /* Long Access */
\r
178 struct { /* Bit Access */
\r
179 _UDWORD OPD0:8; /* OPD0 */
\r
180 _UDWORD OPD1:8; /* OPD1 */
\r
181 _UDWORD OPD2:8; /* OPD2 */
\r
182 _UDWORD OPD3:8; /* OPD3 */
\r
185 union { /* SMENR */
\r
186 _UDWORD LONG; /* Long Access */
\r
187 struct { /* Bit Access */
\r
188 _UDWORD SPIDE:4; /* SPIDE */
\r
189 _UDWORD OPDE:4; /* OPDE */
\r
190 _UDWORD ADE:4; /* ADE */
\r
191 _UDWORD OCDE:1; /* OCDE */
\r
193 _UDWORD CDE:1; /* CDE */
\r
194 _UDWORD DME:1; /* DME */
\r
195 _UDWORD SPIDB:2; /* SPIDB */
\r
197 _UDWORD OPDB:2; /* OPDB */
\r
199 _UDWORD ADB:2; /* ADB */
\r
201 _UDWORD OCDB:2; /* OCDB */
\r
202 _UDWORD CDB:2; /* CDB */
\r
205 _UBYTE wk0[4]; /* */
\r
206 union { /* SMRDR0 */
\r
207 _UDWORD LONG; /* Long Access */
\r
208 struct { /* Word Access */
\r
209 _UWORD L; /* Low */
\r
210 _UWORD H; /* High */
\r
212 struct { /* Byte Access */
\r
213 _UBYTE LL; /* Low, Low */
\r
214 _UBYTE LH; /* Low, High */
\r
215 _UBYTE HL; /* High, Low */
\r
216 _UBYTE HH; /* High, High */
\r
218 struct { /* Bit Access */
\r
219 _UDWORD RDATA0:32; /* RDATA0 */
\r
222 union { /* SMRDR1 */
\r
223 _UDWORD LONG; /* Long Access */
\r
224 struct { /* Word Access */
\r
225 _UWORD L; /* Low */
\r
226 _UWORD H; /* High */
\r
228 struct { /* Byte Access */
\r
229 _UBYTE LL; /* Low, Low */
\r
230 _UBYTE LH; /* Low, High */
\r
231 _UBYTE HL; /* High, Low */
\r
232 _UBYTE HH; /* High, High */
\r
234 struct { /* Bit Access */
\r
235 _UDWORD RDATA1:32; /* RDATA1 */
\r
238 union { /* SMWDR0 */
\r
239 _UDWORD LONG; /* Long Access */
\r
240 struct { /* Word Access */
\r
241 _UWORD L; /* Low */
\r
242 _UWORD H; /* High */
\r
244 struct { /* Byte Access */
\r
245 _UBYTE LL; /* Low, Low */
\r
246 _UBYTE LH; /* Low, High */
\r
247 _UBYTE HL; /* High, Low */
\r
248 _UBYTE HH; /* High, High */
\r
250 struct { /* Bit Access */
\r
251 _UDWORD WDATA0:32; /* WDATA0 */
\r
254 union { /* SMWDR1 */
\r
255 _UDWORD LONG; /* Long Access */
\r
256 struct { /* Word Access */
\r
257 _UWORD L; /* Low */
\r
258 _UWORD H; /* High */
\r
260 struct { /* Byte Access */
\r
261 _UBYTE LL; /* Low, Low */
\r
262 _UBYTE LH; /* Low, High */
\r
263 _UBYTE HL; /* High, Low */
\r
264 _UBYTE HH; /* High, High */
\r
266 struct { /* Bit Access */
\r
267 _UDWORD WDATA1:32; /* WDATA1 */
\r
270 union { /* CMNSR */
\r
271 _UDWORD LONG; /* Long Access */
\r
272 struct { /* Bit Access */
\r
273 _UDWORD TEND:1; /* TEND */
\r
274 _UDWORD SSLF:1; /* SSLF */
\r
278 _UBYTE wk1[12]; /* */
\r
279 union { /* DRDMCR */
\r
280 _UDWORD LONG; /* Long Access */
\r
281 struct { /* Bit Access */
\r
282 _UDWORD DMCYC:3; /* */
\r
284 _UDWORD DMDB:2; /* */
\r
288 union { /* DRDRENR */
\r
289 _UDWORD LONG; /* Long Access */
\r
290 struct { /* Bit Access */
\r
291 _UDWORD DRDRE:1; /* */
\r
293 _UDWORD OPDRE:1; /* */
\r
295 _UDWORD ADDRE:1; /* */
\r
300 union { /* SMDMCR */
\r
301 _UDWORD LONG; /* Long Access */
\r
302 struct { /* Bit Access */
\r
303 _UDWORD DMCYC:3; /* */
\r
305 _UDWORD DMDB:2; /* */
\r
309 union { /* SMDRENR */
\r
310 _UDWORD LONG; /* Long Access */
\r
311 struct { /* Bit Access */
\r
312 _UDWORD SPIDRE:1; /* */
\r
314 _UDWORD OPDRE:1; /* */
\r
316 _UDWORD ADDRE:1; /* */
\r
322 #define SPIBSC0 (*(volatile struct st_spibsc_n *)0x3FEFA000)
\r
323 #define SPIBSC1 (*(volatile struct st_spibsc_n *)0x3FEFB000)
\r
326 #endif /* __SPIBSC_IODEFINE_H__ */
\r