1 /*
2 * Copyright (c) 2006-2025, RT-Thread Development Team
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 *
6 * Change Logs:
7 * Date           Author            Notes
8 * 2021-07-29     KyleChan          first version
9 * 2022-12-7      Vandoul           ADD ra4m2
10 */
11 
12 #ifndef __DRV_CONFIG_H__
13 #define __DRV_CONFIG_H__
14 
15 #include "board.h"
16 #include <rtthread.h>
17 
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #endif
22 
23 #ifdef SOC_SERIES_R7FA6M5
24 #include "ra6m5/uart_config.h"
25 
26 #ifdef BSP_USING_ADC
27 #include "ra6m5/adc_config.h"
28 #endif
29 
30 #ifdef BSP_USING_DAC
31 #include "ra6m5/dac_config.h"
32 #endif
33 
34 #ifdef BSP_USING_PWM
35 #include "ra6m5/pwm_config.h"
36 #endif
37 
38 #ifdef BSP_USING_CAN
39 #include "ra6m5/can_config.h"
40 #endif
41 #endif /* SOC_SERIES_R7FA6M5 */
42 
43 #if defined(SOC_SERIES_R7FA6M3)
44 #include "ra6m3/uart_config.h"
45 
46 #ifdef BSP_USING_ADC
47 #include "ra6m3/adc_config.h"
48 #endif
49 
50 #ifdef BSP_USING_DAC
51 #include "ra6m3/dac_config.h"
52 #endif
53 
54 #ifdef BSP_USING_PWM
55 #include "ra6m3/pwm_config.h"
56 #endif
57 
58 #ifdef BSP_USING_TIM
59 #include "ra6m3/timer_config.h"
60 #endif
61 
62 #ifdef BSP_USING_CAN
63 #include "ra6m3/can_config.h"
64 #endif
65 #endif /* SOC_SERIES_R7FA6M3 */
66 
67 #if defined(SOC_SERIES_R7FA6M4)
68 #include "ra6m4/uart_config.h"
69 
70 #ifdef BSP_USING_ADC
71 #include "ra6m4/adc_config.h"
72 #endif
73 
74 #ifdef BSP_USING_DAC
75 #include "ra6m4/dac_config.h"
76 #endif
77 
78 #ifdef BSP_USING_PWM
79 #include "ra6m4/pwm_config.h"
80 #endif
81 
82 #ifdef BSP_USING_CAN
83 #include "ra6m4/can_config.h"
84 #endif
85 #endif /* SOC_SERIES_R7FA6M4 */
86 
87 #ifdef SOC_SERIES_R7FA2L1
88 #include "ra2l1/uart_config.h"
89 
90 #ifdef BSP_USING_ADC
91 #include "ra2l1/adc_config.h"
92 #endif
93 
94 #ifdef BSP_USING_DAC
95 #include "ra2l1/dac_config.h"
96 #endif
97 
98 #ifdef BSP_USING_PWM
99 #include "ra2l1/pwm_config.h"
100 #endif
101 
102 #ifdef BSP_USING_CAN
103 #include "ra2l1/can_config.h"
104 #endif
105 #endif /* SOC_SERIES_R7FA2L1 */
106 
107 #ifdef SOC_SERIES_R7FA4E2
108 #include "ra4e2/uart_config.h"
109 
110 #ifdef BSP_USING_ADC
111 #include "ra4e2/adc_config.h"
112 #endif
113 
114 #ifdef BSP_USING_DAC
115 #include "ra4ra4e2m2/dac_config.h"
116 #endif
117 
118 #ifdef BSP_USING_PWM
119 #include "ra4e2/pwm_config.h"
120 #endif
121 
122 #ifdef BSP_USING_CAN
123 #include "ra4e2/can_config.h"
124 #endif
125 #endif /* SOC_SERIES_R7FA4E2 */
126 
127 #ifdef SOC_SERIES_R7FA4M2
128 #include "ra4m2/uart_config.h"
129 
130 #ifdef BSP_USING_ADC
131 #include "ra4m2/adc_config.h"
132 #endif
133 
134 #ifdef BSP_USING_DAC
135 #include "ra4m2/dac_config.h"
136 #endif
137 
138 #ifdef BSP_USING_PWM
139 #include "ra4m2/pwm_config.h"
140 #endif
141 
142 #ifdef BSP_USING_CAN
143 #include "ra4m2/can_config.h"
144 #endif
145 #endif /* SOC_SERIES_R7FA4M2 */
146 
147 #ifdef SOC_SERIES_R7FA8M85
148 #include "ra8/uart_config.h"
149 
150 #ifdef BSP_USING_PWM
151 #include "ra8/pwm_config.h"
152 #endif
153 
154 #ifdef BSP_USING_ADC
155 #include "ra8/adc_config.h"
156 #endif
157 
158 #ifdef BSP_USING_DAC
159 #include "ra8/dac_config.h"
160 #endif
161 
162 #endif /* SOC_SERIES_R7FA8M85 */
163 
164 #ifdef SOC_SERIES_R9A07G0
165 #include "rzt/uart_config.h"
166 #include "rzt/timer_config.h"
167 
168 #ifdef BSP_USING_CANFD
169 #include "rzt/canfd_config.h"
170 #endif
171 
172 #ifdef BSP_USING_PWM
173 #include "rzt/pwm_config.h"
174 #endif
175 
176 #ifdef BSP_USING_ADC
177 #include "rzt/adc_config.h"
178 #endif
179 
180 #endif /* SOC_SERIES_R9A07G0 */
181 
182 #if defined(SOC_SERIES_R7FA6E2)
183 #include "ra6e2/uart_config.h"
184 
185 #ifdef BSP_USING_ADC
186 #include "ra6e2/adc_config.h"
187 #endif
188 
189 #ifdef BSP_USING_DAC
190 #include "ra6e2/dac_config.h"
191 #endif
192 
193 #ifdef BSP_USING_PWM
194 #include "ra6e2/pwm_config.h"
195 #endif
196 
197 #ifdef BSP_USING_TIM
198 #include "ra6e2/timer_config.h"
199 #endif
200 
201 #ifdef BSP_USING_CAN
202 #include "ra6e2/can_config.h"
203 #endif
204 #endif /* SOC_SERIES_R7FA6E2 */
205 
206 #ifdef __cplusplus
207 }
208 #endif
209 
210 #endif /* __DRV_CONFIG_H__ */
211 
212