drv_config.h 967 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. * 2022-11-09 shelton 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. #if defined(SOC_SERIES_AT32F403A) || defined (SOC_SERIES_AT32F407)
  18. #include "f403a_407/dma_config.h"
  19. #include "f403a_407/uart_config.h"
  20. #include "f403a_407/spi_config.h"
  21. #elif defined(SOC_SERIES_AT32F413)
  22. #include "f413/dma_config.h"
  23. #include "f413/uart_config.h"
  24. #include "f413/spi_config.h"
  25. #elif defined(SOC_SERIES_AT32F415)
  26. #include "f415/dma_config.h"
  27. #include "f415/uart_config.h"
  28. #include "f415/spi_config.h"
  29. #elif defined(SOC_SERIES_AT32F435) || defined (SOC_SERIES_AT32F437)
  30. #include "f435_437/dma_config.h"
  31. #include "f435_437/uart_config.h"
  32. #include "f435_437/spi_config.h"
  33. #endif
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37. #endif