16
16
*
17
17
* Copyright (C) 2020 Renesas Electronics Corporation. All rights reserved.
18
18
*********************************************************************************************************************/
19
+ /* Copyright (c) 2020 Renesas Electronics Corporation.
20
+ * SPDX-License-Identifier: Apache-2.0
21
+ *
22
+ * Licensed under the Apache License, Version 2.0 (the "License");
23
+ * you may not use this file except in compliance with the License.
24
+ * You may obtain a copy of the License at
25
+ *
26
+ * http://www.apache.org/licenses/LICENSE-2.0
27
+ *
28
+ * Unless required by applicable law or agreed to in writing, software
29
+ * distributed under the License is distributed on an "AS IS" BASIS,
30
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31
+ * See the License for the specific language governing permissions and
32
+ * limitations under the License.
33
+ */
19
34
/**********************************************************************************************************************
20
35
* File Name : r_octabus_lld_rza2m_api.h
21
36
*********************************************************************************************************************/
51
66
* @enum e_octabus_init_control_t
52
67
* emum of Execute initialize function project setting
53
68
*/
54
- typedef enum
55
- {
69
+ typedef enum {
56
70
OCTABUS_NO_INIT = (0 ), /*!< Not execute initialize function*/
57
71
OCTABUS_INIT_AT_LOADER = (1 ), /*!< Execute initialize function on loader */
58
72
OCTABUS_INIT_AT_APP = (2 ), /*!< Execute initialize function on application */
@@ -62,8 +76,7 @@ typedef enum
62
76
* @enum e_octabus_precycle_t
63
77
* emum of DVnPC bit of CDSR
64
78
*/
65
- typedef enum
66
- {
79
+ typedef enum {
67
80
OCTABUS_PRECYCLE_DISABLE = (0 ), /*!< (default value) */
68
81
OCTABUS_PRECYCLE_ENABLE = (1 ), /*!< */
69
82
} e_octabus_precycle_t ;
@@ -72,8 +85,7 @@ typedef enum
72
85
* @enum e_octabus_ttype_t
73
86
* emum of DVnTTYP bit of CDSR
74
87
*/
75
- typedef enum
76
- {
88
+ typedef enum {
77
89
OCTABUS_TTYPE_SPI = (0 ), /*!< */
78
90
OCTABUS_TTYPE_SOPI = (1 ), /*!< */
79
91
OCTABUS_TTYPE_DOPI = (2 ), /*!< (default value) */
@@ -84,8 +96,7 @@ typedef enum
84
96
* @enum e_octabus_dqs_ena_cnt_t
85
97
* emum of DQSExxx bit of MDTR
86
98
*/
87
- typedef enum
88
- {
99
+ typedef enum {
89
100
OCTABUS_DQSENA_1_CYCLE = (0x0 ), /*!< */
90
101
OCTABUS_DQSENA_2_CYCLE = (0x1 ), /*!< */
91
102
OCTABUS_DQSENA_3_CYCLE = (0x2 ), /*!< */
@@ -108,8 +119,7 @@ typedef enum
108
119
* @enum e_octabus_dvrdlo_t
109
120
* emum of DVRDLOn field of DRCSTR
110
121
*/
111
- typedef enum
112
- {
122
+ typedef enum {
113
123
OCTABUS_DVRDLO_DOPI_1P5_CYCLE = (0 ), /*!< 1.5 clock cycle */
114
124
OCTABUS_DVRDLO_DOPI_2P5_CYCLE = (1 ), /*!< 2.5 clock cycle */
115
125
OCTABUS_DVRDLO_DOPI_3P5_CYCLE = (2 ), /*!< 3.5 clock cycle */
@@ -124,8 +134,7 @@ typedef enum
124
134
* @enum e_octabus_dvrdhi_t
125
135
* emum of DVRDHIn field of DRCSTR
126
136
*/
127
- typedef enum
128
- {
137
+ typedef enum {
129
138
OCTABUS_DVRDHI_DOPI_6P5_CYCLE = (5 ), /*!< 6.5 clock cycle */
130
139
OCTABUS_DVRDHI_DOPI_7P5_CYCLE = (6 ), /*!< 7.5 clock cycle */
131
140
OCTABUS_DVRDHI_DOPI_8P5_CYCLE = (7 ), /*!< 8.5 clock cycle */
@@ -143,8 +152,7 @@ typedef enum
143
152
* @enum e_octabus_dvrcmd_t
144
153
* emum of DVRDCMDn field of DRCSTR
145
154
*/
146
- typedef enum
147
- {
155
+ typedef enum {
148
156
OCTABUS_DVRDCMD_2_CYCLE = (0 ), /*!< 2 clock cycle */
149
157
OCTABUS_DVRDCMD_5_CYCLE = (1 ), /*!< 5 clock cycle */
150
158
OCTABUS_DVRDCMD_7_CYCLE = (2 ), /*!< 7 clock cycle */
@@ -159,8 +167,7 @@ typedef enum
159
167
* @enum e_octabus_dvwlo_t
160
168
* emum of DVWLOn field of DWCSTR
161
169
*/
162
- typedef enum
163
- {
170
+ typedef enum {
164
171
OCTABUS_DVWLO_DOPI_1P5_CYCLE = (0 ), /*!< 1.5 clock cycle */
165
172
OCTABUS_DVWLO_DOPI_2P5_CYCLE = (1 ), /*!< 2.5 clock cycle */
166
173
OCTABUS_DVWLO_DOPI_3P5_CYCLE = (2 ), /*!< 3.5 clock cycle */
@@ -175,8 +182,7 @@ typedef enum
175
182
* @enum e_octabus_dvwhi_t
176
183
* emum of DVWHIn field of DWCSTR
177
184
*/
178
- typedef enum
179
- {
185
+ typedef enum {
180
186
OCTABUS_DVWHI_DOPI_1P5_CYCLE = (0 ), /*!< 1.5 clock cycle */
181
187
OCTABUS_DVWHI_DOPI_2P5_CYCLE = (1 ), /*!< 2.5 clock cycle */
182
188
OCTABUS_DVWHI_DOPI_3P5_CYCLE = (2 ), /*!< 3.5 clock cycle */
@@ -199,8 +205,7 @@ typedef enum
199
205
* @enum e_octabus_dvwcmd_t
200
206
* emum of DVWCMDn field of DWCSTR
201
207
*/
202
- typedef enum
203
- {
208
+ typedef enum {
204
209
OCTABUS_DVWCMD_2_CYCLE = (0 ), /*!< 2 clock cycle */
205
210
OCTABUS_DVWCMD_5_CYCLE = (1 ), /*!< 5 clock cycle */
206
211
OCTABUS_DVWCMD_7_CYCLE = (2 ), /*!< 7 clock cycle */
@@ -215,16 +220,14 @@ typedef enum
215
220
* @enum e_octabus_byte_order_t
216
221
* emum of MxOn field of MRWCSR
217
222
*/
218
- typedef enum
219
- {
223
+ typedef enum {
220
224
OCTABUS_BYTE_ORDER_B0B1B2B3 = (0 ), /*!< Byte order is byte0, byte1, byte2, byte3 */
221
225
OCTABUS_BYTE_ORDER_B1B0B3B2 = (1 ), /*!< Byte order is byte1, byte0, byte3, byte2 */
222
226
} e_octabus_byte_order_t ;
223
227
224
228
225
229
226
- typedef struct
227
- {
230
+ typedef struct {
228
231
e_octabus_init_control_t init_flag0 ; /*!< Initialize procedure excute project */
229
232
e_octabus_init_control_t init_flag1 ; /*!< Initialize procedure excute project */
230
233
uint32_t devsize1 ; /*!< Size of RAM(Byte) */
@@ -254,8 +257,7 @@ typedef struct
254
257
uint32_t acar1 ; /*!< Auto-Calibration Address value of RAM */
255
258
} st_octabus_cfg_t ;
256
259
257
- typedef struct
258
- {
260
+ typedef struct {
259
261
uint32_t dcr_value ;
260
262
uint32_t dar_value ;
261
263
uint32_t dcsr_value ;
@@ -325,7 +327,7 @@ int_t R_OCTABUS_AutoCalib(const st_octabus_cfg_t *p_cfg);
325
327
* @fn R_OCTABUS_WriteConfigMode
326
328
*
327
329
* @brief Write data in configuration mode
328
-
330
+
329
331
* @param[in] p_config : register setting data for configuration mode
330
332
* @param[in] write_value : write data
331
333
* @retval none
0 commit comments