1 /*******************************************************************************
3 * This software is supplied by Renesas Electronics Corporation and is only
4 * intended for use with Renesas products. No other uses are authorized. This
5 * software is owned by Renesas Electronics Corporation and is protected under
6 * all applicable laws, including copyright laws.
7 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
8 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
9 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
10 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
11 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
12 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
13 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
14 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
15 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
16 * Renesas reserves the right, without notice, to make changes to this software
17 * and to discontinue the availability of this software. By using this software,
18 * you agree to the additional terms and conditions found by accessing the
20 * http://www.renesas.com/disclaimer*
21 * Copyright (C) 2013-2014 Renesas Electronics Corporation. All rights reserved.
22 *******************************************************************************/
23 /*******************************************************************************
24 * File Name : cpg_iodefine.h
27 * Description : Definition of I/O Register (V1.00a)
28 ******************************************************************************/
29 #ifndef CPG_IODEFINE_H
30 #define CPG_IODEFINE_H
31 /* ->SEC M1.10.1 : Not magic number */
35 volatile uint16_t FRQCR; /* FRQCR */
36 volatile uint8_t dummy319[2]; /* */
37 volatile uint16_t FRQCR2; /* FRQCR2 */
38 volatile uint8_t dummy320[2]; /* */
39 volatile uint8_t CPUSTS; /* CPUSTS */
40 volatile uint8_t dummy321[7]; /* */
41 volatile uint8_t STBCR1; /* STBCR1 */
42 volatile uint8_t dummy322[3]; /* */
43 volatile uint8_t STBCR2; /* STBCR2 */
44 volatile uint8_t dummy323[11]; /* */
45 volatile uint8_t STBREQ1; /* STBREQ1 */
46 volatile uint8_t dummy324[3]; /* */
47 volatile uint8_t STBREQ2; /* STBREQ2 */
48 volatile uint8_t dummy325[11]; /* */
49 volatile uint8_t STBACK1; /* STBACK1 */
50 volatile uint8_t dummy326[3]; /* */
51 volatile uint8_t STBACK2; /* STBACK2 */
52 volatile uint8_t dummy327[955]; /* */
53 /* start of struct st_cpg_from_syscr1 */
54 volatile uint8_t SYSCR1; /* SYSCR1 */
55 volatile uint8_t dummy328[3]; /* */
56 /* end of struct st_cpg_from_syscr1 */
57 /* start of struct st_cpg_from_syscr1 */
58 volatile uint8_t SYSCR2; /* SYSCR2 */
59 volatile uint8_t dummy329[3]; /* */
60 /* end of struct st_cpg_from_syscr1 */
61 /* start of struct st_cpg_from_syscr1 */
62 volatile uint8_t SYSCR3; /* SYSCR3 */
63 volatile uint8_t dummy3300[3]; /* */
64 /* end of struct st_cpg_from_syscr1 */
65 volatile uint8_t dummy3301[20]; /* */
66 /* start of struct st_cpg_from_stbcr3 */
67 volatile uint8_t STBCR3; /* STBCR3 */
68 volatile uint8_t dummy331[3]; /* */
69 /* end of struct st_cpg_from_stbcr3 */
70 /* start of struct st_cpg_from_stbcr3 */
71 volatile uint8_t STBCR4; /* STBCR4 */
72 volatile uint8_t dummy332[3]; /* */
73 /* end of struct st_cpg_from_stbcr3 */
74 /* start of struct st_cpg_from_stbcr3 */
75 volatile uint8_t STBCR5; /* STBCR5 */
76 volatile uint8_t dummy333[3]; /* */
77 /* end of struct st_cpg_from_stbcr3 */
78 /* start of struct st_cpg_from_stbcr3 */
79 volatile uint8_t STBCR6; /* STBCR6 */
80 volatile uint8_t dummy334[3]; /* */
81 /* end of struct st_cpg_from_stbcr3 */
82 /* start of struct st_cpg_from_stbcr3 */
83 volatile uint8_t STBCR7; /* STBCR7 */
84 volatile uint8_t dummy335[3]; /* */
85 /* end of struct st_cpg_from_stbcr3 */
86 /* start of struct st_cpg_from_stbcr3 */
87 volatile uint8_t STBCR8; /* STBCR8 */
88 volatile uint8_t dummy336[3]; /* */
89 /* end of struct st_cpg_from_stbcr3 */
90 /* start of struct st_cpg_from_stbcr3 */
91 volatile uint8_t STBCR9; /* STBCR9 */
92 volatile uint8_t dummy337[3]; /* */
93 /* end of struct st_cpg_from_stbcr3 */
94 /* start of struct st_cpg_from_stbcr3 */
95 volatile uint8_t STBCR10; /* STBCR10 */
96 volatile uint8_t dummy338[3]; /* */
97 /* end of struct st_cpg_from_stbcr3 */
98 /* start of struct st_cpg_from_stbcr3 */
99 volatile uint8_t STBCR11; /* STBCR11 */
100 volatile uint8_t dummy339[3]; /* */
101 /* end of struct st_cpg_from_stbcr3 */
102 /* start of struct st_cpg_from_stbcr3 */
103 volatile uint8_t STBCR12; /* STBCR12 */
104 volatile uint8_t dummy3400[3]; /* */
105 /* end of struct st_cpg_from_stbcr3 */
106 volatile uint8_t dummy3401[24]; /* */
107 /* start of struct st_cpg_from_swrstcr1 */
108 volatile uint8_t SWRSTCR1; /* SWRSTCR1 */
109 volatile uint8_t dummy341[3]; /* */
110 /* end of struct st_cpg_from_swrstcr1 */
111 /* start of struct st_cpg_from_swrstcr1 */
112 volatile uint8_t SWRSTCR2; /* SWRSTCR2 */
113 volatile uint8_t dummy342[3]; /* */
114 /* end of struct st_cpg_from_swrstcr1 */
115 /* start of struct st_cpg_from_swrstcr1 */
116 volatile uint8_t SWRSTCR3; /* SWRSTCR3 */
117 volatile uint8_t dummy3430[3]; /* */
118 /* end of struct st_cpg_from_swrstcr1 */
119 volatile uint8_t dummy3431[4]; /* */
120 volatile uint8_t STBCR13; /* STBCR13 */
121 volatile uint8_t dummy344[70543]; /* */
122 volatile uint8_t RRAMKP; /* RRAMKP */
123 volatile uint8_t dummy345[1]; /* */
124 volatile uint8_t DSCTR; /* DSCTR */
125 volatile uint8_t dummy346[1]; /* */
126 volatile uint16_t DSSSR; /* DSSSR */
127 volatile uint16_t DSESR; /* DSESR */
128 volatile uint16_t DSFR; /* DSFR */
129 volatile uint8_t dummy347[6]; /* */
130 volatile uint8_t XTALCTR; /* XTALCTR */
134 struct st_cpg_from_syscr1
136 volatile uint8_t SYSCR1; /* SYSCR1 */
137 volatile uint8_t dummy1[3]; /* */
141 struct st_cpg_from_stbcr3
143 volatile uint8_t STBCR3; /* STBCR3 */
144 volatile uint8_t dummy1[3]; /* */
148 struct st_cpg_from_swrstcr1
150 volatile uint8_t SWRSTCR1; /* SWRSTCR1 */
151 volatile uint8_t dummy1[3]; /* */
155 #define CPG (*(struct st_cpg *)0xFCFE0010uL) /* CPG */
158 /* Start of channnel array defines of CPG */
160 /* Channnel array defines of CPG_FROM_SWRSTCR1_ARRAY */
161 /*(Sample) value = CPG_FROM_SWRSTCR1_ARRAY[ channel ]->SWRSTCR1; */
162 #define CPG_FROM_SWRSTCR1_ARRAY_COUNT 3
163 #define CPG_FROM_SWRSTCR1_ARRAY_ADDRESS_LIST \
164 { /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */ \
165 &CPG_FROM_SWRSTCR1, &CPG_FROM_SWRSTCR2, &CPG_FROM_SWRSTCR3 \
166 } /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */ /* { } is for MISRA 19.4 */
167 #define CPG_FROM_SWRSTCR1 (*(struct st_cpg_from_swrstcr1 *)&CPG.SWRSTCR1) /* CPG_FROM_SWRSTCR1 */
168 #define CPG_FROM_SWRSTCR2 (*(struct st_cpg_from_swrstcr1 *)&CPG.SWRSTCR2) /* CPG_FROM_SWRSTCR2 */
169 #define CPG_FROM_SWRSTCR3 (*(struct st_cpg_from_swrstcr1 *)&CPG.SWRSTCR3) /* CPG_FROM_SWRSTCR3 */
172 /* Channnel array defines of CPG_FROM_STBCR3_ARRAY */
173 /*(Sample) value = CPG_FROM_STBCR3_ARRAY[ channel ]->STBCR3; */
174 #define CPG_FROM_STBCR3_ARRAY_COUNT 10
175 #define CPG_FROM_STBCR3_ARRAY_ADDRESS_LIST \
176 { /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */ \
177 &CPG_FROM_STBCR3, &CPG_FROM_STBCR4, &CPG_FROM_STBCR5, &CPG_FROM_STBCR6, &CPG_FROM_STBCR7, &CPG_FROM_STBCR8, &CPG_FROM_STBCR9, &CPG_FROM_STBCR10, \
178 &CPG_FROM_STBCR11, &CPG_FROM_STBCR12 \
179 } /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */ /* { } is for MISRA 19.4 */
180 #define CPG_FROM_STBCR3 (*(struct st_cpg_from_stbcr3 *)&CPG.STBCR3) /* CPG_FROM_STBCR3 */
181 #define CPG_FROM_STBCR4 (*(struct st_cpg_from_stbcr3 *)&CPG.STBCR4) /* CPG_FROM_STBCR4 */
182 #define CPG_FROM_STBCR5 (*(struct st_cpg_from_stbcr3 *)&CPG.STBCR5) /* CPG_FROM_STBCR5 */
183 #define CPG_FROM_STBCR6 (*(struct st_cpg_from_stbcr3 *)&CPG.STBCR6) /* CPG_FROM_STBCR6 */
184 #define CPG_FROM_STBCR7 (*(struct st_cpg_from_stbcr3 *)&CPG.STBCR7) /* CPG_FROM_STBCR7 */
185 #define CPG_FROM_STBCR8 (*(struct st_cpg_from_stbcr3 *)&CPG.STBCR8) /* CPG_FROM_STBCR8 */
186 #define CPG_FROM_STBCR9 (*(struct st_cpg_from_stbcr3 *)&CPG.STBCR9) /* CPG_FROM_STBCR9 */
187 #define CPG_FROM_STBCR10 (*(struct st_cpg_from_stbcr3 *)&CPG.STBCR10) /* CPG_FROM_STBCR10 */
188 #define CPG_FROM_STBCR11 (*(struct st_cpg_from_stbcr3 *)&CPG.STBCR11) /* CPG_FROM_STBCR11 */
189 #define CPG_FROM_STBCR12 (*(struct st_cpg_from_stbcr3 *)&CPG.STBCR12) /* CPG_FROM_STBCR12 */
192 /* Channnel array defines of CPG_FROM_SYSCR1_ARRAY */
193 /*(Sample) value = CPG_FROM_SYSCR1_ARRAY[ channel ]->SYSCR1; */
194 #define CPG_FROM_SYSCR1_ARRAY_COUNT 3
195 #define CPG_FROM_SYSCR1_ARRAY_ADDRESS_LIST \
196 { /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */ \
197 &CPG_FROM_SYSCR1, &CPG_FROM_SYSCR2, &CPG_FROM_SYSCR3 \
198 } /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */ /* { } is for MISRA 19.4 */
199 #define CPG_FROM_SYSCR1 (*(struct st_cpg_from_syscr1 *)&CPG.SYSCR1) /* CPG_FROM_SYSCR1 */
200 #define CPG_FROM_SYSCR2 (*(struct st_cpg_from_syscr1 *)&CPG.SYSCR2) /* CPG_FROM_SYSCR2 */
201 #define CPG_FROM_SYSCR3 (*(struct st_cpg_from_syscr1 *)&CPG.SYSCR3) /* CPG_FROM_SYSCR3 */
203 /* End of channnel array defines of CPG */
206 #define CPGFRQCR CPG.FRQCR
207 #define CPGFRQCR2 CPG.FRQCR2
208 #define CPGCPUSTS CPG.CPUSTS
209 #define CPGSTBCR1 CPG.STBCR1
210 #define CPGSTBCR2 CPG.STBCR2
211 #define CPGSTBREQ1 CPG.STBREQ1
212 #define CPGSTBREQ2 CPG.STBREQ2
213 #define CPGSTBACK1 CPG.STBACK1
214 #define CPGSTBACK2 CPG.STBACK2
215 #define CPGSYSCR1 CPG.SYSCR1
216 #define CPGSYSCR2 CPG.SYSCR2
217 #define CPGSYSCR3 CPG.SYSCR3
218 #define CPGSTBCR3 CPG.STBCR3
219 #define CPGSTBCR4 CPG.STBCR4
220 #define CPGSTBCR5 CPG.STBCR5
221 #define CPGSTBCR6 CPG.STBCR6
222 #define CPGSTBCR7 CPG.STBCR7
223 #define CPGSTBCR8 CPG.STBCR8
224 #define CPGSTBCR9 CPG.STBCR9
225 #define CPGSTBCR10 CPG.STBCR10
226 #define CPGSTBCR11 CPG.STBCR11
227 #define CPGSTBCR12 CPG.STBCR12
228 #define CPGSWRSTCR1 CPG.SWRSTCR1
229 #define CPGSWRSTCR2 CPG.SWRSTCR2
230 #define CPGSWRSTCR3 CPG.SWRSTCR3
231 #define CPGSTBCR13 CPG.STBCR13
232 #define CPGRRAMKP CPG.RRAMKP
233 #define CPGDSCTR CPG.DSCTR
234 #define CPGDSSSR CPG.DSSSR
235 #define CPGDSESR CPG.DSESR
236 #define CPGDSFR CPG.DSFR
237 #define CPGXTALCTR CPG.XTALCTR