drv_config.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /*
  2. * Copyright (c) 2006-2023, 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. #ifndef __DRV_CONFIG_H__
  12. #define __DRV_CONFIG_H__
  13. #include "board.h"
  14. #include <rtthread.h>
  15. #ifdef __cplusplus
  16. extern "C"
  17. {
  18. #endif
  19. #ifdef SOC_SERIES_R7FA6M5
  20. #include "ra6m5/uart_config.h"
  21. #ifdef BSP_USING_ADC
  22. #include "ra6m5/adc_config.h"
  23. #endif
  24. #ifdef BSP_USING_DAC
  25. #include "ra6m5/dac_config.h"
  26. #endif
  27. #ifdef BSP_USING_PWM
  28. #include "ra6m5/pwm_config.h"
  29. #endif
  30. #ifdef BSP_USING_CAN
  31. #include "ra6m5/can_config.h"
  32. #endif
  33. #endif /* SOC_SERIES_R7FA6M5 */
  34. #if defined(SOC_SERIES_R7FA6M3)
  35. #include "ra6m3/uart_config.h"
  36. #ifdef BSP_USING_ADC
  37. #include "ra6m3/adc_config.h"
  38. #endif
  39. #ifdef BSP_USING_DAC
  40. #include "ra6m3/dac_config.h"
  41. #endif
  42. #ifdef BSP_USING_PWM
  43. #include "ra6m3/pwm_config.h"
  44. #endif
  45. #ifdef BSP_USING_TIM
  46. #include "ra6m3/timer_config.h"
  47. #endif
  48. #ifdef BSP_USING_CAN
  49. #include "ra6m3/can_config.h"
  50. #endif
  51. #endif /* SOC_SERIES_R7FA6M3 */
  52. #if defined(SOC_SERIES_R7FA6M4)
  53. #include "ra6m4/uart_config.h"
  54. #ifdef BSP_USING_ADC
  55. #include "ra6m4/adc_config.h"
  56. #endif
  57. #ifdef BSP_USING_DAC
  58. #include "ra6m4/dac_config.h"
  59. #endif
  60. #ifdef BSP_USING_PWM
  61. #include "ra6m4/pwm_config.h"
  62. #endif
  63. #ifdef BSP_USING_CAN
  64. #include "ra6m4/can_config.h"
  65. #endif
  66. #endif /* SOC_SERIES_R7FA6M4 */
  67. #ifdef SOC_SERIES_R7FA2L1
  68. #include "ra2l1/uart_config.h"
  69. #ifdef BSP_USING_ADC
  70. #include "ra2l1/adc_config.h"
  71. #endif
  72. #ifdef BSP_USING_DAC
  73. #include "ra2l1/dac_config.h"
  74. #endif
  75. #ifdef BSP_USING_PWM
  76. #include "ra2l1/pwm_config.h"
  77. #endif
  78. #ifdef BSP_USING_CAN
  79. #include "ra2l1/can_config.h"
  80. #endif
  81. #endif /* SOC_SERIES_R7FA2L1 */
  82. #ifdef SOC_SERIES_R7FA4M2
  83. #include "ra4m2/uart_config.h"
  84. #ifdef BSP_USING_ADC
  85. #include "ra4m2/adc_config.h"
  86. #endif
  87. #ifdef BSP_USING_DAC
  88. #include "ra4m2/dac_config.h"
  89. #endif
  90. #ifdef BSP_USING_PWM
  91. #include "ra4m2/pwm_config.h"
  92. #endif
  93. #ifdef BSP_USING_CAN
  94. #include "ra4m2/can_config.h"
  95. #endif
  96. #endif /* SOC_SERIES_R7FA4M2 */
  97. #ifdef SOC_SERIES_R7FA8M85
  98. #include "ra8/uart_config.h"
  99. #ifdef BSP_USING_PWM
  100. #include "ra8/pwm_config.h"
  101. #endif
  102. #ifdef BSP_USING_ADC
  103. #include "ra8/adc_config.h"
  104. #endif
  105. #ifdef BSP_USING_DAC
  106. #include "ra8/dac_config.h"
  107. #endif
  108. #endif /* SOC_SERIES_R7FA8M85 */
  109. #ifdef __cplusplus
  110. }
  111. #endif
  112. #endif /* __DRV_CONFIG_H__ */