Skip to content

Commit f97ad61

Browse files
committed
[drivers][bsp][reness] Etherkit bsp and RZ series driver compatibility adaptation
1 parent 12fded1 commit f97ad61

File tree

147 files changed

+91919
-421
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+91919
-421
lines changed

.github/workflows/bsp_buildings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ jobs:
248248
- "renesas/ra8d1-vision-board"
249249
- "renesas/rzt2m_rsk"
250250
- "renesas/rzn2l_rsk"
251+
- "renesas/rzn2l_etherkit"
251252
- "frdm-k64f"
252253
- "xplorer4330/M4"
253254
- RTT_BSP: "nuvoton"

bsp/renesas/libraries/HAL_Drivers/SConscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ if GetDepend(['BSP_USING_TIM']):
5555
if GetDepend(['BSP_USING_ETH']):
5656
src += ['drv_eth.c']
5757

58-
if GetDepend(['BSP_USING_CAN']):
58+
if GetDepend(['BSP_USING_CAN']) or GetDepend('BSP_USING_CANFD'):
5959
src += ['drv_can.c']
6060

6161
if GetDepend(['BSP_USING_SDHI']):

bsp/renesas/libraries/HAL_Drivers/config/drv_config.h

Lines changed: 180 additions & 175 deletions
Original file line numberDiff line numberDiff line change
@@ -9,178 +9,183 @@
99
* 2022-12-7 Vandoul ADD ra4m2
1010
*/
1111

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_R7FA4M2
108-
#include "ra4m2/uart_config.h"
109-
110-
#ifdef BSP_USING_ADC
111-
#include "ra4m2/adc_config.h"
112-
#endif
113-
114-
#ifdef BSP_USING_DAC
115-
#include "ra4m2/dac_config.h"
116-
#endif
117-
118-
#ifdef BSP_USING_PWM
119-
#include "ra4m2/pwm_config.h"
120-
#endif
121-
122-
#ifdef BSP_USING_CAN
123-
#include "ra4m2/can_config.h"
124-
#endif
125-
#endif /* SOC_SERIES_R7FA4M2 */
126-
127-
#ifdef SOC_SERIES_R7FA8M85
128-
#include "ra8/uart_config.h"
129-
130-
#ifdef BSP_USING_PWM
131-
#include "ra8/pwm_config.h"
132-
#endif
133-
134-
#ifdef BSP_USING_ADC
135-
#include "ra8/adc_config.h"
136-
#endif
137-
138-
#ifdef BSP_USING_DAC
139-
#include "ra8/dac_config.h"
140-
#endif
141-
142-
#endif /* SOC_SERIES_R7FA8M85 */
143-
144-
#ifdef SOC_SERIES_R9A07G0
145-
#include "rzt/uart_config.h"
146-
#include "rzt/timer_config.h"
147-
148-
#ifdef BSP_USING_PWM
149-
#include "rzt/pwm_config.h"
150-
#endif
151-
152-
#ifdef BSP_USING_ADC
153-
#include "rzt/adc_config.h"
154-
#endif
155-
156-
#endif /* SOC_SERIES_R9A07G0 */
157-
158-
#if defined(SOC_SERIES_R7FA6E2)
159-
#include "ra6e2/uart_config.h"
160-
161-
#ifdef BSP_USING_ADC
162-
#include "ra6e2/adc_config.h"
163-
#endif
164-
165-
#ifdef BSP_USING_DAC
166-
#include "ra6e2/dac_config.h"
167-
#endif
168-
169-
#ifdef BSP_USING_PWM
170-
#include "ra6e2/pwm_config.h"
171-
#endif
172-
173-
#ifdef BSP_USING_TIM
174-
#include "ra6e2/timer_config.h"
175-
#endif
176-
177-
#ifdef BSP_USING_CAN
178-
#include "ra6e2/can_config.h"
179-
#endif
180-
#endif /* SOC_SERIES_R7FA6E2 */
181-
182-
#ifdef __cplusplus
183-
}
184-
#endif
185-
186-
#endif /* __DRV_CONFIG_H__ */
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_R7FA4M2
108+
#include "ra4m2/uart_config.h"
109+
110+
#ifdef BSP_USING_ADC
111+
#include "ra4m2/adc_config.h"
112+
#endif
113+
114+
#ifdef BSP_USING_DAC
115+
#include "ra4m2/dac_config.h"
116+
#endif
117+
118+
#ifdef BSP_USING_PWM
119+
#include "ra4m2/pwm_config.h"
120+
#endif
121+
122+
#ifdef BSP_USING_CAN
123+
#include "ra4m2/can_config.h"
124+
#endif
125+
#endif /* SOC_SERIES_R7FA4M2 */
126+
127+
#ifdef SOC_SERIES_R7FA8M85
128+
#include "ra8/uart_config.h"
129+
130+
#ifdef BSP_USING_PWM
131+
#include "ra8/pwm_config.h"
132+
#endif
133+
134+
#ifdef BSP_USING_ADC
135+
#include "ra8/adc_config.h"
136+
#endif
137+
138+
#ifdef BSP_USING_DAC
139+
#include "ra8/dac_config.h"
140+
#endif
141+
142+
#endif /* SOC_SERIES_R7FA8M85 */
143+
144+
#ifdef SOC_SERIES_R9A07G0
145+
#include "rzt/uart_config.h"
146+
#include "rzt/timer_config.h"
147+
148+
#ifdef BSP_USING_CANFD
149+
#include "rzt/canfd_config.h"
150+
#endif
151+
152+
#ifdef BSP_USING_PWM
153+
#include "rzt/pwm_config.h"
154+
#endif
155+
156+
#ifdef BSP_USING_ADC
157+
#include "rzt/adc_config.h"
158+
#endif
159+
160+
#endif /* SOC_SERIES_R9A07G0 */
161+
162+
#if defined(SOC_SERIES_R7FA6E2)
163+
#include "ra6e2/uart_config.h"
164+
165+
#ifdef BSP_USING_ADC
166+
#include "ra6e2/adc_config.h"
167+
#endif
168+
169+
#ifdef BSP_USING_DAC
170+
#include "ra6e2/dac_config.h"
171+
#endif
172+
173+
#ifdef BSP_USING_PWM
174+
#include "ra6e2/pwm_config.h"
175+
#endif
176+
177+
#ifdef BSP_USING_TIM
178+
#include "ra6e2/timer_config.h"
179+
#endif
180+
181+
#ifdef BSP_USING_CAN
182+
#include "ra6e2/can_config.h"
183+
#endif
184+
#endif /* SOC_SERIES_R7FA6E2 */
185+
186+
#ifdef __cplusplus
187+
}
188+
#endif
189+
190+
#endif /* __DRV_CONFIG_H__ */
191+

0 commit comments

Comments
 (0)