Kconfig 1.8 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 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
        select BSP_USING_UART
        select BSP_USING_UART0
        default y
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 已提交
33 34 35 36 37 38 39 40 41 42
                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 已提交
43 44 45
            config BSP_USING_UART1
                bool "Enable UART1"
                default n
Thomas_Fly's avatar
Thomas_Fly 已提交
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
        endif
	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
	endmenu
S
supperthomas 已提交
71 72 73
endmenu

endmenu