2021-12-16 16:23:58 +08:00
|
|
|
mainmenu "RT-Thread Configuration"
|
|
|
|
|
|
|
|
config BSP_DIR
|
|
|
|
string
|
|
|
|
option env="BSP_ROOT"
|
|
|
|
default "."
|
|
|
|
|
|
|
|
config RTT_DIR
|
|
|
|
string
|
|
|
|
option env="RTT_ROOT"
|
2023-11-16 14:04:21 +08:00
|
|
|
default "../../.."
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2021-12-16 16:23:58 +08:00
|
|
|
# you can change the RTT_ROOT default "../.." to your rtthread_root,
|
|
|
|
# example : default "F:/git_repositories/rt-thread"
|
|
|
|
|
|
|
|
config PKGS_DIR
|
|
|
|
string
|
|
|
|
option env="PKGS_ROOT"
|
|
|
|
default "packages"
|
2023-01-09 10:14:23 +08:00
|
|
|
|
2021-12-16 16:23:58 +08:00
|
|
|
config ENV_DIR
|
|
|
|
string
|
|
|
|
option env="ENV_ROOT"
|
|
|
|
default "/"
|
|
|
|
|
|
|
|
source "$RTT_DIR/Kconfig"
|
|
|
|
source "$PKGS_DIR/Kconfig"
|
|
|
|
|
2023-11-16 14:04:21 +08:00
|
|
|
menu "Hardware Drivers Config"
|
|
|
|
|
|
|
|
config SOC_AVR32
|
|
|
|
bool
|
|
|
|
default y
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Select BSP board"
|
|
|
|
default BSP_BOARD_MCUZONE_AVR32DEV1
|
|
|
|
|
|
|
|
config BSP_BOARD_MCUZONE_AVR32DEV1
|
|
|
|
bool "MCUZone AVR32DEV1 Kit"
|
|
|
|
endchoice
|
|
|
|
|
2023-10-16 16:00:11 +08:00
|
|
|
menu "On-chip Peripheral Drivers"
|
|
|
|
|
|
|
|
config BSP_USING_PIN
|
|
|
|
bool "Enable GPIO"
|
|
|
|
select RT_USING_PIN
|
|
|
|
default y
|
|
|
|
|
|
|
|
menuconfig BSP_USING_UART
|
|
|
|
bool "Enable UART"
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
default y
|
|
|
|
if BSP_USING_UART
|
|
|
|
config BSP_USING_UART0
|
|
|
|
bool "Enable UART0"
|
|
|
|
default n
|
|
|
|
if BSP_USING_UART0
|
|
|
|
choice
|
|
|
|
prompt "uart0 tx pin number (GP)"
|
|
|
|
depends on BSP_USING_UART0
|
|
|
|
default BSP_UART0_TX_PIN_43
|
|
|
|
config BSP_UART0_TX_PIN_19
|
|
|
|
bool "19"
|
|
|
|
config BSP_UART0_TX_PIN_43
|
|
|
|
bool "43"
|
|
|
|
endchoice
|
|
|
|
config BSP_UART0_TX_PIN
|
|
|
|
int
|
|
|
|
default 19 if BSP_UART0_TX_PIN_19
|
|
|
|
default 43 if BSP_UART0_TX_PIN_43
|
|
|
|
config BSP_UART0_TX_PIN_FUNCTION
|
|
|
|
int
|
|
|
|
default 0 if BSP_UART0_TX_PIN_19
|
|
|
|
default 2 if BSP_UART0_TX_PIN_43
|
|
|
|
choice
|
|
|
|
prompt "uart0 rx pin number (GP)"
|
|
|
|
depends on BSP_USING_UART0
|
|
|
|
default BSP_UART0_RX_PIN_42
|
|
|
|
config BSP_UART0_RX_PIN_18
|
|
|
|
bool "18"
|
|
|
|
config BSP_UART0_RX_PIN_42
|
|
|
|
bool "42"
|
|
|
|
endchoice
|
|
|
|
config BSP_UART0_RX_PIN
|
|
|
|
int
|
|
|
|
default 18 if BSP_UART0_RX_PIN_18
|
|
|
|
default 42 if BSP_UART0_RX_PIN_42
|
|
|
|
config BSP_UART0_RX_PIN_FUNCTION
|
|
|
|
int
|
|
|
|
default 0 if BSP_UART0_RX_PIN_18
|
|
|
|
default 2 if BSP_UART0_RX_PIN_42
|
|
|
|
endif
|
|
|
|
|
|
|
|
config BSP_USING_UART1
|
|
|
|
bool "Enable UART1"
|
|
|
|
default y
|
|
|
|
if BSP_USING_UART1
|
|
|
|
choice
|
|
|
|
prompt "uart1 tx pin number (GP)"
|
|
|
|
depends on BSP_USING_UART1
|
|
|
|
default BSP_UART1_TX_PIN_34
|
|
|
|
config BSP_UART1_TX_PIN_34
|
|
|
|
bool "34"
|
|
|
|
config BSP_UART1_TX_PIN_23
|
|
|
|
bool "23"
|
|
|
|
endchoice
|
|
|
|
config BSP_UART1_TX_PIN
|
|
|
|
int
|
|
|
|
default 34 if BSP_UART1_TX_PIN_34
|
|
|
|
default 23 if BSP_UART1_TX_PIN_23
|
|
|
|
config BSP_UART1_TX_PIN_FUNCTION
|
|
|
|
int
|
|
|
|
default 2 if BSP_UART1_TX_PIN_34
|
|
|
|
default 0 if BSP_UART1_TX_PIN_23
|
|
|
|
choice
|
|
|
|
prompt "uart1 rx pin number (GP)"
|
|
|
|
depends on BSP_USING_UART1
|
|
|
|
default BSP_UART1_RX_PIN_35
|
|
|
|
config BSP_UART1_RX_PIN_35
|
|
|
|
bool "35"
|
|
|
|
config BSP_UART1_RX_PIN_24
|
|
|
|
bool "24"
|
|
|
|
endchoice
|
|
|
|
config BSP_UART1_RX_PIN
|
|
|
|
int
|
|
|
|
default 35 if BSP_UART1_RX_PIN_35
|
|
|
|
default 24 if BSP_UART1_RX_PIN_24
|
|
|
|
config BSP_UART1_RX_PIN_FUNCTION
|
|
|
|
int
|
|
|
|
default 2 if BSP_UART1_RX_PIN_35
|
|
|
|
default 0 if BSP_UART1_RX_PIN_24
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endmenu
|
2023-11-16 14:04:21 +08:00
|
|
|
endmenu
|