summaryrefslogtreecommitdiff
path: root/bsp/renesas/libraries/HAL_Drivers/config/drv_config.h
blob: 0cd74a2e0135e997b06de6ef228bfb29cd4971d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author            Notes
 * 2021-07-29     KyleChan          first version
 * 2022-12-7      Vandoul           ADD ra4m2
 */

#ifndef __DRV_CONFIG_H__
#define __DRV_CONFIG_H__

#include "board.h"
#include <rtthread.h>

#ifdef __cplusplus
extern "C"
{
#endif

#ifdef SOC_SERIES_R7FA6M5
#include "ra6m5/uart_config.h"

#ifdef BSP_USING_ADC
#include "ra6m5/adc_config.h"
#endif

#ifdef BSP_USING_DAC
#include "ra6m5/dac_config.h"
#endif

#ifdef BSP_USING_PWM
#include "ra6m5/pwm_config.h"
#endif

#ifdef BSP_USING_CAN
#include "ra6m5/can_config.h"
#endif
#endif /* SOC_SERIES_R7FA6M5 */

#if (defined(SOC_SERIES_R7FA6M3)) || (defined(SOC_SERIES_R7FA6M4))
#include "ra6m4/uart_config.h"

#ifdef BSP_USING_ADC
#include "ra6m4/adc_config.h"
#endif

#ifdef BSP_USING_DAC
#include "ra6m4/dac_config.h"
#endif

#ifdef BSP_USING_PWM
#include "ra6m4/pwm_config.h"
#endif

#ifdef BSP_USING_CAN
#include "ra6m4/can_config.h"
#endif
#endif /* SOC_SERIES_R7FA6M4 */

#ifdef SOC_SERIES_R7FA2L1
#include "ra2l1/uart_config.h"

#ifdef BSP_USING_ADC
#include "ra2l1/adc_config.h"
#endif

#ifdef BSP_USING_DAC
#include "ra2l1/dac_config.h"
#endif

#ifdef BSP_USING_PWM
#include "ra2l1/pwm_config.h"
#endif

#ifdef BSP_USING_CAN
#include "ra2l1/can_config.h"
#endif
#endif /* SOC_SERIES_R7FA2L1 */

#ifdef SOC_SERIES_R7FA4M2
#include "ra4m2/uart_config.h"

#ifdef BSP_USING_ADC
#include "ra4m2/adc_config.h"
#endif

#ifdef BSP_USING_DAC
#include "ra4m2/dac_config.h"
#endif

#ifdef BSP_USING_PWM
#include "ra4m2/pwm_config.h"
#endif

#ifdef BSP_USING_CAN
#include "ra4m2/can_config.h"
#endif
#endif /* SOC_SERIES_R7FA4M2 */

#ifdef __cplusplus
}
#endif

#endif /* __DRV_CONFIG_H__ */