2022-12-07 11:13:25 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2022-11-09 shelton first version
|
2023-01-30 09:44:30 +08:00
|
|
|
* 2023-01-31 shelton add support f421/f425
|
2023-04-07 14:25:06 +08:00
|
|
|
* 2023-04-08 shelton add support f423
|
2023-11-09 16:38:19 +08:00
|
|
|
* 2023-10-18 shelton add support f402/f405
|
2024-04-30 13:11:18 +08:00
|
|
|
* 2024-04-12 shelton add support a403a and a423
|
2024-07-24 23:22:50 +08:00
|
|
|
* 2024-07-31 shelton add support hwi2c driver
|
2024-09-02 12:41:18 +08:00
|
|
|
* 2024-08-30 shelton add support m412 and m416
|
2022-12-07 11:13:25 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DRV_CONFIG_H__
|
|
|
|
#define __DRV_CONFIG_H__
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
2023-02-25 10:47:04 +08:00
|
|
|
#include "drv_common.h"
|
2022-12-07 11:13:25 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2024-04-30 13:11:18 +08:00
|
|
|
#if defined(SOC_SERIES_AT32A403A)
|
|
|
|
#include "a403a/dma_config.h"
|
|
|
|
#include "a403a/uart_config.h"
|
2024-07-24 23:22:50 +08:00
|
|
|
#include "a403a/i2c_config.h"
|
2024-04-30 13:11:18 +08:00
|
|
|
#include "a403a/spi_config.h"
|
|
|
|
#include "a403a/usb_config.h"
|
|
|
|
#include "a403a/dac_config.h"
|
|
|
|
#elif defined(SOC_SERIES_AT32A423)
|
|
|
|
#include "a423/dma_config.h"
|
|
|
|
#include "a423/uart_config.h"
|
2024-07-24 23:22:50 +08:00
|
|
|
#include "a423/i2c_config.h"
|
2024-04-30 13:11:18 +08:00
|
|
|
#include "a423/spi_config.h"
|
|
|
|
#include "a423/usb_config.h"
|
|
|
|
#include "a423/dac_config.h"
|
|
|
|
#elif defined(SOC_SERIES_AT32F402) || defined (SOC_SERIES_AT32F405)
|
2023-11-09 16:38:19 +08:00
|
|
|
#include "f402_405/dma_config.h"
|
|
|
|
#include "f402_405/uart_config.h"
|
2024-07-24 23:22:50 +08:00
|
|
|
#include "f402_405/i2c_config.h"
|
2023-11-09 16:38:19 +08:00
|
|
|
#include "f402_405/spi_config.h"
|
|
|
|
#include "f402_405/usb_config.h"
|
|
|
|
#elif defined(SOC_SERIES_AT32F403A) || defined (SOC_SERIES_AT32F407)
|
2022-12-07 11:13:25 +08:00
|
|
|
#include "f403a_407/dma_config.h"
|
|
|
|
#include "f403a_407/uart_config.h"
|
2024-07-24 23:22:50 +08:00
|
|
|
#include "f403a_407/i2c_config.h"
|
2022-12-07 11:13:25 +08:00
|
|
|
#include "f403a_407/spi_config.h"
|
2023-02-25 10:47:04 +08:00
|
|
|
#include "f403a_407/usb_config.h"
|
2023-04-18 14:45:45 +08:00
|
|
|
#include "f403a_407/dac_config.h"
|
2022-12-07 11:13:25 +08:00
|
|
|
#elif defined(SOC_SERIES_AT32F413)
|
|
|
|
#include "f413/dma_config.h"
|
|
|
|
#include "f413/uart_config.h"
|
2024-07-24 23:22:50 +08:00
|
|
|
#include "f413/i2c_config.h"
|
2022-12-07 11:13:25 +08:00
|
|
|
#include "f413/spi_config.h"
|
2023-02-25 10:47:04 +08:00
|
|
|
#include "f413/usb_config.h"
|
2022-12-07 11:13:25 +08:00
|
|
|
#elif defined(SOC_SERIES_AT32F415)
|
|
|
|
#include "f415/dma_config.h"
|
|
|
|
#include "f415/uart_config.h"
|
2024-07-24 23:22:50 +08:00
|
|
|
#include "f415/i2c_config.h"
|
2022-12-07 11:13:25 +08:00
|
|
|
#include "f415/spi_config.h"
|
2023-02-25 10:47:04 +08:00
|
|
|
#include "f415/usb_config.h"
|
2023-01-30 09:44:30 +08:00
|
|
|
#elif defined(SOC_SERIES_AT32F421)
|
|
|
|
#include "f421/dma_config.h"
|
|
|
|
#include "f421/uart_config.h"
|
2024-07-24 23:22:50 +08:00
|
|
|
#include "f421/i2c_config.h"
|
2023-01-30 09:44:30 +08:00
|
|
|
#include "f421/spi_config.h"
|
2023-04-07 14:25:06 +08:00
|
|
|
#elif defined(SOC_SERIES_AT32F423)
|
|
|
|
#include "f423/dma_config.h"
|
|
|
|
#include "f423/uart_config.h"
|
2024-07-24 23:22:50 +08:00
|
|
|
#include "f423/i2c_config.h"
|
2023-04-07 14:25:06 +08:00
|
|
|
#include "f423/spi_config.h"
|
|
|
|
#include "f423/usb_config.h"
|
2023-04-18 14:45:45 +08:00
|
|
|
#include "f423/dac_config.h"
|
2023-01-30 09:44:30 +08:00
|
|
|
#elif defined(SOC_SERIES_AT32F425)
|
|
|
|
#include "f425/dma_config.h"
|
|
|
|
#include "f425/uart_config.h"
|
2024-07-24 23:22:50 +08:00
|
|
|
#include "f425/i2c_config.h"
|
2023-01-30 09:44:30 +08:00
|
|
|
#include "f425/spi_config.h"
|
2023-02-25 10:47:04 +08:00
|
|
|
#include "f425/usb_config.h"
|
2022-12-07 11:13:25 +08:00
|
|
|
#elif defined(SOC_SERIES_AT32F435) || defined (SOC_SERIES_AT32F437)
|
|
|
|
#include "f435_437/dma_config.h"
|
|
|
|
#include "f435_437/uart_config.h"
|
2024-07-24 23:22:50 +08:00
|
|
|
#include "f435_437/i2c_config.h"
|
2022-12-07 11:13:25 +08:00
|
|
|
#include "f435_437/spi_config.h"
|
2023-02-25 10:47:04 +08:00
|
|
|
#include "f435_437/usb_config.h"
|
2023-04-18 14:45:45 +08:00
|
|
|
#include "f435_437/dac_config.h"
|
2024-09-02 12:41:18 +08:00
|
|
|
#elif defined(SOC_SERIES_AT32M412) || defined (SOC_SERIES_AT32M416)
|
|
|
|
#include "m412_416/can_config.h"
|
|
|
|
#include "m412_416/dma_config.h"
|
|
|
|
#include "m412_416/uart_config.h"
|
|
|
|
#include "m412_416/i2c_config.h"
|
|
|
|
#include "m412_416/spi_config.h"
|
|
|
|
#include "m412_416/dac_config.h"
|
2022-12-07 11:13:25 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|