drv_config.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /*
  2. * Copyright (c) 2006-2021, 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)) || (defined(SOC_SERIES_R7FA6M4))
  35. #include "ra6m4/uart_config.h"
  36. #ifdef BSP_USING_ADC
  37. #include "ra6m4/adc_config.h"
  38. #endif
  39. #ifdef BSP_USING_DAC
  40. #include "ra6m4/dac_config.h"
  41. #endif
  42. #ifdef BSP_USING_PWM
  43. #include "ra6m4/pwm_config.h"
  44. #endif
  45. #ifdef BSP_USING_CAN
  46. #include "ra6m4/can_config.h"
  47. #endif
  48. #endif /* SOC_SERIES_R7FA6M4 */
  49. #ifdef SOC_SERIES_R7FA2L1
  50. #include "ra2l1/uart_config.h"
  51. #ifdef BSP_USING_ADC
  52. #include "ra2l1/adc_config.h"
  53. #endif
  54. #ifdef BSP_USING_DAC
  55. #include "ra2l1/dac_config.h"
  56. #endif
  57. #ifdef BSP_USING_PWM
  58. #include "ra2l1/pwm_config.h"
  59. #endif
  60. #ifdef BSP_USING_CAN
  61. #include "ra2l1/can_config.h"
  62. #endif
  63. #endif /* SOC_SERIES_R7FA2L1 */
  64. #ifdef SOC_SERIES_R7FA4M2
  65. #include "ra4m2/uart_config.h"
  66. #ifdef BSP_USING_ADC
  67. #include "ra4m2/adc_config.h"
  68. #endif
  69. #ifdef BSP_USING_DAC
  70. #include "ra4m2/dac_config.h"
  71. #endif
  72. #ifdef BSP_USING_PWM
  73. #include "ra4m2/pwm_config.h"
  74. #endif
  75. #ifdef BSP_USING_CAN
  76. #include "ra4m2/can_config.h"
  77. #endif
  78. #endif /* SOC_SERIES_R7FA4M2 */
  79. #ifdef __cplusplus
  80. }
  81. #endif
  82. #endif /* __DRV_CONFIG_H__ */