Kconfig 4.0 KB
Newer Older
W
wangyq2018 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
menu "Hardware Drivers Config"

    menu "On-chip Peripheral Drivers"
        config BSP_USING_GPIO
            bool "Enable GPIO"
            select RT_USING_PIN
            default y

        menu "UART Drivers"
            config BSP_USING_UART0
                bool "Enable UART0 PB10/PB11(T/R)"
                select RT_USING_SERIAL
                default n

            config BSP_USING_UART1
                bool "Enable UART1 PC10/PC11(T/R)"
                select RT_USING_SERIAL
                default n
W
wangyq2018 已提交
19

W
wangyq2018 已提交
20 21 22 23
            config BSP_USING_UART2
                bool "Enable UART2 PC12/PD02(T/R)"
                select RT_USING_SERIAL
                default y
W
wangyq2018 已提交
24
                depends on !BSP_USING_HWTIMER1
W
wangyq2018 已提交
25 26 27 28 29

            config BSP_USING_UART3
                bool "Enable UART3 PC04/PC05(T/R)"
                select RT_USING_SERIAL
                default n
W
wangyq2018 已提交
30
                depends on !BSP_USING_HWTIMER2
W
wangyq2018 已提交
31 32
        endmenu

W
wangyq2018 已提交
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
        menu "SPI Drivers"
            config BSP_USING_SPI0
                bool "Enable SPI0 BUS PB03/PB04/PB05(CLK/MISO/MOSI)"
                select RT_USING_SPI
                select RT_USING_PIN
                default n

            config BSP_USING_SPI1
                bool "Enable SPI1 BUS PB13/PB14/PB15(CLK/MISO/MOSI)"
                select RT_USING_SPI
                select RT_USING_PIN
                default n
        endmenu

        menu "I2C Drivers"
            config BSP_USING_I2C0
                bool "Enable I2C0 BUS PB08/PB09(SCL/SDA)"
                select RT_USING_I2C
                default n
W
wangyq2018 已提交
52

W
wangyq2018 已提交
53 54 55 56 57 58
            config BSP_USING_I2C1
                bool "Enable I2C1 BUS PB10/PB11(SCL/SDA)"
                select RT_USING_I2C
                default n
        endmenu

59 60 61 62 63 64 65
        menu "CAN Drivers"
            config BSP_USING_CAN
                bool "Enable CAN BUS PA11/PA12(RX/TX)"
                select RT_USING_CAN
                default n
        endmenu

W
wangyq2018 已提交
66 67 68 69 70 71 72 73 74
        menu "PWM Drivers"
            config BSP_USING_PWM0
                bool "Using PWM0 PA08/PA09/PA10/PA11"
                select RT_USING_PWM
                default n 

            config BSP_USING_PWM1
                bool "Using PWM1 PB06/PB07/PB08/PB09"
                select RT_USING_PWM
W
wangyq2018 已提交
75
                default n
W
wangyq2018 已提交
76 77 78 79

            config BSP_USING_PWM2
                bool "Using PWM2 PA00/PA01"
                select RT_USING_PWM
W
wangyq2018 已提交
80
                default n
W
wangyq2018 已提交
81 82 83 84

            config BSP_USING_PWM3
                bool "Using PWM3 PC06/PC07"
                select RT_USING_PWM
W
wangyq2018 已提交
85
                default n
W
wangyq2018 已提交
86
        endmenu
W
wangyq2018 已提交
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111

        menu "HWtimer Drivers"
            config BSP_USING_HWTIMER0
                bool "Using timer0"
                select RT_USING_HWTIMER
                default n

            config BSP_USING_HWTIMER1
                bool "Using timer1"
                select RT_USING_HWTIMER
                default n
                depends on !BSP_USING_UART2

            config BSP_USING_HWTIMER2
                bool "Using timer2"
                select RT_USING_HWTIMER
                default n
                depends on !BSP_USING_UART3

            config BSP_USING_HWTIMER3
                bool "Using timer3"
                select RT_USING_HWTIMER
                default n
        endmenu

W
wangyq2018 已提交
112 113 114 115 116 117 118
        menu "RTC Drivers"
            config BSP_USING_RTC
                bool "Using RTC"
                select RT_USING_RTC
                default n
        endmenu

W
wangyq2018 已提交
119 120 121 122 123 124 125
        menu "PM Drivers"
            config BSP_USING_PM
                bool "Using PM"
                select RT_USING_PM
                default n
        endmenu

W
wangyq2018 已提交
126 127 128 129 130 131 132
        menu "ADC Drivers"
            config BSP_USING_ADC
                bool "Using ADC"
                select RT_USING_ADC
                default n
        endmenu

W
wangyq2018 已提交
133 134 135 136
    endmenu

    menu "Onboard Peripheral Drivers"

W
wangyq2018 已提交
137
        config BSP_USING_SPI_FLASH
138 139 140 141 142 143
            bool "Enable SPI FLASH (W25Q64 spi0)"
            select BSP_USING_SPI
            select BSP_USING_SPI0
            select RT_USING_SFUD
            select RT_SFUD_USING_SFDP
            default n
W
wangyq2018 已提交
144

W
wangyq2018 已提交
145 146 147 148 149 150 151
    endmenu

    menu "Offboard Peripheral Drivers"

    endmenu

endmenu