Kconfig 6.6 KB
Newer Older
G
greedyhao 已提交
1 2
menu "Hardware Drivers Config"

G
greedyhao 已提交
3 4 5 6 7
config SOC_AB32VG1
    bool
    select PKG_USING_BLUETRUM_SDK
    default y

G
greedyhao 已提交
8 9 10 11
config PKG_USING_BLUETRUM_NIMBLE
    bool
    default n

G
greedyhao 已提交
12 13
menu "Onboard Peripheral Drivers"

G
greedyhao 已提交
14 15 16 17 18 19 20 21 22 23 24
    menuconfig BSP_USING_AUDIO
        bool "Enable Audio Device"
        select RT_USING_AUDIO
        default n

        if BSP_USING_AUDIO
            config BSP_USING_AUDIO_PLAY
            bool "Enable Audio Play"
            default y
        endif

G
greedyhao 已提交
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
    config BSP_USING_SDCARD
        bool "Enable SDCARD"
        select BSP_USING_SDIO
        default n

    if BSP_USING_SDCARD
    config SDIO_MAX_FREQ
        int "sdio max freq"
        range 0 24000000
        default 24000000
    endif

endmenu

menu "On-chip Peripheral Drivers"
40
    menuconfig BSP_USING_UART
G
greedyhao 已提交
41
        bool "Enable UART"
42 43 44 45 46
        if BSP_USING_UART
            config BSP_USING_UART0
                bool "Enable UART0"
                select RT_USING_SERIAL
                default y
G
greedyhao 已提交
47 48 49 50 51 52
            if BSP_USING_UART0
                config BSP_UART0_FIFO_SIZE
                    int "BSP_UART0_FIFO_SIZE"
                    range 5 255
                    default 10
            endif
53

54 55 56 57
            config BSP_USING_UART1
                bool "Enable UART1"
                select RT_USING_SERIAL
                default n
G
greedyhao 已提交
58 59 60 61 62 63
            if BSP_USING_UART1
                config BSP_UART1_FIFO_SIZE
                    int "BSP_UART1_FIFO_SIZE"
                    range 5 255
                    default 10
            endif
64

65 66 67 68
            config BSP_USING_UART2
                bool "Enable UART2"
                select RT_USING_SERIAL
                default n
G
greedyhao 已提交
69 70 71 72 73 74
            if BSP_USING_UART2
                config BSP_UART2_FIFO_SIZE
                    int "BSP_UART2_FIFO_SIZE"
                    range 5 255
                    default 10
            endif
75
        endif
G
greedyhao 已提交
76 77 78 79 80 81 82 83

    config BSP_USING_SDIO
        bool "Enable SDIO"
        select RT_USING_SDIO
        select RT_USING_DFS
        select RT_USING_DFS_ELMFAT
        default n

84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
    menuconfig BSP_USING_I2C1
        bool "Enable I2C1 BUS (software simulation)"
        default n
        select RT_USING_I2C
        select RT_USING_I2C_BITOPS
        select RT_USING_PIN
        if BSP_USING_I2C1
            comment "Notice: PE3 --> 16; PE2 --> 15"
            config BSP_I2C1_SCL_PIN
                int "I2C1 scl pin number"
                range 1 27
                default 16
            config BSP_I2C1_SDA_PIN
                int "I2C1 sda pin number"
                range 1 27
                default 15
        endif

G
greedyhao 已提交
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
    menuconfig BSP_USING_PWM
        bool "Enable PWM"
        default n
        select RT_USING_PWM
        if BSP_USING_PWM
        menuconfig BSP_USING_T3_PWM
            bool "Enable Timer3 PWM"
            default n
            if BSP_USING_T3_PWM
                config BSP_USING_T3_PWM0
                    bool "Enable Timer3 PWM0 (PB0)(Confict with SD card)"
                    default n
            endif

        menuconfig BSP_USING_T4_PWM
            bool "Enable Timer4 PWM"
            default n
            if BSP_USING_T4_PWM
                config BSP_USING_T4_PWM1
                    bool "Enable Timer4 PWM1 (PA6)(Confit with uart0 rx)"
G
greedyhao 已提交
122
                    default y
G
greedyhao 已提交
123 124 125 126
            endif

        menuconfig BSP_USING_T5_PWM
            bool "Enable Timer5 PWM"
G
greedyhao 已提交
127
            default y
