drv_config.h 2.4 KB
Newer Older
1 2 3 4 5 6 7
/*
 * Copyright (c) 2006-2018, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author            Notes
8
 * 2018-10-30     SummerGift        first version
9 10 11 12 13 14 15 16
 */
 
#ifndef __DRV_CONFIG_H__
#define __DRV_CONFIG_H__

#include <board.h>
#include <rtthread.h>

17 18 19 20
#ifdef __cplusplus
extern "C" {
#endif

21
#if defined(SOC_SERIES_STM32F0)
22
#include "f0/dma_config.h"
23 24 25 26 27 28
#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)
29
#include "f1/dma_config.h"
30 31
#include "f1/uart_config.h"
#include "f1/spi_config.h"
32
#include "f1/adc_config.h"
33 34 35
#include "f1/tim_config.h"
#include "f1/sdio_config.h"
#include "f1/pwm_config.h"
my_fly_dream's avatar
my_fly_dream 已提交
36
#include "f1/usbd_fs_config.h"
37
#include "f1/encoder_config.h"
misonyo's avatar
misonyo 已提交
38 39 40 41 42 43 44 45
#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"
#include "f2/pwm_config.h"	
46
#elif  defined(SOC_SERIES_STM32F4)
47
#include "f4/dma_config.h"
48 49
#include "f4/uart_config.h"
#include "f4/spi_config.h"
lymzzyh's avatar
lymzzyh 已提交
50
#include "f4/qspi_config.h"
51
#include "f4/usbd_fs_config.h"
52
#include "f4/adc_config.h"
53 54 55
#include "f4/tim_config.h"
#include "f4/sdio_config.h"
#include "f4/pwm_config.h"
T
tangweikang 已提交
56
#include "f4/encoder_config.h"
57
#elif  defined(SOC_SERIES_STM32F7)
58
#include "f7/dma_config.h"
59 60
#include "f7/uart_config.h"
#include "f7/spi_config.h"
S
SummerGift 已提交
61
#include "f7/qspi_config.h"
62
#include "f7/adc_config.h"
63 64 65
#include "f7/tim_config.h"
#include "f7/sdio_config.h"
#include "f7/pwm_config.h"
66 67 68
#elif  defined(SOC_SERIES_STM32L0)
#include "l0/dma_config.h"
#include "l0/uart_config.h"
69
#elif  defined(SOC_SERIES_STM32L4)
70
#include "l4/dma_config.h"
71 72
#include "l4/uart_config.h"
#include "l4/spi_config.h"
73
#include "l4/qspi_config.h"
74
#include "l4/adc_config.h"
75
#include "l4/tim_config.h"
76
#include "l4/sdio_config.h"
77
#include "l4/pwm_config.h"
78
#include "l4/usbd_fs_config.h"
79 80 81
#elif  defined(SOC_SERIES_STM32G0)
#include "g0/dma_config.h"
#include "g0/uart_config.h"
G
guanwenliang 已提交
82 83 84 85
#include "g0/spi_config.h"
#include "g0/adc_config.h"
#include "g0/tim_config.h"
#include "g0/pwm_config.h"
whj123999's avatar
whj123999 已提交
86 87 88 89 90 91 92 93 94
#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"
#include "h7/tim_config.h"
#include "h7/sdio_config.h"
#include "h7/pwm_config.h"
95 96
#endif

97 98 99 100
#ifdef __cplusplus
}
#endif

101
#endif