Kconfig 3.1 KB
Newer Older
S
supperthomas 已提交
1 2 3 4
menu "Hardware Drivers Config"

config SOC_NRF52840
    bool
Thomas_Fly's avatar
Thomas_Fly 已提交
5
    config SOC_NRF52840
S
supperthomas 已提交
6
    select RT_USING_COMPONENTS_INIT
7
    select RT_USING_USER_MAIN
S
supperthomas 已提交
8 9 10 11
    default y

menu "Onboard Peripheral Drivers"
    config BSP_USING_JLINK_TO_USART
Thomas_Fly's avatar
Thomas_Fly 已提交
12
        bool "Enable JLINK TO USART (uart0|RX_PIN:8|TX_PIN:6)"
S
supperthomas 已提交
13 14 15
        select BSP_USING_UART
        select BSP_USING_UART0
        default y
16 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

    menuconfig BSP_USING_QSPI_FLASH
        select PKG_USING_FAL
        bool "Enable QSPI FLASH(MX25R64 8MB)"
        default n

        if BSP_USING_QSPI_FLASH
            config BSP_QSPI_SCK_PIN
                int "QSPI SCK pin number"
                range 0 31
                default 19
            config BSP_QSPI_CSN_PIN
                int "QSPI CSN pin number"
                range 0 31
                default 17
            config BSP_QSPI_IO0_PIN
                int "QSPI IO0 pin number"
                range 0 31
                default 20
            config BSP_QSPI_IO1_PIN
                int "QSPI IO1 pin number"
                range 0 31
                default 21
            config BSP_QSPI_IO2_PIN
                int "QSPI IO2 pin number"
                range 0 31
                default 22
            config BSP_QSPI_IO3_PIN
                int "QSPI IO3 pin number"
                range 0 31
                default 23
            config QSPI_FLASH_SIZE_KB 
                int "QSPI FLASH SIZE, DEFAULT size 8192 KB"
                default 8192
        endif
S
supperthomas 已提交
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
endmenu

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

    menuconfig BSP_USING_UART
        bool "Enable UART"
        default y
        select RT_USING_SERIAL

        if BSP_USING_UART
            config BSP_USING_UART0
                bool "Enable UART0"
                default y 
Thomas_Fly's avatar
Thomas_Fly 已提交
68 69 70 71 72 73 74 75 76 77
                if BSP_USING_UART0
                    config BSP_UART0_RX_PIN
                        int "uart0 rx pin number"
                        range 0 31
                        default 8
                    config BSP_UART0_TX_PIN
                        int "uart0 tx pin number"
                        range 0 31
                        default 6
                endif
S
supperthomas 已提交
78 79 80
            config BSP_USING_UART1
                bool "Enable UART1"
                default n
Thomas_Fly's avatar
Thomas_Fly 已提交
81
        endif
82 83 84 85 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

    config BSP_USING_ON_CHIP_FLASH
        select PKG_USING_FAL
        bool "Enable on-chip FLASH"
        default n

    menu "On-chip flash config"

        
        config MCU_FLASH_START_ADDRESS  
            hex "MCU FLASH START ADDRESS"
            default 0x00000000

        config MCU_FLASH_SIZE_KB  
            int "MCU FLASH SIZE, MAX size 1024 KB"
            range 1 1024
            default 1024		

        config MCU_SRAM_START_ADDRESS 
            hex "MCU RAM START ADDRESS"
            default 0x20000000

        config MCU_SRAM_SIZE_KB 
            int "MCU RAM SIZE, MAX size 256 KB"
            range 1 256
            default 256

        config MCU_FLASH_PAGE_SIZE 
            hex "MCU FLASH PAGE SIZE, please not change,nrfx default is 0x1000"
            range 0x1000 0x1000
            default 0x1000
Thomas_Fly's avatar
Thomas_Fly 已提交
113
	endmenu
S
supperthomas 已提交
114 115 116
endmenu

endmenu