component/bt:Change the bt Kconfig BT_ACL_CONNECTIONS type from choice to int(range).

pull/548/head
Yulong 2017-04-26 05:27:21 -04:00
rodzic c31953a005
commit 54aaeacb32
1 zmienionych plików z 4 dodań i 29 usunięć

Wyświetl plik

@ -66,39 +66,14 @@ config BT_STACK_NO_LOG
help help
This select can save the rodata code size This select can save the rodata code size
choice BT_ACL_CONNECTIONS config BT_ACL_CONNECTIONS
prompt "BT/BLE MAX ACL CONNECTIONS" int "BT/BLE MAX ACL CONNECTIONS(1~7)"
depends on BLUEDROID_ENABLED depends on BLUEDROID_ENABLED
default BT_ACL_CONNECTION_4 range 1 7
default 4
help help
Maximum BT/BLE connection count Maximum BT/BLE connection count
config BT_ACL_CONNECTION_1
bool "1 ACL CONNECT"
config BT_ACL_CONNECTION_2
bool "2 ACL CONNECT"
config BT_ACL_CONNECTION_3
bool "3 ACL CONNECT"
config BT_ACL_CONNECTION_4
bool "4 ACL CONNECT"
config BT_ACL_CONNECTION_5
bool "5 ACL CONNECT"
config BT_ACL_CONNECTION_6
bool "6 ACL CONNECT"
config BT_ACL_CONNECTION_7
bool "7 ACL CONNECT"
endchoice
config BT_ACL_CONNECTIONS
int
default 1 if BT_ACL_CONNECTION_1
default 2 if BT_ACL_CONNECTION_2
default 3 if BT_ACL_CONNECTION_3
default 4 if BT_ACL_CONNECTION_4
default 5 if BT_ACL_CONNECTION_5
default 6 if BT_ACL_CONNECTION_6
default 7 if BT_ACL_CONNECTION_7
#disable now for app cpu due to a known issue #disable now for app cpu due to a known issue
config BTDM_CONTROLLER_RUN_APP_CPU config BTDM_CONTROLLER_RUN_APP_CPU
bool "Run controller on APP CPU" bool "Run controller on APP CPU"