drv_config.h 4.3 KB

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