2023-03-19 14:41:18 +08:00
|
|
|
menu "General Drivers Configuration"
|
|
|
|
|
2023-05-29 09:47:25 +08:00
|
|
|
config BSP_DRIVER_DEBUG
|
|
|
|
bool "Enable Driver Debug Log Output"
|
|
|
|
default n
|
|
|
|
|
2023-03-19 14:41:18 +08:00
|
|
|
menu "General Purpose UARTs"
|
|
|
|
menuconfig BSP_USING_UART0
|
|
|
|
bool "Enable UART0"
|
|
|
|
default y
|
|
|
|
if BSP_USING_UART0
|
|
|
|
choice
|
|
|
|
prompt "UART0 TX PIN"
|
|
|
|
default UART0_TX_USING_GPIO16 if BSP_USING_BL60X
|
|
|
|
default UART0_TX_USING_GPIO21 if BSP_USING_BL61X
|
|
|
|
default UART0_TX_USING_GPIO14 if BSP_USING_BL70X
|
|
|
|
default UART0_TX_USING_GPIO14 if BSP_USING_BL808
|
|
|
|
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART0_TX_USING_GPIO0
|
|
|
|
bool "GPIO_0"
|
|
|
|
config UART0_TX_USING_GPIO1
|
|
|
|
bool "GPIO_1"
|
|
|
|
config UART0_TX_USING_GPIO2
|
|
|
|
bool "GPIO_2"
|
|
|
|
config UART0_TX_USING_GPIO3
|
|
|
|
bool "GPIO_3"
|
|
|
|
config UART0_TX_USING_GPIO4
|
|
|
|
bool "GPIO_4"
|
|
|
|
config UART0_TX_USING_GPIO5
|
|
|
|
bool "GPIO_5"
|
|
|
|
config UART0_TX_USING_GPIO6
|
|
|
|
bool "GPIO_6"
|
|
|
|
config UART0_TX_USING_GPIO7
|
|
|
|
bool "GPIO_7"
|
|
|
|
config UART0_TX_USING_GPIO8
|
|
|
|
bool "GPIO_8"
|
|
|
|
config UART0_TX_USING_GPIO9
|
|
|
|
bool "GPIO_9"
|
|
|
|
config UART0_TX_USING_GPIO10
|
|
|
|
bool "GPIO_10"
|
|
|
|
config UART0_TX_USING_GPIO11
|
|
|
|
bool "GPIO_11"
|
|
|
|
config UART0_TX_USING_GPIO12
|
|
|
|
bool "GPIO_12"
|
|
|
|
config UART0_TX_USING_GPIO13
|
|
|
|
bool "GPIO_13"
|
|
|
|
config UART0_TX_USING_GPIO13
|
|
|
|
bool "GPIO_13"
|
2023-03-19 14:41:18 +08:00
|
|
|
config UART0_TX_USING_GPIO14
|
|
|
|
bool "GPIO_14"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART0_TX_USING_GPIO15
|
|
|
|
bool "GPIO_15"
|
2023-03-19 14:41:18 +08:00
|
|
|
config UART0_TX_USING_GPIO16
|
|
|
|
bool "GPIO_16"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART0_TX_USING_GPIO17
|
|
|
|
bool "GPIO_17"
|
|
|
|
config UART0_TX_USING_GPIO18
|
|
|
|
bool "GPIO_18"
|
|
|
|
config UART0_TX_USING_GPIO19
|
|
|
|
bool "GPIO_19"
|
|
|
|
config UART0_TX_USING_GPIO20
|
|
|
|
bool "GPIO_20"
|
2023-03-19 14:41:18 +08:00
|
|
|
config UART0_TX_USING_GPIO21
|
|
|
|
bool "GPIO_21"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART0_TX_USING_GPIO22
|
|
|
|
bool "GPIO_22"
|
|
|
|
config UART0_TX_USING_GPIO23
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_23"
|
|
|
|
config UART0_TX_USING_GPIO24
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_24"
|
|
|
|
config UART0_TX_USING_GPIO25
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_25"
|
|
|
|
config UART0_TX_USING_GPIO26
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_26"
|
|
|
|
config UART0_TX_USING_GPIO27
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_27"
|
|
|
|
config UART0_TX_USING_GPIO28
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_28"
|
|
|
|
config UART0_TX_USING_GPIO29
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_29"
|
|
|
|
config UART0_TX_USING_GPIO30
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_30"
|
|
|
|
config UART0_TX_USING_GPIO31
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_31"
|
|
|
|
config UART0_TX_USING_GPIO32
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_32"
|
|
|
|
config UART0_TX_USING_GPIO33
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_33"
|
|
|
|
config UART0_TX_USING_GPIO34
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_34"
|
|
|
|
config UART0_TX_USING_GPIO35
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_35"
|
|
|
|
config UART0_TX_USING_GPIO36
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_36"
|
|
|
|
config UART0_TX_USING_GPIO37
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_37"
|
|
|
|
config UART0_TX_USING_GPIO38
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_38"
|
|
|
|
config UART0_TX_USING_GPIO39
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_39"
|
|
|
|
config UART0_TX_USING_GPIO44
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_44"
|
|
|
|
config UART0_TX_USING_GPIO45
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_45"
|
2023-03-19 14:41:18 +08:00
|
|
|
endchoice
|
2023-05-07 23:13:38 +08:00
|
|
|
|
2023-03-19 14:41:18 +08:00
|
|
|
choice
|
|
|
|
prompt "UART0 RX PIN"
|
|
|
|
default UART0_RX_USING_GPIO7 if BSP_USING_BL60X
|
|
|
|
default UART0_RX_USING_GPIO22 if BSP_USING_BL61X
|
|
|
|
default UART0_RX_USING_GPIO23 if BSP_USING_BL70X
|
|
|
|
default UART0_RX_USING_GPIO15 if BSP_USING_BL808
|
|
|
|
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART0_RX_USING_GPIO0
|
|
|
|
bool "GPIO_0"
|
|
|
|
config UART0_RX_USING_GPIO1
|
|
|
|
bool "GPIO_1"
|
|
|
|
config UART0_RX_USING_GPIO2
|
|
|
|
bool "GPIO_2"
|
|
|
|
config UART0_RX_USING_GPIO3
|
|
|
|
bool "GPIO_3"
|
|
|
|
config UART0_RX_USING_GPIO4
|
|
|
|
bool "GPIO_4"
|
|
|
|
config UART0_RX_USING_GPIO5
|
|
|
|
bool "GPIO_5"
|
|
|
|
config UART0_RX_USING_GPIO6
|
|
|
|
bool "GPIO_6"
|
2023-03-19 14:41:18 +08:00
|
|
|
config UART0_RX_USING_GPIO7
|
|
|
|
bool "GPIO_7"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART0_RX_USING_GPIO8
|
|
|
|
bool "GPIO_8"
|
|
|
|
config UART0_RX_USING_GPIO9
|
|
|
|
bool "GPIO_9"
|
|
|
|
config UART0_RX_USING_GPIO10
|
|
|
|
bool "GPIO_10"
|
|
|
|
config UART0_RX_USING_GPIO11
|
|
|
|
bool "GPIO_11"
|
|
|
|
config UART0_RX_USING_GPIO12
|
|
|
|
bool "GPIO_12"
|
|
|
|
config UART0_RX_USING_GPIO13
|
|
|
|
bool "GPIO_13"
|
|
|
|
config UART0_RX_USING_GPIO14
|
|
|
|
bool "GPIO_14"
|
2023-03-19 14:41:18 +08:00
|
|
|
config UART0_RX_USING_GPIO15
|
|
|
|
bool "GPIO_15"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART0_RX_USING_GPIO16
|
|
|
|
bool "GPIO_16"
|
|
|
|
config UART0_RX_USING_GPIO17
|
|
|
|
bool "GPIO_17"
|
|
|
|
config UART0_RX_USING_GPIO18
|
|
|
|
bool "GPIO_18"
|
|
|
|
config UART0_RX_USING_GPIO19
|
|
|
|
bool "GPIO_19"
|
|
|
|
config UART0_RX_USING_GPIO20
|
|
|
|
bool "GPIO_20"
|
|
|
|
config UART0_RX_USING_GPIO21
|
|
|
|
bool "GPIO_21"
|
2023-03-19 14:41:18 +08:00
|
|
|
config UART0_RX_USING_GPIO22
|
|
|
|
bool "GPIO_22"
|
|
|
|
config UART0_RX_USING_GPIO23
|
2023-05-07 23:13:38 +08:00
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
2023-03-19 14:41:18 +08:00
|
|
|
bool "GPIO_23"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART0_RX_USING_GPIO24
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_24"
|
|
|
|
config UART0_RX_USING_GPIO25
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_25"
|
|
|
|
config UART0_RX_USING_GPIO26
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_26"
|
|
|
|
config UART0_RX_USING_GPIO27
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_27"
|
|
|
|
config UART0_RX_USING_GPIO28
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_28"
|
|
|
|
config UART0_RX_USING_GPIO29
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_29"
|
|
|
|
config UART0_RX_USING_GPIO30
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_30"
|
|
|
|
config UART0_RX_USING_GPIO31
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_31"
|
|
|
|
config UART0_RX_USING_GPIO32
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_32"
|
|
|
|
config UART0_RX_USING_GPIO33
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_33"
|
|
|
|
config UART0_RX_USING_GPIO34
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_34"
|
|
|
|
config UART0_RX_USING_GPIO35
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_35"
|
|
|
|
config UART0_RX_USING_GPIO36
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_36"
|
|
|
|
config UART0_RX_USING_GPIO37
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_37"
|
|
|
|
config UART0_RX_USING_GPIO38
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_38"
|
|
|
|
config UART0_RX_USING_GPIO39
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_39"
|
|
|
|
config UART0_RX_USING_GPIO44
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_44"
|
|
|
|
config UART0_RX_USING_GPIO45
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_45"
|
|
|
|
|
2023-03-19 14:41:18 +08:00
|
|
|
endchoice
|
|
|
|
endif
|
|
|
|
|
|
|
|
menuconfig BSP_USING_UART1
|
|
|
|
bool "Enable UART1"
|
|
|
|
default n
|
|
|
|
if BSP_USING_UART1
|
|
|
|
choice
|
|
|
|
prompt "UART1 TX PIN"
|
|
|
|
default UART1_TX_USING_GPIO4 if BSP_USING_BL60X
|
|
|
|
default UART1_TX_USING_GPIO16 if BSP_USING_BL61X
|
|
|
|
default UART1_TX_USING_GPIO26 if BSP_USING_BL70X
|
|
|
|
default UART1_TX_USING_GPIO18 if BSP_USING_BL808
|
|
|
|
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART1_TX_USING_GPIO0
|
|
|
|
bool "GPIO_0"
|
|
|
|
config UART1_TX_USING_GPIO1
|
|
|
|
bool "GPIO_1"
|
|
|
|
config UART1_TX_USING_GPIO2
|
|
|
|
bool "GPIO_2"
|
|
|
|
config UART1_TX_USING_GPIO3
|
|
|
|
bool "GPIO_3"
|
2023-03-19 14:41:18 +08:00
|
|
|
config UART1_TX_USING_GPIO4
|
|
|
|
bool "GPIO_4"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART1_TX_USING_GPIO5
|
|
|
|
bool "GPIO_5"
|
|
|
|
config UART1_TX_USING_GPIO6
|
|
|
|
bool "GPIO_6"
|
|
|
|
config UART1_TX_USING_GPIO7
|
|
|
|
bool "GPIO_7"
|
|
|
|
config UART1_TX_USING_GPIO8
|
|
|
|
bool "GPIO_8"
|
|
|
|
config UART1_TX_USING_GPIO9
|
|
|
|
bool "GPIO_9"
|
|
|
|
config UART1_TX_USING_GPIO10
|
|
|
|
bool "GPIO_10"
|
|
|
|
config UART1_TX_USING_GPIO11
|
|
|
|
bool "GPIO_11"
|
|
|
|
config UART1_TX_USING_GPIO12
|
|
|
|
bool "GPIO_12"
|
|
|
|
config UART1_TX_USING_GPIO13
|
|
|
|
bool "GPIO_13"
|
|
|
|
config UART1_TX_USING_GPIO14
|
|
|
|
bool "GPIO_14"
|
|
|
|
config UART1_TX_USING_GPIO15
|
|
|
|
bool "GPIO_15"
|
2023-03-19 14:41:18 +08:00
|
|
|
config UART1_TX_USING_GPIO16
|
|
|
|
bool "GPIO_16"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART1_TX_USING_GPIO17
|
|
|
|
bool "GPIO_17"
|
2023-03-19 14:41:18 +08:00
|
|
|
config UART1_TX_USING_GPIO18
|
|
|
|
bool "GPIO_18"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART1_TX_USING_GPIO19
|
|
|
|
bool "GPIO_19"
|
|
|
|
config UART1_TX_USING_GPIO20
|
|
|
|
bool "GPIO_20"
|
|
|
|
config UART1_TX_USING_GPIO21
|
|
|
|
bool "GPIO_21"
|
|
|
|
config UART1_TX_USING_GPIO22
|
|
|
|
bool "GPIO_22"
|
|
|
|
config UART1_TX_USING_GPIO23
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_23"
|
|
|
|
config UART1_TX_USING_GPIO24
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_24"
|
|
|
|
config UART1_TX_USING_GPIO25
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_25"
|
2023-03-19 14:41:18 +08:00
|
|
|
config UART1_TX_USING_GPIO26
|
2023-05-07 23:13:38 +08:00
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
2023-03-19 14:41:18 +08:00
|
|
|
bool "GPIO_26"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART1_TX_USING_GPIO27
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_27"
|
|
|
|
config UART1_TX_USING_GPIO28
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_28"
|
|
|
|
config UART1_TX_USING_GPIO29
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_29"
|
|
|
|
config UART1_TX_USING_GPIO30
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_30"
|
|
|
|
config UART1_TX_USING_GPIO31
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_31"
|
|
|
|
config UART1_TX_USING_GPIO32
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_32"
|
|
|
|
config UART1_TX_USING_GPIO33
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_33"
|
|
|
|
config UART1_TX_USING_GPIO34
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_34"
|
|
|
|
config UART1_TX_USING_GPIO35
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_35"
|
|
|
|
config UART1_TX_USING_GPIO36
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_36"
|
|
|
|
config UART1_TX_USING_GPIO37
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_37"
|
|
|
|
config UART1_TX_USING_GPIO38
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_38"
|
|
|
|
config UART1_TX_USING_GPIO39
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_39"
|
|
|
|
config UART1_TX_USING_GPIO44
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_44"
|
|
|
|
config UART1_TX_USING_GPIO45
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_45"
|
2023-03-19 14:41:18 +08:00
|
|
|
endchoice
|
2023-05-07 23:13:38 +08:00
|
|
|
|
2023-03-19 14:41:18 +08:00
|
|
|
choice
|
|
|
|
prompt "UART1 RX PIN"
|
|
|
|
default UART1_RX_USING_GPIO3 if BSP_USING_BL60X
|
|
|
|
default UART1_RX_USING_GPIO17 if BSP_USING_BL61X
|
|
|
|
default UART1_RX_USING_GPIO27 if BSP_USING_BL70X
|
|
|
|
default UART1_RX_USING_GPIO19 if BSP_USING_BL808
|
|
|
|
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART1_RX_USING_GPIO0
|
|
|
|
bool "GPIO_0"
|
|
|
|
config UART1_RX_USING_GPIO1
|
|
|
|
bool "GPIO_1"
|
|
|
|
config UART1_RX_USING_GPIO2
|
|
|
|
bool "GPIO_2"
|
2023-03-19 14:41:18 +08:00
|
|
|
config UART1_RX_USING_GPIO3
|
|
|
|
bool "GPIO_3"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART1_RX_USING_GPIO4
|
|
|
|
bool "GPIO_4"
|
2023-03-19 14:41:18 +08:00
|
|
|
config UART1_RX_USING_GPIO5
|
|
|
|
bool "GPIO_5"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART1_RX_USING_GPIO6
|
|
|
|
bool "GPIO_6"
|
|
|
|
config UART1_RX_USING_GPIO7
|
|
|
|
bool "GPIO_7"
|
|
|
|
config UART1_RX_USING_GPIO8
|
|
|
|
bool "GPIO_8"
|
|
|
|
config UART1_RX_USING_GPIO9
|
|
|
|
bool "GPIO_9"
|
|
|
|
config UART1_RX_USING_GPIO10
|
|
|
|
bool "GPIO_10"
|
|
|
|
config UART1_RX_USING_GPIO11
|
|
|
|
bool "GPIO_11"
|
|
|
|
config UART1_RX_USING_GPIO12
|
|
|
|
bool "GPIO_12"
|
|
|
|
config UART1_RX_USING_GPIO13
|
|
|
|
bool "GPIO_13"
|
|
|
|
config UART1_RX_USING_GPIO14
|
|
|
|
bool "GPIO_14"
|
|
|
|
config UART1_RX_USING_GPIO15
|
|
|
|
bool "GPIO_15"
|
|
|
|
config UART1_RX_USING_GPIO16
|
|
|
|
bool "GPIO_16"
|
2023-03-19 14:41:18 +08:00
|
|
|
config UART1_RX_USING_GPIO17
|
|
|
|
bool "GPIO_17"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART1_RX_USING_GPIO18
|
|
|
|
bool "GPIO_18"
|
2023-03-19 14:41:18 +08:00
|
|
|
config UART1_RX_USING_GPIO19
|
|
|
|
bool "GPIO_19"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART1_RX_USING_GPIO20
|
|
|
|
bool "GPIO_20"
|
|
|
|
config UART1_RX_USING_GPIO21
|
|
|
|
bool "GPIO_21"
|
|
|
|
config UART1_RX_USING_GPIO22
|
|
|
|
bool "GPIO_22"
|
|
|
|
config UART1_RX_USING_GPIO23
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_23"
|
|
|
|
config UART1_RX_USING_GPIO24
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_24"
|
|
|
|
config UART1_RX_USING_GPIO25
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_25"
|
|
|
|
config UART1_RX_USING_GPIO26
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_26"
|
2023-03-19 14:41:18 +08:00
|
|
|
config UART1_RX_USING_GPIO27
|
2023-05-07 23:13:38 +08:00
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
2023-03-19 14:41:18 +08:00
|
|
|
bool "GPIO_27"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART1_RX_USING_GPIO28
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_28"
|
|
|
|
config UART1_RX_USING_GPIO29
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_29"
|
|
|
|
config UART1_RX_USING_GPIO30
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_30"
|
|
|
|
config UART1_RX_USING_GPIO31
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_31"
|
|
|
|
config UART1_RX_USING_GPIO32
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_32"
|
|
|
|
config UART1_RX_USING_GPIO33
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_33"
|
|
|
|
config UART1_RX_USING_GPIO34
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_34"
|
|
|
|
config UART1_RX_USING_GPIO35
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_35"
|
|
|
|
config UART1_RX_USING_GPIO36
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_36"
|
|
|
|
config UART1_RX_USING_GPIO37
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_37"
|
|
|
|
config UART1_RX_USING_GPIO38
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_38"
|
|
|
|
config UART1_RX_USING_GPIO39
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_39"
|
|
|
|
config UART1_RX_USING_GPIO44
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_44"
|
|
|
|
config UART1_RX_USING_GPIO45
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_45"
|
2023-03-19 14:41:18 +08:00
|
|
|
endchoice
|
|
|
|
endif
|
|
|
|
|
2023-03-25 19:05:33 +08:00
|
|
|
if BSP_USING_BL808
|
|
|
|
menuconfig BSP_USING_UART2
|
|
|
|
bool "Enable UART2"
|
|
|
|
default n
|
|
|
|
if BSP_USING_UART2
|
|
|
|
choice
|
|
|
|
prompt "UART2 TX PIN"
|
|
|
|
default UART2_TX_USING_GPIO20
|
|
|
|
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART2_TX_USING_GPIO0
|
|
|
|
bool "GPIO_0"
|
|
|
|
config UART2_TX_USING_GPIO1
|
|
|
|
bool "GPIO_1"
|
|
|
|
config UART2_TX_USING_GPIO2
|
|
|
|
bool "GPIO_2"
|
|
|
|
config UART2_TX_USING_GPIO3
|
|
|
|
bool "GPIO_3"
|
2023-03-25 19:05:33 +08:00
|
|
|
config UART2_TX_USING_GPIO4
|
|
|
|
bool "GPIO_4"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART2_TX_USING_GPIO5
|
|
|
|
bool "GPIO_5"
|
|
|
|
config UART2_TX_USING_GPIO6
|
|
|
|
bool "GPIO_6"
|
|
|
|
config UART2_TX_USING_GPIO7
|
|
|
|
bool "GPIO_7"
|
|
|
|
config UART2_TX_USING_GPIO8
|
|
|
|
bool "GPIO_8"
|
|
|
|
config UART2_TX_USING_GPIO9
|
|
|
|
bool "GPIO_9"
|
|
|
|
config UART2_TX_USING_GPIO10
|
|
|
|
bool "GPIO_10"
|
|
|
|
config UART2_TX_USING_GPIO11
|
|
|
|
bool "GPIO_11"
|
|
|
|
config UART2_TX_USING_GPIO12
|
|
|
|
bool "GPIO_12"
|
|
|
|
config UART2_TX_USING_GPIO13
|
|
|
|
bool "GPIO_13"
|
|
|
|
config UART2_TX_USING_GPIO14
|
|
|
|
bool "GPIO_14"
|
|
|
|
config UART2_TX_USING_GPIO15
|
|
|
|
bool "GPIO_15"
|
2023-03-25 19:05:33 +08:00
|
|
|
config UART2_TX_USING_GPIO16
|
|
|
|
bool "GPIO_16"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART2_TX_USING_GPIO17
|
|
|
|
bool "GPIO_17"
|
2023-03-25 19:05:33 +08:00
|
|
|
config UART2_TX_USING_GPIO18
|
|
|
|
bool "GPIO_18"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART2_TX_USING_GPIO19
|
|
|
|
bool "GPIO_19"
|
2023-03-25 19:05:33 +08:00
|
|
|
config UART2_TX_USING_GPIO20
|
|
|
|
bool "GPIO_20"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART2_TX_USING_GPIO21
|
|
|
|
bool "GPIO_21"
|
|
|
|
config UART2_TX_USING_GPIO22
|
|
|
|
bool "GPIO_22"
|
|
|
|
config UART2_TX_USING_GPIO23
|
|
|
|
bool "GPIO_23"
|
|
|
|
config UART2_TX_USING_GPIO24
|
|
|
|
bool "GPIO_24"
|
|
|
|
config UART2_TX_USING_GPIO25
|
|
|
|
bool "GPIO_25"
|
|
|
|
config UART2_TX_USING_GPIO26
|
|
|
|
bool "GPIO_26"
|
|
|
|
config UART2_TX_USING_GPIO27
|
|
|
|
bool "GPIO_27"
|
|
|
|
config UART2_TX_USING_GPIO28
|
|
|
|
bool "GPIO_28"
|
|
|
|
config UART2_TX_USING_GPIO29
|
|
|
|
bool "GPIO_29"
|
|
|
|
config UART2_TX_USING_GPIO30
|
|
|
|
bool "GPIO_30"
|
|
|
|
config UART2_TX_USING_GPIO31
|
|
|
|
bool "GPIO_31"
|
|
|
|
config UART2_TX_USING_GPIO32
|
|
|
|
bool "GPIO_32"
|
|
|
|
config UART2_TX_USING_GPIO33
|
|
|
|
bool "GPIO_33"
|
|
|
|
config UART2_TX_USING_GPIO34
|
|
|
|
bool "GPIO_34"
|
|
|
|
config UART2_TX_USING_GPIO35
|
|
|
|
bool "GPIO_35"
|
|
|
|
config UART2_TX_USING_GPIO36
|
|
|
|
bool "GPIO_36"
|
|
|
|
config UART2_TX_USING_GPIO37
|
|
|
|
bool "GPIO_37"
|
|
|
|
config UART2_TX_USING_GPIO38
|
|
|
|
bool "GPIO_38"
|
|
|
|
config UART2_TX_USING_GPIO39
|
|
|
|
bool "GPIO_39"
|
|
|
|
config UART2_TX_USING_GPIO44
|
|
|
|
bool "GPIO_44"
|
|
|
|
config UART2_TX_USING_GPIO45
|
|
|
|
bool "GPIO_45"
|
2023-03-25 19:05:33 +08:00
|
|
|
endchoice
|
|
|
|
choice
|
|
|
|
prompt "UART2 RX PIN"
|
|
|
|
default UART2_RX_USING_GPIO21
|
|
|
|
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART2_RX_USING_GPIO0
|
|
|
|
bool "GPIO_0"
|
|
|
|
config UART2_RX_USING_GPIO1
|
|
|
|
bool "GPIO_1"
|
|
|
|
config UART2_RX_USING_GPIO2
|
|
|
|
bool "GPIO_2"
|
2023-03-25 19:05:33 +08:00
|
|
|
config UART2_RX_USING_GPIO3
|
|
|
|
bool "GPIO_3"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART2_RX_USING_GPIO4
|
|
|
|
bool "GPIO_4"
|
2023-03-25 19:05:33 +08:00
|
|
|
config UART2_RX_USING_GPIO5
|
|
|
|
bool "GPIO_5"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART2_RX_USING_GPIO6
|
|
|
|
bool "GPIO_6"
|
|
|
|
config UART2_RX_USING_GPIO7
|
|
|
|
bool "GPIO_7"
|
|
|
|
config UART2_RX_USING_GPIO8
|
|
|
|
bool "GPIO_8"
|
|
|
|
config UART2_RX_USING_GPIO9
|
|
|
|
bool "GPIO_9"
|
|
|
|
config UART2_RX_USING_GPIO10
|
|
|
|
bool "GPIO_10"
|
|
|
|
config UART2_RX_USING_GPIO11
|
|
|
|
bool "GPIO_11"
|
|
|
|
config UART2_RX_USING_GPIO12
|
|
|
|
bool "GPIO_12"
|
|
|
|
config UART2_RX_USING_GPIO13
|
|
|
|
bool "GPIO_13"
|
|
|
|
config UART2_RX_USING_GPIO13
|
|
|
|
bool "GPIO_13"
|
|
|
|
config UART2_RX_USING_GPIO14
|
|
|
|
bool "GPIO_14"
|
|
|
|
config UART2_RX_USING_GPIO15
|
|
|
|
bool "GPIO_15"
|
|
|
|
config UART2_RX_USING_GPIO16
|
|
|
|
bool "GPIO_16"
|
2023-03-25 19:05:33 +08:00
|
|
|
config UART2_RX_USING_GPIO17
|
|
|
|
bool "GPIO_17"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART2_RX_USING_GPIO18
|
|
|
|
bool "GPIO_18"
|
2023-03-25 19:05:33 +08:00
|
|
|
config UART2_RX_USING_GPIO19
|
|
|
|
bool "GPIO_19"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART2_RX_USING_GPIO20
|
|
|
|
bool "GPIO_20"
|
2023-03-25 19:05:33 +08:00
|
|
|
config UART2_RX_USING_GPIO21
|
|
|
|
bool "GPIO_21"
|
2023-05-07 23:13:38 +08:00
|
|
|
config UART2_RX_USING_GPIO22
|
|
|
|
bool "GPIO_22"
|
|
|
|
config UART2_RX_USING_GPIO23
|
|
|
|
bool "GPIO_23"
|
|
|
|
config UART2_RX_USING_GPIO24
|
|
|
|
bool "GPIO_24"
|
|
|
|
config UART2_RX_USING_GPIO25
|
|
|
|
bool "GPIO_25"
|
|
|
|
config UART2_RX_USING_GPIO26
|
|
|
|
bool "GPIO_26"
|
|
|
|
config UART2_RX_USING_GPIO27
|
|
|
|
bool "GPIO_27"
|
|
|
|
config UART2_RX_USING_GPIO28
|
|
|
|
bool "GPIO_28"
|
|
|
|
config UART2_RX_USING_GPIO29
|
|
|
|
bool "GPIO_29"
|
|
|
|
config UART2_RX_USING_GPIO30
|
|
|
|
bool "GPIO_30"
|
|
|
|
config UART2_RX_USING_GPIO31
|
|
|
|
bool "GPIO_31"
|
|
|
|
config UART2_RX_USING_GPIO32
|
|
|
|
bool "GPIO_32"
|
|
|
|
config UART2_RX_USING_GPIO33
|
|
|
|
bool "GPIO_33"
|
|
|
|
config UART2_RX_USING_GPIO34
|
|
|
|
bool "GPIO_34"
|
|
|
|
config UART2_RX_USING_GPIO35
|
|
|
|
bool "GPIO_35"
|
|
|
|
config UART2_RX_USING_GPIO36
|
|
|
|
bool "GPIO_36"
|
|
|
|
config UART2_RX_USING_GPIO37
|
|
|
|
bool "GPIO_37"
|
|
|
|
config UART2_RX_USING_GPIO38
|
|
|
|
bool "GPIO_38"
|
|
|
|
config UART2_RX_USING_GPIO39
|
|
|
|
bool "GPIO_39"
|
|
|
|
config UART2_RX_USING_GPIO44
|
|
|
|
bool "GPIO_44"
|
|
|
|
config UART2_RX_USING_GPIO45
|
|
|
|
bool "GPIO_45"
|
2023-03-25 19:05:33 +08:00
|
|
|
endchoice
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2023-03-19 14:41:18 +08:00
|
|
|
endmenu
|
|
|
|
|
2023-05-04 11:49:38 +08:00
|
|
|
config BSP_USING_GPIO
|
|
|
|
bool "Enable GPIO"
|
|
|
|
select RT_USING_PIN
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_ADC
|
|
|
|
bool "Enable ADC"
|
|
|
|
select RT_USING_ADC
|
|
|
|
default n
|
2024-02-29 23:22:57 +08:00
|
|
|
if BSP_USING_ADC
|
|
|
|
config BSP_ADC_DMA_CHANNEL
|
|
|
|
string "ADC DMA Channel Name"
|
|
|
|
default "dma0_ch2"
|
|
|
|
config BSP_USING_ADC_CH0
|
|
|
|
bool "USING ADC CH0"
|
|
|
|
default n
|
|
|
|
if BSP_USING_ADC_CH0
|
|
|
|
config BSP_ADC_CH0_PIN
|
|
|
|
int "ADC CH0 Pin Num (GPIO_X)"
|
|
|
|
default 17
|
|
|
|
endif
|
|
|
|
config BSP_USING_ADC_CH1
|
|
|
|
bool "USING ADC CH1"
|
|
|
|
default n
|
|
|
|
if BSP_USING_ADC_CH1
|
|
|
|
config BSP_ADC_CH1_PIN
|
|
|
|
int "ADC CH1 Pin Num (GPIO_X)"
|
|
|
|
default 5
|
|
|
|
endif
|
|
|
|
config BSP_USING_ADC_CH2
|
|
|
|
bool "USING ADC CH2"
|
|
|
|
default n
|
|
|
|
if BSP_USING_ADC_CH2
|
|
|
|
config BSP_ADC_CH2_PIN
|
|
|
|
int "ADC CH2 Pin Num (GPIO_X)"
|
|
|
|
default 4
|
|
|
|
endif
|
|
|
|
config BSP_USING_ADC_CH3
|
|
|
|
bool "USING ADC CH3"
|
|
|
|
default n
|
|
|
|
if BSP_USING_ADC_CH3
|
|
|
|
config BSP_ADC_CH3_PIN
|
|
|
|
int "ADC CH3 Pin Num (GPIO_X)"
|
|
|
|
default 11
|
|
|
|
endif
|
|
|
|
config BSP_USING_ADC_CH4
|
|
|
|
bool "USING ADC CH4"
|
|
|
|
default n
|
|
|
|
if BSP_USING_ADC_CH4
|
|
|
|
config BSP_ADC_CH4_PIN
|
|
|
|
int "ADC CH4 Pin Num (GPIO_X)"
|
|
|
|
default 6
|
|
|
|
endif
|
|
|
|
config BSP_USING_ADC_CH5
|
|
|
|
bool "USING ADC CH5"
|
|
|
|
default n
|
|
|
|
if BSP_USING_ADC_CH5
|
|
|
|
config BSP_ADC_CH5_PIN
|
|
|
|
int "ADC CH5 Pin Num (GPIO_X)"
|
|
|
|
default 40
|
|
|
|
endif
|
|
|
|
config BSP_USING_ADC_CH6
|
|
|
|
bool "USING ADC CH6"
|
|
|
|
default n
|
|
|
|
if BSP_USING_ADC_CH6
|
|
|
|
config BSP_ADC_CH6_PIN
|
|
|
|
int "ADC CH6 Pin Num (GPIO_X)"
|
|
|
|
default 12
|
|
|
|
endif
|
|
|
|
config BSP_USING_ADC_CH7
|
|
|
|
bool "USING ADC CH7"
|
|
|
|
default n
|
|
|
|
if BSP_USING_ADC_CH7
|
|
|
|
config BSP_ADC_CH7_PIN
|
|
|
|
int "ADC CH7 Pin Num (GPIO_X)"
|
|
|
|
default 13
|
|
|
|
endif
|
|
|
|
config BSP_USING_ADC_CH8
|
|
|
|
bool "USING ADC CH8"
|
|
|
|
default n
|
|
|
|
if BSP_USING_ADC_CH8
|
|
|
|
config BSP_ADC_CH8_PIN
|
|
|
|
int "ADC CH8 Pin Num (GPIO_X)"
|
|
|
|
default 16
|
|
|
|
endif
|
|
|
|
config BSP_USING_ADC_CH9
|
|
|
|
bool "USING ADC CH9"
|
|
|
|
default n
|
|
|
|
if BSP_USING_ADC_CH9
|
|
|
|
config BSP_ADC_CH9_PIN
|
|
|
|
int "ADC CH9 Pin Num (GPIO_X)"
|
|
|
|
default 18
|
|
|
|
endif
|
|
|
|
config BSP_USING_ADC_CH10
|
|
|
|
bool "USING ADC CH10"
|
|
|
|
default n
|
|
|
|
if BSP_USING_ADC_CH10
|
|
|
|
config BSP_ADC_CH10_PIN
|
|
|
|
int "ADC CH10 Pin Num (GPIO_X)"
|
|
|
|
default 19
|
|
|
|
endif
|
|
|
|
endif
|
2023-05-04 11:49:38 +08:00
|
|
|
|
|
|
|
config BSP_USING_RTC
|
2023-03-31 08:01:28 +08:00
|
|
|
bool "Enable RTC"
|
|
|
|
select RT_USING_RTC
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_WDT
|
|
|
|
bool "Enable Watchdog Timer"
|
|
|
|
select RT_USING_WDT
|
|
|
|
default n
|
|
|
|
|
|
|
|
menuconfig BSP_USING_PWM
|
|
|
|
bool "Enable PWM"
|
|
|
|
default n
|
|
|
|
select RT_USING_PWM
|
|
|
|
if BSP_USING_PWM
|
|
|
|
config BSP_USING_PWM0
|
|
|
|
bool "Enable PWM0"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_PWM1
|
|
|
|
bool "Enable PWM1"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_PWM2
|
|
|
|
bool "Enable PWM2"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_PWM3
|
|
|
|
bool "Enable PWM3"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
2023-04-15 15:34:36 +08:00
|
|
|
menuconfig BSP_USING_HWTIMER
|
|
|
|
bool "Enable HWTIMER"
|
|
|
|
default n
|
|
|
|
select RT_USING_HWTIMER
|
|
|
|
if BSP_USING_HWTIMER
|
|
|
|
config BSP_USING_TIMER0
|
|
|
|
bool "Enable TIMER0"
|
|
|
|
default n
|
|
|
|
config BSP_USING_TIMER1
|
|
|
|
bool "Enable TIMER1"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
2023-05-11 10:12:20 +08:00
|
|
|
menuconfig BSP_USING_I2C
|
2023-05-12 17:38:25 +08:00
|
|
|
bool "Enable I2C BUS"
|
2023-05-11 10:12:20 +08:00
|
|
|
default n
|
2023-05-12 17:38:25 +08:00
|
|
|
select RT_USING_I2C
|
2023-05-11 10:12:20 +08:00
|
|
|
if BSP_USING_I2C
|
2023-05-12 17:38:25 +08:00
|
|
|
config BSP_USING_HW_I2C
|
|
|
|
bool "Enable Hardware I2C BUS"
|
|
|
|
default n
|
|
|
|
if BSP_USING_HW_I2C
|
|
|
|
menuconfig BSP_USING_I2C0
|
|
|
|
bool "Enable I2C0 (hardware)"
|
|
|
|
default n
|
|
|
|
if BSP_USING_I2C0
|
|
|
|
choice
|
|
|
|
prompt "I2C0 SCL"
|
|
|
|
default I2C0_SCL_USING_GPIO14
|
2023-04-29 12:40:15 +08:00
|
|
|
|
2023-05-12 17:38:25 +08:00
|
|
|
config I2C0_SCL_USING_GPIO0
|
|
|
|
bool "GPIO_0"
|
|
|
|
config I2C0_SCL_USING_GPIO2
|
|
|
|
bool "GPIO_2"
|
|
|
|
config I2C0_SCL_USING_GPIO4
|
|
|
|
bool "GPIO_4"
|
|
|
|
config I2C0_SCL_USING_GPIO6
|
|
|
|
bool "GPIO_6"
|
|
|
|
config I2C0_SCL_USING_GPIO8
|
|
|
|
bool "GPIO_8"
|
|
|
|
config I2C0_SCL_USING_GPIO10
|
|
|
|
bool "GPIO_10"
|
|
|
|
config I2C0_SCL_USING_GPIO12
|
|
|
|
bool "GPIO_12"
|
|
|
|
config I2C0_SCL_USING_GPIO14
|
|
|
|
bool "GPIO_14"
|
|
|
|
config I2C0_SCL_USING_GPIO16
|
|
|
|
bool "GPIO_16"
|
|
|
|
config I2C0_SCL_USING_GPIO18
|
|
|
|
bool "GPIO_18"
|
|
|
|
config I2C0_SCL_USING_GPIO20
|
|
|
|
bool "GPIO_20"
|
|
|
|
config I2C0_SCL_USING_GPIO22
|
|
|
|
bool "GPIO_22"
|
|
|
|
config I2C0_SCL_USING_GPIO24
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_8"
|
|
|
|
config I2C0_SCL_USING_GPIO26
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_26"
|
|
|
|
config I2C0_SCL_USING_GPIO28
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_28"
|
|
|
|
config I2C0_SCL_USING_GPIO30
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_30"
|
|
|
|
config I2C0_SCL_USING_GPIO32
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_32"
|
|
|
|
config I2C0_SCL_USING_GPIO34
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_34"
|
|
|
|
config I2C0_SDA_USING_GPIO36
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_36"
|
|
|
|
config I2C0_SDA_USING_GPIO38
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_38"
|
|
|
|
config I2C0_SDA_USING_GPIO40
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_40"
|
|
|
|
config I2C1_SDA_USING_GPIO42
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_42"
|
|
|
|
config I2C0_SDA_USING_GPIO44
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_44"
|
|
|
|
endchoice
|
2023-04-29 12:40:15 +08:00
|
|
|
|
2023-05-12 17:38:25 +08:00
|
|
|
choice
|
|
|
|
prompt "I2C0 SDA"
|
|
|
|
default I2C0_SDA_USING_GPIO15
|
2023-04-29 12:40:15 +08:00
|
|
|
|
2023-05-12 17:38:25 +08:00
|
|
|
config I2C0_SDA_USING_GPIO1
|
|
|
|
bool "GPIO_1"
|
|
|
|
config I2C0_SDA_USING_GPIO3
|
|
|
|
bool "GPIO_3"
|
|
|
|
config I2C0_SDA_USING_GPIO5
|
|
|
|
bool "GPIO_5"
|
|
|
|
config I2C0_SDA_USING_GPIO7
|
|
|
|
bool "GPIO_7"
|
|
|
|
config I2C0_SDA_USING_GPIO9
|
|
|
|
bool "GPIO_9"
|
|
|
|
config I2C0_SDA_USING_GPIO11
|
|
|
|
bool "GPIO_11"
|
|
|
|
config I2C0_SDA_USING_GPIO13
|
|
|
|
bool "GPIO_13"
|
|
|
|
config I2C0_SDA_USING_GPIO15
|
|
|
|
bool "GPIO_15"
|
|
|
|
config I2C0_SDA_USING_GPIO17
|
|
|
|
bool "GPIO_17"
|
|
|
|
config I2C0_SDA_USING_GPIO19
|
|
|
|
bool "GPIO_19"
|
|
|
|
config I2C0_SDA_USING_GPIO21
|
|
|
|
bool "GPIO_21"
|
|
|
|
config I2C0_SDA_USING_GPIO23
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_23"
|
|
|
|
config I2C0_SDA_USING_GPIO25
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_25"
|
|
|
|
config I2C0_SDA_USING_GPIO27
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_27"
|
|
|
|
config I2C0_SDA_USING_GPIO29
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_29"
|
|
|
|
config I2C0_SDA_USING_GPIO31
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_31"
|
|
|
|
config I2C0_SDA_USING_GPIO33
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_33"
|
|
|
|
config I2C0_SDA_USING_GPIO35
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_35"
|
|
|
|
config I2C0_SDA_USING_GPIO37
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_37"
|
|
|
|
config I2C0_SDA_USING_GPIO39
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_39"
|
|
|
|
config I2C0_SDA_USING_GPIO41
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_41"
|
|
|
|
config I2C0_SDA_USING_GPIO43
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_43"
|
|
|
|
config I2C0_SDA_USING_GPIO45
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_45"
|
|
|
|
endchoice
|
2023-05-11 10:12:20 +08:00
|
|
|
|
2023-05-12 17:38:25 +08:00
|
|
|
config I2C0_FREQUENCY
|
|
|
|
int "I2C0 Frequency"
|
|
|
|
default 400000
|
|
|
|
endif
|
|
|
|
|
2023-05-11 10:12:20 +08:00
|
|
|
|
2023-05-12 17:38:25 +08:00
|
|
|
menuconfig BSP_USING_I2C1
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "Enable I2C1 (hardware)"
|
|
|
|
default n
|
|
|
|
if BSP_USING_I2C1
|
|
|
|
choice
|
|
|
|
prompt "I2C1 SCL"
|
|
|
|
default I2C1_SCL_USING_GPIO0
|
2023-05-11 10:12:20 +08:00
|
|
|
|
2023-05-12 17:38:25 +08:00
|
|
|
config I2C1_SCL_USING_GPIO0
|
|
|
|
bool "GPIO_0"
|
|
|
|
config I2C1_SCL_USING_GPIO2
|
|
|
|
bool "GPIO_2"
|
|
|
|
config I2C1_SCL_USING_GPIO4
|
|
|
|
bool "GPIO_4"
|
|
|
|
config I2C1_SCL_USING_GPIO6
|
|
|
|
bool "GPIO_6"
|
|
|
|
config I2C1_SCL_USING_GPIO8
|
|
|
|
bool "GPIO_8"
|
|
|
|
config I2C1_SCL_USING_GPIO10
|
|
|
|
bool "GPIO_10"
|
|
|
|
config I2C1_SCL_USING_GPIO12
|
|
|
|
bool "GPIO_12"
|
|
|
|
config I2C1_SCL_USING_GPIO14
|
|
|
|
bool "GPIO_14"
|
|
|
|
config I2C1_SCL_USING_GPIO16
|
|
|
|
bool "GPIO_16"
|
|
|
|
config I2C1_SCL_USING_GPIO18
|
|
|
|
bool "GPIO_18"
|
|
|
|
config I2C1_SCL_USING_GPIO20
|
|
|
|
bool "GPIO_20"
|
|
|
|
config I2C1_SCL_USING_GPIO22
|
|
|
|
bool "GPIO_22"
|
|
|
|
config I2C1_SCL_USING_GPIO24
|
|
|
|
bool "GPIO_24"
|
|
|
|
config I2C1_SCL_USING_GPIO26
|
|
|
|
bool "GPIO_26"
|
|
|
|
config I2C1_SCL_USING_GPIO28
|
|
|
|
bool "GPIO_28"
|
|
|
|
config I2C1_SCL_USING_GPIO30
|
|
|
|
bool "GPIO_30"
|
|
|
|
config I2C1_SCL_USING_GPIO32
|
|
|
|
bool "GPIO_32"
|
|
|
|
config I2C1_SCL_USING_GPIO34
|
|
|
|
bool "GPIO_34"
|
|
|
|
config I2C1_SDA_USING_GPIO36
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_36"
|
|
|
|
config I2C1_SDA_USING_GPIO38
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_38"
|
|
|
|
config I2C1_SDA_USING_GPIO40
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_40"
|
|
|
|
config I2C1_SDA_USING_GPIO42
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_42"
|
|
|
|
config I2C1_SDA_USING_GPIO44
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_44"
|
|
|
|
endchoice
|
2023-05-11 10:12:20 +08:00
|
|
|
|
2023-05-12 17:38:25 +08:00
|
|
|
choice
|
|
|
|
prompt "I2C1 SDA"
|
|
|
|
default I2C1_SDA_USING_GPIO1
|
2023-05-11 10:12:20 +08:00
|
|
|
|
2023-05-12 17:38:25 +08:00
|
|
|
config I2C1_SDA_USING_GPIO1
|
|
|
|
bool "GPIO_1"
|
|
|
|
config I2C1_SDA_USING_GPIO3
|
|
|
|
bool "GPIO_3"
|
|
|
|
config I2C1_SDA_USING_GPIO5
|
|
|
|
bool "GPIO_5"
|
|
|
|
config I2C1_SDA_USING_GPIO7
|
|
|
|
bool "GPIO_7"
|
|
|
|
config I2C1_SDA_USING_GPIO9
|
|
|
|
bool "GPIO_9"
|
|
|
|
config I2C1_SDA_USING_GPIO11
|
|
|
|
bool "GPIO_11"
|
|
|
|
config I2C1_SDA_USING_GPIO13
|
|
|
|
bool "GPIO_13"
|
|
|
|
config I2C1_SDA_USING_GPIO15
|
|
|
|
bool "GPIO_15"
|
|
|
|
config I2C1_SDA_USING_GPIO17
|
|
|
|
bool "GPIO_17"
|
|
|
|
config I2C1_SDA_USING_GPIO19
|
|
|
|
bool "GPIO_19"
|
|
|
|
config I2C1_SDA_USING_GPIO21
|
|
|
|
bool "GPIO_21"
|
|
|
|
config I2C1_SDA_USING_GPIO23
|
|
|
|
bool "GPIO_23"
|
|
|
|
config I2C1_SDA_USING_GPIO25
|
|
|
|
bool "GPIO_25"
|
|
|
|
config I2C1_SDA_USING_GPIO27
|
|
|
|
bool "GPIO_27"
|
|
|
|
config I2C1_SDA_USING_GPIO29
|
|
|
|
bool "GPIO_29"
|
|
|
|
config I2C1_SDA_USING_GPIO31
|
|
|
|
bool "GPIO_31"
|
|
|
|
config I2C1_SDA_USING_GPIO33
|
|
|
|
bool "GPIO_33"
|
|
|
|
config I2C1_SDA_USING_GPIO35
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_35"
|
|
|
|
config I2C1_SDA_USING_GPIO37
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_37"
|
|
|
|
config I2C1_SDA_USING_GPIO39
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_39"
|
|
|
|
config I2C1_SDA_USING_GPIO41
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_41"
|
|
|
|
config I2C1_SDA_USING_GPIO43
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_43"
|
|
|
|
config I2C1_SDA_USING_GPIO45
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_45"
|
|
|
|
endchoice
|
2023-05-11 10:12:20 +08:00
|
|
|
|
2023-05-12 17:38:25 +08:00
|
|
|
config I2C1_FREQUENCY
|
|
|
|
int "I2C1 Frequency"
|
|
|
|
default 400000
|
|
|
|
endif
|
|
|
|
|
2023-05-11 10:12:20 +08:00
|
|
|
endif
|
2023-05-12 17:38:25 +08:00
|
|
|
if !BSP_USING_HW_I2C
|
|
|
|
menuconfig BSP_USING_SOFT_I2C1
|
|
|
|
bool "Enable I2C1 BUS (software simulation)"
|
|
|
|
select RT_USING_I2C_BITOPS
|
|
|
|
select BSP_USING_GPIO
|
|
|
|
default n
|
|
|
|
if BSP_USING_SOFT_I2C1
|
|
|
|
choice
|
|
|
|
prompt "I2C1 SCL"
|
|
|
|
default SOFT_I2C1_SCL_USING_GPIO0
|
|
|
|
|
|
|
|
config SOFT_I2C1_SCL_USING_GPIO0
|
|
|
|
bool "GPIO_0"
|
|
|
|
config SOFT_I2C1_SCL_USING_GPIO2
|
|
|
|
bool "GPIO_2"
|
|
|
|
config SOFT_I2C1_SCL_USING_GPIO4
|
|
|
|
bool "GPIO_4"
|
|
|
|
config SOFT_I2C1_SCL_USING_GPIO6
|
|
|
|
bool "GPIO_6"
|
|
|
|
config SOFT_I2C1_SCL_USING_GPIO8
|
|
|
|
bool "GPIO_8"
|
|
|
|
config SOFT_I2C1_SCL_USING_GPIO10
|
|
|
|
bool "GPIO_10"
|
|
|
|
config SOFT_I2C1_SCL_USING_GPIO12
|
|
|
|
bool "GPIO_12"
|
|
|
|
config SOFT_I2C1_SCL_USING_GPIO14
|
|
|
|
bool "GPIO_14"
|
|
|
|
config SOFT_I2C1_SCL_USING_GPIO16
|
|
|
|
bool "GPIO_16"
|
|
|
|
config SOFT_I2C1_SCL_USING_GPIO18
|
|
|
|
bool "GPIO_18"
|
|
|
|
config SOFT_I2C1_SCL_USING_GPIO20
|
|
|
|
bool "GPIO_20"
|
|
|
|
config SOFT_I2C1_SCL_USING_GPIO22
|
|
|
|
bool "GPIO_22"
|
|
|
|
config SOFT_I2C1_SCL_USING_GPIO24
|
|
|
|
bool "GPIO_8"
|
|
|
|
config SOFT_I2C1_SCL_USING_GPIO26
|
|
|
|
bool "GPIO_26"
|
|
|
|
config SOFT_I2C1_SCL_USING_GPIO28
|
|
|
|
bool "GPIO_28"
|
|
|
|
config SOFT_I2C1_SCL_USING_GPIO30
|
|
|
|
bool "GPIO_30"
|
|
|
|
config SOFT_I2C1_SCL_USING_GPIO32
|
|
|
|
bool "GPIO_32"
|
|
|
|
config SOFT_I2C1_SCL_USING_GPIO34
|
|
|
|
bool "GPIO_34"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO36
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_36"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO38
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_38"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO40
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_40"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO42
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_42"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO44
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_44"
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "I2C1 SDA"
|
|
|
|
default SOFT_I2C1_SDA_USING_GPIO1
|
|
|
|
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO1
|
|
|
|
bool "GPIO_1"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO3
|
|
|
|
bool "GPIO_3"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO5
|
|
|
|
bool "GPIO_5"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO7
|
|
|
|
bool "GPIO_7"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO9
|
|
|
|
bool "GPIO_9"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO11
|
|
|
|
bool "GPIO_11"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO13
|
|
|
|
bool "GPIO_13"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO15
|
|
|
|
bool "GPIO_15"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO17
|
|
|
|
bool "GPIO_17"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO19
|
|
|
|
bool "GPIO_19"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO21
|
|
|
|
bool "GPIO_21"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO23
|
|
|
|
bool "GPIO_23"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO25
|
|
|
|
bool "GPIO_25"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO27
|
|
|
|
bool "GPIO_27"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO29
|
|
|
|
bool "GPIO_29"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO31
|
|
|
|
bool "GPIO_31"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO33
|
|
|
|
bool "GPIO_33"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO35
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_35"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO37
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_37"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO39
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_39"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO41
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_41"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO43
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_43"
|
|
|
|
config SOFT_I2C1_SDA_USING_GPIO45
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_45"
|
|
|
|
endchoice
|
|
|
|
endif
|
|
|
|
endif
|
2023-04-29 12:40:15 +08:00
|
|
|
endif
|
|
|
|
|
2023-05-04 11:49:38 +08:00
|
|
|
menuconfig BSP_USING_SPI
|
|
|
|
bool "Enable SPI"
|
|
|
|
select RT_USING_SPI
|
2023-06-30 06:50:24 +08:00
|
|
|
select RT_USING_PIN
|
2023-05-04 11:49:38 +08:00
|
|
|
default n
|
|
|
|
|
|
|
|
if BSP_USING_SPI
|
|
|
|
choice
|
|
|
|
prompt "SPI SCK PIN"
|
|
|
|
default SPI_SCK_USING_GPIO3 if BSP_USING_BL60X
|
|
|
|
default SPI_SCK_USING_GPIO13 if BSP_USING_BL61X
|
|
|
|
default SPI_SCK_USING_GPIO15 if BSP_USING_BL70X
|
|
|
|
default SPI_SCK_USING_GPIO19 if BSP_USING_BL808
|
|
|
|
|
|
|
|
config SPI_SCK_USING_GPIO1
|
|
|
|
depends on BSP_USING_BL61X
|
|
|
|
bool "GPIO_1"
|
|
|
|
config SPI_SCK_USING_GPIO3
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_3"
|
|
|
|
config SPI_SCK_USING_GPIO5
|
|
|
|
depends on BSP_USING_BL61X
|
|
|
|
bool "GPIO_5"
|
|
|
|
config SPI_SCK_USING_GPIO7
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_7"
|
|
|
|
config SPI_SCK_USING_GPIO9
|
|
|
|
depends on BSP_USING_BL61X
|
|
|
|
bool "GPIO_9"
|
|
|
|
config SPI_SCK_USING_GPIO11
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_11"
|
|
|
|
config SPI_SCK_USING_GPIO13
|
|
|
|
depends on BSP_USING_BL61X
|
|
|
|
bool "GPIO_13"
|
|
|
|
config SPI_SCK_USING_GPIO15
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_15"
|
|
|
|
config SPI_SCK_USING_GPIO17
|
|
|
|
depends on BSP_USING_BL61X
|
|
|
|
bool "GPIO_17"
|
|
|
|
config SPI_SCK_USING_GPIO19
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_19"
|
|
|
|
config SPI_SCK_USING_GPIO21
|
|
|
|
depends on BSP_USING_BL61X
|
|
|
|
bool "GPIO_21"
|
|
|
|
config SPI_SCK_USING_GPIO23
|
|
|
|
depends on BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_23"
|
|
|
|
config SPI_SCK_USING_GPIO25
|
|
|
|
depends on BSP_USING_BL61X
|
|
|
|
bool "GPIO_25"
|
|
|
|
config SPI_SCK_USING_GPIO27
|
|
|
|
depends on BSP_USING_BL70X || BSP_USING_BL808
|
|
|
|
bool "GPIO_27"
|
|
|
|
config SPI_SCK_USING_GPIO29
|
|
|
|
depends on BSP_USING_BL61X
|
|
|
|
bool "GPIO_29"
|
|
|
|
config SPI_SCK_USING_GPIO31
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_31"
|
|
|
|
config SPI_SCK_USING_GPIO33
|
|
|
|
depends on BSP_USING_BL61X
|
|
|
|
bool "GPIO_33"
|
|
|
|
config SPI_SCK_USING_GPIO35
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_35"
|
|
|
|
config SPI_SCK_USING_GPIO39
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_39"
|
|
|
|
config SPI_SCK_USING_GPIO43
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_43"
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "SPI MISO PIN"
|
|
|
|
default SPI_MISO_USING_GPIO0 if BSP_USING_BL60X
|
|
|
|
default SPI_MISO_USING_GPIO10 if BSP_USING_BL61X
|
|
|
|
default SPI_MISO_USING_GPIO17 if BSP_USING_BL70X
|
|
|
|
default SPI_MISO_USING_GPIO22 if BSP_USING_BL808
|
|
|
|
|
|
|
|
config SPI_MISO_USING_GPIO0
|
|
|
|
depends on BSP_USING_BL60X
|
|
|
|
bool "GPIO_0"
|
|
|
|
config SPI_MISO_USING_GPIO1
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL70X
|
|
|
|
bool "GPIO_1"
|
|
|
|
config SPI_MISO_USING_GPIO2
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_2"
|
|
|
|
config SPI_MISO_USING_GPIO4
|
|
|
|
depends on BSP_USING_BL60X
|
|
|
|
bool "GPIO_4"
|
|
|
|
config SPI_MISO_USING_GPIO5
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL70X
|
|
|
|
bool "GPIO_5"
|
|
|
|
config SPI_MISO_USING_GPIO6
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_6"
|
|
|
|
config SPI_MISO_USING_GPIO8
|
|
|
|
depends on BSP_USING_BL60X
|
|
|
|
bool "GPIO_8"
|
|
|
|
config SPI_MISO_USING_GPIO9
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL70X
|
|
|
|
bool "GPIO_9"
|
|
|
|
config SPI_MISO_USING_GPIO10
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_10"
|
|
|
|
config SPI_MISO_USING_GPIO12
|
|
|
|
depends on BSP_USING_BL60X
|
|
|
|
bool "GPIO_12"
|
|
|
|
config SPI_MISO_USING_GPIO13
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL60X
|
|
|
|
bool "GPIO_13"
|
|
|
|
config SPI_MISO_USING_GPIO14
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_14"
|
|
|
|
config SPI_MISO_USING_GPIO16
|
|
|
|
depends on BSP_USING_BL60X
|
|
|
|
bool "GPIO_16"
|
|
|
|
config SPI_MISO_USING_GPIO17
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL70X
|
|
|
|
bool "GPIO_17"
|
|
|
|
config SPI_MISO_USING_GPIO18
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_18"
|
|
|
|
config SPI_MISO_USING_GPIO20
|
|
|
|
depends on BSP_USING_BL60X
|
|
|
|
bool "GPIO_20"
|
|
|
|
config SPI_MISO_USING_GPIO21
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL70X
|
|
|
|
bool "GPIO_21"
|
|
|
|
config SPI_MISO_USING_GPIO22
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_22"
|
|
|
|
config SPI_MISO_USING_GPIO25
|
|
|
|
depends on BSP_USING_BL70X
|
|
|
|
bool "GPIO_25"
|
|
|
|
config SPI_MISO_USING_GPIO26
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_26"
|
|
|
|
config SPI_MISO_USING_GPIO29
|
|
|
|
depends on BSP_USING_BL70X
|
|
|
|
bool "GPIO_29"
|
|
|
|
config SPI_MISO_USING_GPIO30
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
bool "GPIO_30"
|
|
|
|
config SPI_MISO_USING_GPIO34
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_34"
|
|
|
|
config SPI_MISO_USING_GPIO38
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_38"
|
|
|
|
config SPI_MISO_USING_GPIO42
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_42"
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "SPI MOSI PIN"
|
|
|
|
default SPI_MOSI_USING_GPIO1 if BSP_USING_BL60X
|
|
|
|
default SPI_MOSI_USING_GPIO11 if BSP_USING_BL61X
|
|
|
|
default SPI_MOSI_USING_GPIO16 if BSP_USING_BL70X
|
|
|
|
default SPI_MOSI_USING_GPIO21 if BSP_USING_BL808
|
|
|
|
|
|
|
|
config SPI_MOSI_USING_GPIO0
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL70X
|
|
|
|
bool "GPIO_0"
|
|
|
|
config SPI_MOSI_USING_GPIO1
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL808
|
|
|
|
bool "GPIO_1"
|
|
|
|
config SPI_MOSI_USING_GPIO3
|
|
|
|
depends on BSP_USING_BL61X
|
|
|
|
bool "GPIO_3"
|
|
|
|
config SPI_MOSI_USING_GPIO4
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL70X
|
|
|
|
bool "GPIO_4"
|
|
|
|
config SPI_MOSI_USING_GPIO5
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL808
|
|
|
|
bool "GPIO_5"
|
|
|
|
config SPI_MOSI_USING_GPIO7
|
|
|
|
depends on BSP_USING_BL61X
|
|
|
|
bool "GPIO_7"
|
|
|
|
config SPI_MOSI_USING_GPIO8
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL70X
|
|
|
|
bool "GPIO_8"
|
|
|
|
config SPI_MOSI_USING_GPIO9
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL808
|
|
|
|
bool "GPIO_9"
|
|
|
|
config SPI_MOSI_USING_GPIO11
|
|
|
|
depends on BSP_USING_BL61X
|
|
|
|
bool "GPIO_11"
|
|
|
|
config SPI_MOSI_USING_GPIO12
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL70X
|
|
|
|
bool "GPIO_12"
|
|
|
|
config SPI_MOSI_USING_GPIO13
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL808
|
|
|
|
bool "GPIO_13"
|
|
|
|
config SPI_MOSI_USING_GPIO15
|
|
|
|
depends on BSP_USING_BL61X
|
|
|
|
bool "GPIO_15"
|
|
|
|
config SPI_MOSI_USING_GPIO16
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL70X
|
|
|
|
bool "GPIO_16"
|
|
|
|
config SPI_MOSI_USING_GPIO17
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL808
|
|
|
|
bool "GPIO_17"
|
|
|
|
config SPI_MOSI_USING_GPIO19
|
|
|
|
depends on BSP_USING_BL61X
|
|
|
|
bool "GPIO_19"
|
|
|
|
config SPI_MOSI_USING_GPIO20
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL70X
|
|
|
|
bool "GPIO_20"
|
|
|
|
config SPI_MOSI_USING_GPIO21
|
|
|
|
depends on BSP_USING_BL60X || BSP_USING_BL808
|
|
|
|
bool "GPIO_21"
|
|
|
|
config SPI_MOSI_USING_GPIO23
|
|
|
|
depends on BSP_USING_BL61X
|
|
|
|
bool "GPIO_23"
|
|
|
|
config SPI_MOSI_USING_GPIO24
|
|
|
|
depends on BSP_USING_BL70X
|
|
|
|
bool "GPIO_24"
|
|
|
|
config SPI_MOSI_USING_GPIO25
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_25"
|
|
|
|
config SPI_MOSI_USING_GPIO27
|
|
|
|
depends on BSP_USING_BL61X
|
|
|
|
bool "GPIO_27"
|
|
|
|
config SPI_MOSI_USING_GPIO28
|
|
|
|
depends on BSP_USING_BL70X
|
|
|
|
bool "GPIO_28"
|
|
|
|
config SPI_MOSI_USING_GPIO29
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_29"
|
|
|
|
config SPI_MOSI_USING_GPIO31
|
|
|
|
depends on BSP_USING_BL61X
|
|
|
|
bool "GPIO_31"
|
|
|
|
config SPI_MOSI_USING_GPIO33
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_33"
|
|
|
|
config SPI_MOSI_USING_GPIO37
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_37"
|
|
|
|
config SPI_MOSI_USING_GPIO41
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_41"
|
|
|
|
config SPI_MOSI_USING_GPIO45
|
|
|
|
depends on BSP_USING_BL808
|
|
|
|
bool "GPIO_45"
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config BSP_SPI_TX_USING_DMA
|
|
|
|
bool "Enable SPI TX DMA"
|
|
|
|
default n
|
|
|
|
if BSP_SPI_TX_USING_DMA
|
|
|
|
config BSP_SPI_TX_DMA_CHANNEL
|
|
|
|
string "SPI TX DMA Channel Name"
|
|
|
|
default "dma0_ch0"
|
|
|
|
|
|
|
|
config BSP_SPI_TX_DMA_TIMEOUT
|
|
|
|
int "SPI TX DMA Timeout(ms)"
|
|
|
|
default 10
|
|
|
|
range 5 100
|
|
|
|
|
|
|
|
config BSP_SPI_TX_DMA_NOCACHE_BUFSIZE
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
int "SPI TX DMA Nocache Buffer Size"
|
|
|
|
default 512
|
|
|
|
range 0 4095
|
|
|
|
endif
|
|
|
|
|
|
|
|
config BSP_SPI_RX_USING_DMA
|
|
|
|
bool "Enable SPI RX DMA"
|
|
|
|
default n
|
|
|
|
if BSP_SPI_RX_USING_DMA
|
|
|
|
config BSP_SPI_RX_DMA_CHANNEL
|
|
|
|
string "SPI RX DMA Channel Name"
|
|
|
|
default "dma0_ch1"
|
|
|
|
|
|
|
|
config BSP_SPI_RX_DMA_TIMEOUT
|
|
|
|
int "SPI RX DMA Timeout(ms)"
|
|
|
|
default 10
|
|
|
|
range 5 100
|
|
|
|
|
|
|
|
config BSP_SPI_RX_DMA_NOCACHE_BUFSIZE
|
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
|
|
|
int "SPI RX DMA Nocache Buffer Size"
|
|
|
|
default 512
|
|
|
|
range 0 4095
|
|
|
|
endif
|
|
|
|
endif
|
2023-06-08 23:39:52 +08:00
|
|
|
|
|
|
|
menuconfig BSP_USING_ON_CHIP_FLASH
|
2023-05-04 11:49:38 +08:00
|
|
|
bool "Enable On-Chip FLASH"
|
2023-06-08 23:39:52 +08:00
|
|
|
select FAL_DEBUG_CONFIG
|
|
|
|
select FAL_PART_HAS_TABLE_CFG
|
2023-05-04 11:49:38 +08:00
|
|
|
default n
|
2023-06-08 23:39:52 +08:00
|
|
|
if BSP_USING_ON_CHIP_FLASH
|
|
|
|
config BSP_USING_ON_CHIP_FLASH_FS
|
|
|
|
bool "Enable On-Chip FLASH File System"
|
|
|
|
select PKG_USING_LITTLEFS
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
2023-05-29 09:47:25 +08:00
|
|
|
config BSP_USING_SDH
|
2023-06-08 23:39:52 +08:00
|
|
|
depends on BSP_USING_BL61X || BSP_USING_BL808
|
2023-05-29 09:47:25 +08:00
|
|
|
select RT_USING_SDIO
|
|
|
|
select RT_USING_DFS
|
2023-05-04 11:49:38 +08:00
|
|
|
select RT_USING_DFS_ELMFAT
|
2023-06-08 23:39:52 +08:00
|
|
|
select RT_USING_DFS_ROMFS
|
|
|
|
bool "Enable Secure Digital Host Controller(SDH)"
|
2023-05-04 11:49:38 +08:00
|
|
|
default n
|
2023-06-08 23:39:52 +08:00
|
|
|
|
2023-03-19 14:41:18 +08:00
|
|
|
endmenu
|