2018-11-29 17:00:22 +08:00
|
|
|
/*
|
2023-01-09 10:20:16 +08:00
|
|
|
* Copyright (c) 2006-2023, RT-Thread Development Team
|
2018-11-29 17:00:22 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
2018-12-26 10:43:16 +08:00
|
|
|
* 2018-10-30 SummerGift first version
|
2020-10-14 15:02:23 +08:00
|
|
|
* 2020-10-14 Dozingfiretruck Porting for stm32wbxx
|
2018-11-29 17:00:22 +08:00
|
|
|
*/
|
2021-03-08 22:40:39 +08:00
|
|
|
|
2018-11-29 17:00:22 +08:00
|
|
|
#ifndef __DRV_CONFIG_H__
|
|
|
|
#define __DRV_CONFIG_H__
|
|
|
|
|
|
|
|
#include <board.h>
|
2023-12-25 02:10:46 +08:00
|
|
|
#include <rtdevice.h>
|
2018-11-29 17:00:22 +08:00
|
|
|
|
2019-01-09 10:10:39 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2018-12-26 10:43:16 +08:00
|
|
|
#if defined(SOC_SERIES_STM32F0)
|
2019-01-08 11:58:57 +08:00
|
|
|
#include "f0/dma_config.h"
|
2018-12-26 10:43:16 +08:00
|
|
|
#include "f0/uart_config.h"
|
|
|
|
#include "f0/spi_config.h"
|
|
|
|
#include "f0/tim_config.h"
|
|
|
|
#include "f0/pwm_config.h"
|
|
|
|
#include "f0/adc_config.h"
|
|
|
|
#elif defined(SOC_SERIES_STM32F1)
|
2019-01-08 11:58:57 +08:00
|
|
|
#include "f1/dma_config.h"
|
2018-11-29 17:00:22 +08:00
|
|
|
#include "f1/uart_config.h"
|
|
|
|
#include "f1/spi_config.h"
|
2018-12-10 09:48:01 +08:00
|
|
|
#include "f1/adc_config.h"
|
2018-12-21 11:17:32 +08:00
|
|
|
#include "f1/tim_config.h"
|
|
|
|
#include "f1/sdio_config.h"
|
|
|
|
#include "f1/pwm_config.h"
|
2019-10-27 21:06:27 +08:00
|
|
|
#include "f1/usbd_config.h"
|
2019-08-30 15:38:05 +08:00
|
|
|
#include "f1/pulse_encoder_config.h"
|
2019-06-18 15:54:36 +08:00
|
|
|
#elif defined(SOC_SERIES_STM32F2)
|
|
|
|
#include "f2/dma_config.h"
|
|
|
|
#include "f2/uart_config.h"
|
|
|
|
#include "f2/spi_config.h"
|
|
|
|
#include "f2/adc_config.h"
|
|
|
|
#include "f2/tim_config.h"
|
|
|
|
#include "f2/sdio_config.h"
|
2021-03-08 22:40:39 +08:00
|
|
|
#include "f2/pwm_config.h"
|
2021-07-30 11:38:25 +08:00
|
|
|
#elif defined(SOC_SERIES_STM32F3)
|
|
|
|
#include "f3/uart_config.h"
|
|
|
|
#include "f3/tim_config.h"
|
|
|
|
#include "f3/pwm_config.h"
|
2021-08-05 16:00:35 +08:00
|
|
|
#include "f3/dma_config.h"
|
2018-11-29 17:00:22 +08:00
|
|
|
#elif defined(SOC_SERIES_STM32F4)
|
2019-01-08 11:58:57 +08:00
|
|
|
#include "f4/dma_config.h"
|
2018-11-29 17:00:22 +08:00
|
|
|
#include "f4/uart_config.h"
|
|
|
|
#include "f4/spi_config.h"
|
2019-04-10 15:27:01 +08:00
|
|
|
#include "f4/qspi_config.h"
|
2019-10-27 21:06:27 +08:00
|
|
|
#include "f4/usbd_config.h"
|
2018-12-10 09:48:01 +08:00
|
|
|
#include "f4/adc_config.h"
|
2020-12-15 17:58:12 +08:00
|
|
|
#include "f4/dac_config.h"
|
2018-12-21 11:17:32 +08:00
|
|
|
#include "f4/tim_config.h"
|
|
|
|
#include "f4/sdio_config.h"
|
|
|
|
#include "f4/pwm_config.h"
|
2019-08-30 15:38:05 +08:00
|
|
|
#include "f4/pulse_encoder_config.h"
|
2018-12-10 21:39:28 +08:00
|
|
|
#elif defined(SOC_SERIES_STM32F7)
|
2019-01-08 11:58:57 +08:00
|
|
|
#include "f7/dma_config.h"
|
2018-12-10 21:39:28 +08:00
|
|
|
#include "f7/uart_config.h"
|
|
|
|
#include "f7/spi_config.h"
|
2018-12-26 18:16:12 +08:00
|
|
|
#include "f7/qspi_config.h"
|
2018-12-10 21:39:28 +08:00
|
|
|
#include "f7/adc_config.h"
|
2018-12-21 11:17:32 +08:00
|
|
|
#include "f7/tim_config.h"
|
|
|
|
#include "f7/sdio_config.h"
|
|
|
|
#include "f7/pwm_config.h"
|
2019-01-27 13:11:15 +08:00
|
|
|
#elif defined(SOC_SERIES_STM32L0)
|
|
|
|
#include "l0/dma_config.h"
|
|
|
|
#include "l0/uart_config.h"
|
2018-11-29 17:00:22 +08:00
|
|
|
#elif defined(SOC_SERIES_STM32L4)
|
2019-01-08 11:58:57 +08:00
|
|
|
#include "l4/dma_config.h"
|
2018-11-29 17:00:22 +08:00
|
|
|
#include "l4/uart_config.h"
|
|
|
|
#include "l4/spi_config.h"
|
2018-12-26 10:43:16 +08:00
|
|
|
#include "l4/qspi_config.h"
|
2018-12-10 09:48:01 +08:00
|
|
|
#include "l4/adc_config.h"
|
2020-11-18 23:05:18 +08:00
|
|
|
#include "l4/dac_config.h"
|
2018-12-21 11:17:32 +08:00
|
|
|
#include "l4/tim_config.h"
|
2019-02-16 12:40:43 +08:00
|
|
|
#include "l4/sdio_config.h"
|
2018-12-21 11:17:32 +08:00
|
|
|
#include "l4/pwm_config.h"
|
2019-10-27 21:06:27 +08:00
|
|
|
#include "l4/usbd_config.h"
|
2021-11-01 14:56:23 +08:00
|
|
|
#elif defined(SOC_SERIES_STM32L5)
|
|
|
|
#include "l5/dma_config.h"
|
|
|
|
#include "l5/uart_config.h"
|
|
|
|
#include "l5/spi_config.h"
|
|
|
|
#include "l5/qspi_config.h"
|
|
|
|
#include "l5/adc_config.h"
|
|
|
|
#include "l5/dac_config.h"
|
|
|
|
#include "l5/tim_config.h"
|
|
|
|
#include "l5/sdio_config.h"
|
|
|
|
#include "l5/pwm_config.h"
|
|
|
|
#include "l5/usbd_config.h"
|
2019-01-22 15:07:51 +08:00
|
|
|
#elif defined(SOC_SERIES_STM32G0)
|
|
|
|
#include "g0/dma_config.h"
|
|
|
|
#include "g0/uart_config.h"
|
2019-02-15 10:43:09 +08:00
|
|
|
#include "g0/spi_config.h"
|
|
|
|
#include "g0/adc_config.h"
|
|
|
|
#include "g0/tim_config.h"
|
|
|
|
#include "g0/pwm_config.h"
|
2019-10-03 22:29:13 +08:00
|
|
|
#elif defined(SOC_SERIES_STM32G4)
|
|
|
|
#include "g4/dma_config.h"
|
|
|
|
#include "g4/uart_config.h"
|
|
|
|
#include "g4/spi_config.h"
|
|
|
|
#include "g4/qspi_config.h"
|
2019-10-27 21:06:27 +08:00
|
|
|
#include "g4/usbd_config.h"
|
2019-10-03 22:29:13 +08:00
|
|
|
#include "g4/adc_config.h"
|
|
|
|
#include "g4/tim_config.h"
|
|
|
|
#include "g4/sdio_config.h"
|
|
|
|
#include "g4/pwm_config.h"
|
|
|
|
#include "g4/pulse_encoder_config.h"
|
2019-03-24 10:41:40 +08:00
|
|
|
#elif defined(SOC_SERIES_STM32H7)
|
|
|
|
#include "h7/dma_config.h"
|
|
|
|
#include "h7/uart_config.h"
|
|
|
|
#include "h7/spi_config.h"
|
|
|
|
#include "h7/qspi_config.h"
|
|
|
|
#include "h7/adc_config.h"
|
2020-10-09 10:06:47 +08:00
|
|
|
#include "h7/dac_config.h"
|
2019-03-24 10:41:40 +08:00
|
|
|
#include "h7/tim_config.h"
|
|
|
|
#include "h7/sdio_config.h"
|
|
|
|
#include "h7/pwm_config.h"
|
2019-10-27 21:06:27 +08:00
|
|
|
#include "h7/usbd_config.h"
|
2021-11-15 10:26:14 +08:00
|
|
|
#elif defined(SOC_SERIES_STM32U5)
|
|
|
|
#include "u5/dma_config.h"
|
|
|
|
#include "u5/uart_config.h"
|
|
|
|
#include "u5/spi_config.h"
|
|
|
|
#include "u5/qspi_config.h"
|
|
|
|
#include "u5/adc_config.h"
|
|
|
|
#include "u5/dac_config.h"
|
|
|
|
#include "u5/tim_config.h"
|
|
|
|
#include "u5/sdio_config.h"
|
|
|
|
#include "u5/pwm_config.h"
|
|
|
|
#include "u5/usbd_config.h"
|
2023-08-29 13:10:14 +08:00
|
|
|
#elif defined(SOC_SERIES_STM32H5)
|
|
|
|
#include "h5/uart_config.h"
|
2024-01-20 19:30:03 +08:00
|
|
|
#include "h5/pwm_config.h"
|
|
|
|
#include "h5/adc_config.h"
|
2020-06-20 14:04:27 +08:00
|
|
|
#elif defined(SOC_SERIES_STM32MP1)
|
|
|
|
#include "mp1/dma_config.h"
|
|
|
|
#include "mp1/uart_config.h"
|
2020-12-05 09:09:11 +08:00
|
|
|
#include "mp1/qspi_config.h"
|
2020-06-23 10:43:18 +08:00
|
|
|
#include "mp1/spi_config.h"
|
|
|
|
#include "mp1/adc_config.h"
|
2021-03-08 22:40:39 +08:00
|
|
|
#include "mp1/dac_config.h"
|
2020-06-23 10:43:18 +08:00
|
|
|
#include "mp1/tim_config.h"
|
2021-03-08 22:40:39 +08:00
|
|
|
#include "mp1/pwm_config.h"
|
2021-01-29 10:28:18 +08:00
|
|
|
#elif defined(SOC_SERIES_STM32WL)
|
|
|
|
#include "wl/dma_config.h"
|
|
|
|
#include "wl/uart_config.h"
|
|
|
|
#include "wl/spi_config.h"
|
|
|
|
#include "wl/tim_config.h"
|
2020-10-14 15:02:23 +08:00
|
|
|
#elif defined(SOC_SERIES_STM32WB)
|
|
|
|
#include "wb/adc_config.h"
|
|
|
|
#include "wb/dma_config.h"
|
|
|
|
#include "wb/pwm_config.h"
|
2021-03-08 22:40:39 +08:00
|
|
|
#include "wb/qspi_config.h"
|
2020-10-14 15:02:23 +08:00
|
|
|
#include "wb/spi_config.h"
|
|
|
|
#include "wb/tim_config.h"
|
|
|
|
#include "wb/uart_config.h"
|
|
|
|
#include "wb/usbd_config.h"
|
2018-11-29 17:00:22 +08:00
|
|
|
#endif
|
|
|
|
|
2019-01-09 10:10:39 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-11-29 17:00:22 +08:00
|
|
|
#endif
|