drv_config.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. */
  10. #ifndef __DRV_CONFIG_H__
  11. #define __DRV_CONFIG_H__
  12. #include "board.h"
  13. #include <rtthread.h>
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. #ifdef SOC_SERIES_R7FA6M4
  18. #include "ra6m4/uart_config.h"
  19. #ifdef BSP_USING_ADC
  20. #include "ra6m4/adc_config.h"
  21. #endif
  22. #ifdef BSP_USING_DAC
  23. #include "ra6m4/dac_config.h"
  24. #endif
  25. #ifdef BSP_USING_PWM
  26. #include "ra6m4/pwm_config.h"
  27. #endif
  28. #ifdef BSP_USING_CAN
  29. #include "ra6m4/can_config.h"
  30. #endif
  31. #endif/* SOC_SERIES_R7FA6M4 */
  32. #ifdef SOC_SERIES_R7FA2L1
  33. #include "ra2l1/uart_config.h"
  34. #ifdef BSP_USING_ADC
  35. #include "ra2l1/adc_config.h"
  36. #endif
  37. #ifdef BSP_USING_DAC
  38. #include "ra2l1/dac_config.h"
  39. #endif
  40. #ifdef BSP_USING_PWM
  41. #include "ra2l1/pwm_config.h"
  42. #endif
  43. #ifdef BSP_USING_CAN
  44. #include "ra2l1/can_config.h"
  45. #endif
  46. #endif/* SOC_SERIES_R7FA2L1 */
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50. #endif/* __DRV_CONFIG_H__ */