G
greedyhao 已提交
128 129 130
            if BSP_USING_T5_PWM
                config BSP_USING_T5_PWM0
                    bool "Enable Timer5 PWM2 (PE1)"
G
greedyhao 已提交
131
                    default y
G
greedyhao 已提交
132 133 134 135 136 137 138 139 140
            endif

        menuconfig BSP_USING_LPWM0
            bool "Enable LPWM0"
            default n
            if BSP_USING_LPWM0
                comment "G1, G2 and G3 are mutually exclusive"
                config BSP_USING_LPWM0_G1
                    bool "Enable LPWM0 G1 (PE4)"
G
greedyhao 已提交
141
                    default y
G
greedyhao 已提交
142 143 144 145 146 147 148 149 150
            endif

        menuconfig BSP_USING_LPWM1
            bool "Enable LPWM1"
            default n
            if BSP_USING_LPWM1
                comment "G1, G2 and G3 are mutually exclusive"
                config BSP_USING_LPWM1_G3
                    bool "Enable LPWM1 G3 (PA1)"
G
greedyhao 已提交
151
                    default y
G
greedyhao 已提交
152 153 154 155 156 157 158 159 160
            endif

        menuconfig BSP_USING_LPWM2
            bool "Enable LPWM2"
            default n
            if BSP_USING_LPWM2
                comment "G1, G2 and G3 are mutually exclusive"
                config BSP_USING_LPWM2_G2
                    bool "Enable LPWM2 G2 (PE0)"
G
greedyhao 已提交
161
                    default y
G
greedyhao 已提交
162 163 164 165 166 167
                config BSP_USING_LPWM2_G3
                    bool "Enable LPWM2 G3 (PA2)"
                    default n
            endif
        endif

168 169 170 171 172 173 174 175 176 177 178 179
    config BSP_USING_WDT
        bool "Enable Watchdog Timer"
        select RT_USING_WDT
        default n

    menuconfig BSP_USING_TIM
        bool "Enable timer"
        default n
        select RT_USING_HWTIMER
        if BSP_USING_TIM
            config BSP_USING_TIM1
                bool "Enable TIM1"
G
greedyhao 已提交
180
                default y
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198

            config BSP_USING_TIM2
                bool "Enable TIM2"
                default n

            config BSP_USING_TIM3
                bool "Enable TIM3"
                default n

            config BSP_USING_TIM4
                bool "Enable TIM4"
                default n
                
            config BSP_USING_TIM5
                bool "Enable TIM5"
                default n
        endif

199
    menuconfig BSP_USING_ONCHIP_RTC
200 201 202 203
        bool "Enable RTC"
        select RT_USING_RTC
        select RT_USING_LIBC
        default n
204 205
        if BSP_USING_ONCHIP_RTC
            config RTC_USING_INTERNAL_CLK
G
greedyhao 已提交
206 207
                bool "Using internal clock RTC"
                default y
208
            config RTC_USING_1S_INT
G
greedyhao 已提交
209 210 211
                bool "Using 1 second interrupt"
                depends on RT_USING_ALARM
                default n
212
        endif
213 214 215 216 217 218 219 220

    menuconfig BSP_USING_ADC
        bool "Enable ADC"
        default n
        select RT_USING_ADC
        if BSP_USING_ADC
            config BSP_USING_ADC0
                bool "Enable ADC0"
G
greedyhao 已提交
221
                default y
222 223
        endif

G
greedyhao 已提交
224 225 226 227 228 229 230 231 232 233 234 235
    menuconfig BSP_USING_IRRX
        bool "Enable IRRX(HW or SW)"
        default n
        if BSP_USING_IRRX
            config BSP_USING_IRRX_HW
                bool "Enable hardware IRRX"
                default y
            config BSP_USING_IRRX_SW
                bool "Enable software IRRX"
                default n
        endif

G
greedyhao 已提交
236 237
endmenu

G
greedyhao 已提交
238 239 240 241 242 243 244 245 246 247 248 249 250
choice
    prompt "BLE STACK"
    default BLE_STACK_USING_NULL
    help
        Select the ble stack

    config BLE_STACK_USING_NULL
        bool "not use the ble stack"

    config BSP_USING_NIMBLE
        bool "use nimble stack(iot)"
        select PKG_USING_BLUETRUM_NIMBLE
endchoice
G
greedyhao 已提交
251 252

endmenu