Kconfig 3.7 KB
Newer Older
L
liYang~ 已提交
1 2 3 4
menu "Hardware Drivers Config"

config SOC_CH32V307VC
    bool
5
    select SOC_RISCV_SERIES_CH32V3
L
liYang~ 已提交
6 7 8 9 10 11 12 13 14 15 16
    select RT_USING_COMPONENTS_INIT
    select RT_USING_USER_MAIN
    default y

menu "On-chip Peripheral Drivers"

    config BSP_USING_UART
        bool "Enable UART"
        select RT_USING_SERIAL
        default n

L
linshire 已提交
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
    if BSP_USING_UART
       config BSP_USING_UART1
           bool "Enable UART1"
           default n

       config BSP_USING_UART2
           bool "Enable UART2"
           default n

       config BSP_USING_UART3
           bool "Enable UART3"
           default n

       config BSP_USING_UART4
           bool "Enable UART4"
           default n

       config BSP_USING_UART5
           bool "Enable UART5"
           default n

       config BSP_USING_UART6
           bool "Enable UART6"
           default n

       config BSP_USING_UART7
           bool "Enable UART7"
           default n

       config BSP_USING_UART8
           bool "Enable UART8"
           default n
    endif
   
    config BSP_USING_ADC
        bool "Enable ADC"
        select RT_USING_ADC
        default n
L
linshire 已提交
55

L
linshire 已提交
56 57 58 59
        if BSP_USING_ADC
           config BSP_USING_ADC1
               bool "Enable ADC1"
               default n
L
linshire 已提交
60

L
linshire 已提交
61 62 63
           config BSP_USING_ADC2
               bool "Enable ADC2"
               default n
L
linshire 已提交
64

L
linshire 已提交
65 66 67
           config ADC_CHANNEL_16
               bool "Enable ADC CHANNEL 16 (inside temperature)"
               default n    
L
linshire 已提交
68

L
linshire 已提交
69 70 71 72
           config ADC_CHANNEL_17
               bool "Enable ADC CHANNEL 17 (inside Verf)"
               default n    
        endif
L
linshire 已提交
73

L
linshire 已提交
74 75
    config BSP_USING_DAC
        bool "Enable DAC"
H
hg0720 已提交
76 77
        select RT_USING_DAC        
        default n
L
linshire 已提交
78 79 80 81 82 83
        if BSP_USING_DAC
            config BSP_USING_DAC_CHANNEL1
                bool "Enable DAC CHANNEL1"
                default n
            config BSP_USING_DAC_CHANNEL2
                bool "Enable DAC CHANNEL2"
H
hg0720 已提交
84 85
                default n  
        endif 
L
liYang~ 已提交
86

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 112 113 114 115 116 117 118 119 120 121 122 123 124
    menuconfig BSP_USING_I2C
        bool "Enable I2C Bus"
        default n
        select RT_USING_I2C
        select RT_USING_I2C_BITOPS
        select RT_USING_PIN
        if BSP_USING_I2C
            config BSP_USING_I2C1
                bool "Enable I2C1 Bus"
                default n
                if BSP_USING_I2C1
                    comment "Notice: PC7 --> 39; PC6 --> 38"
                    config BSP_I2C1_SCL_PIN
                        int "i2c1 SCL pin number"
                        range 0 79
                        default 38
                    config BSP_I2C1_SDA_PIN
                        int "i2c1 SDA pin number"
                        range 0 79
                        default 39
                endif

            config BSP_USING_I2C2
                bool "Enable I2C2 Bus"
                default n
                if BSP_USING_I2C2
                    comment "Notice: PC1 --> 33; PC0 --> 32"
                    config BSP_I2C2_SCL_PIN
                        int "i2c2 SCL pin number"
                        range 0 79
                        default 32
                    config BSP_I2C2_SDA_PIN
                        int "i2c2 SDA pin number"
                        range 0 79
                        default 33
                endif
        endif

hg0720's avatar
hg0720 已提交
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
    config BSP_USING_RTC
        bool "Enable RTC"
        select RT_USING_RTC
        default n
        if BSP_USING_RTC
            choice
                prompt "Select clock source"
                default BSP_RTC_USING_LSE

                config BSP_RTC_USING_LSE
                    bool "RTC USING LSE"

                config BSP_RTC_USING_LSI
                    bool "RTC USING LSI"
            endchoice
        endif

L
liYang~ 已提交
142 143 144 145 146 147 148 149 150 151 152
endmenu

menu "Onboard Peripheral Drivers"

endmenu

menu "Board extended module Drivers"

endmenu

endmenu