-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fluoride: add fluoride into nuttx build
Change-Id: Ib1b2bc007be5cb9a5613ec811028eaa8c7420590 Signed-off-by: chao.an <[email protected]>
- Loading branch information
Showing
73 changed files
with
4,692 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
buildtools | ||
out | ||
third_party | ||
*.o | ||
.built | ||
.depend | ||
Make.dep | ||
tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,232 @@ | ||
# | ||
# For a description of the syntax of this configuration file, | ||
# see kconfig-language at https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt | ||
# | ||
|
||
menuconfig LIB_FLUORIDE | ||
bool "The Fluoride Bluetooth stack" | ||
default n | ||
select EVENT_FD | ||
select DEV_URANDOM | ||
select LIB_CHROMIUM | ||
select LIB_TINYXML2 | ||
select SIM_WALLTIME if SIM | ||
help | ||
Enable support for the Fluoride Bluetooth stack | ||
|
||
if LIB_FLUORIDE | ||
|
||
config FLUORIDE_SERVICE_CLASS | ||
hex "Fluoride Service Class" | ||
default 0x20 | ||
|
||
config FLUORIDE_MAJOR_CLASS | ||
hex "Fluoride Major Class" | ||
default 0x40 | ||
|
||
config FLUORIDE_MINOR_CLASS | ||
hex "Fluoride Major Class" | ||
default 0x08 | ||
|
||
config FLUORIDE_DEVICE_NAME | ||
string "Bluetooth device name" | ||
default "NuttX Fluoride" | ||
help | ||
Bluetooth device name. | ||
|
||
config FLUORIDE_FILE_PATH | ||
string "Fluoride config path" | ||
default "/data/bt_config.conf" | ||
|
||
config FLUORIDE_BACKUP_PATH | ||
string "Fluoride config backup path" | ||
default "/data/bt_config.bak" | ||
|
||
config FLUORIDE_LEGACY_FILE_PATH | ||
string "Fluoride config backup path" | ||
default "/data/bt_config.xml" | ||
|
||
config FLUORIDE_BTE_DID_CONF_FILE | ||
string "Fluoride bte did config file" | ||
default "/data/bt_did.conf" | ||
|
||
config FLUORIDE_STACK_CONFIG_PATH | ||
string "Fluoride stack config path" | ||
default "/data/bt_stack.conf" | ||
|
||
config FLUORIDE_HCI_H4 | ||
bool "H:4 UART" | ||
default n | ||
help | ||
Bluetooth H:4 UART driver. Requires hardware flow control | ||
lines to be available. | ||
|
||
config FLUORIDE_HCI_USB | ||
bool "H:2 USB" | ||
default n | ||
help | ||
Bluetooth H:2 USB driver. | ||
|
||
config FLUORIDE_HCI_RX_STACKSIZE | ||
int "BT HCI RX thread stack size" | ||
default DEFAULT_TASK_STACKSIZE | ||
help | ||
Bluetooth HCI RX thread stack size. | ||
|
||
if FLUORIDE_HCI_H4 | ||
|
||
config FLUORIDE_HCI_UART_NAME | ||
string "Device Name of UART Device for Bluetooth" | ||
default "/dev/ttyBT" | ||
help | ||
This option specifies the name of UART device to be used | ||
for Bluetooth. | ||
|
||
endif | ||
|
||
config FLUORIDE_LOG_LEVEL | ||
int "Fluoride Debug Log Level" | ||
default 0 | ||
help | ||
Sets log level for the Fluoride stack. | ||
|
||
config BTA_GATTC_KNOWN_SR_MAX | ||
int "Max known devices GATTC can support in Bluetooth spec." | ||
default 25 | ||
help | ||
Max known devices GATTC can support in Bluetooth spec. | ||
|
||
config BTA_GATTC_CL_MAX | ||
int "Max client application GATTC can support" | ||
default 8 | ||
help | ||
Max client application GATTC can support | ||
|
||
config BTA_DM_SDP_DB_SIZE | ||
int "Max DM SDP Database size" | ||
default 10240 | ||
help | ||
Max DM SDP Database size | ||
|
||
config GATT_CL_MAX_LCB | ||
int "Max GATT CL LCB" | ||
default 8 | ||
help | ||
Max GATT CL LCB | ||
|
||
config HF_CLIENT_MAX_DEVICES | ||
int "Maximum number of HF devices supported simultaneously" | ||
default 2 | ||
help | ||
Maximum number of HF devices supported simultaneously | ||
|
||
config SDP_MAX_CONNECTIONS | ||
int "The maximum number of simultaneous client and server connections." | ||
default 2 | ||
help | ||
The maximum number of simultaneous client and server connections. | ||
|
||
config BT_RC_NUM_APP | ||
int "Change this macro to use multiple RC" | ||
default 2 | ||
help | ||
Change this macro to use multiple RC. | ||
|
||
config AVDT_NUM_LINKS | ||
int "Number of simultaneous links to different peer devices." | ||
default 6 | ||
help | ||
Number of simultaneous links to different peer devices. | ||
|
||
config AVDT_NUM_SEPS | ||
int "Number of simultaneous stream endpoints." | ||
default 2 | ||
help | ||
Number of simultaneous stream endpoints. | ||
|
||
config MAX_ACL_CONNECTIONS | ||
int "The maximum number of simultaneous links that ACL can support." | ||
default 2 | ||
help | ||
The maximum number of simultaneous links that ACL can support. | ||
|
||
config SDP_MAX_RECORDS | ||
int "The maximum number of SDP records the server can support." | ||
default 5 | ||
help | ||
The maximum number of SDP records the server can support. | ||
|
||
config SDP_MAX_REC_ATTR | ||
int "The maximum number of attributes in each record." | ||
default 5 | ||
help | ||
The maximum number of attributes in each record. | ||
|
||
config SDP_MAX_DISC_SERVER_RECS | ||
int "The maximum number of record handles retrieved in a search." | ||
default 5 | ||
help | ||
The maximum number of record handles retrieved in a search. | ||
|
||
config BTM_MAX_SCO_LINKS | ||
int "The number of SCO links." | ||
default 2 | ||
help | ||
The number of SCO links. | ||
|
||
config BTM_SEC_MAX_DEVICE_RECORDS | ||
int "The number of security records for peer devices." | ||
default 20 | ||
help | ||
The number of security records for peer devices. | ||
|
||
config BTM_SEC_MAX_SERVICE_RECORDS | ||
int "The number of security records for services." | ||
default 8 | ||
help | ||
The number of security records for services. | ||
|
||
config BTM_INQ_DB_SIZE | ||
int "The size in bytes of the BTM inquiry database." | ||
default 10 | ||
help | ||
The size in bytes of the BTM inquiry database. | ||
|
||
config BTM_LOCAL_IO_CAPS | ||
int "The IO capability of the local device (for Simple Pairing)." | ||
default 3 | ||
help | ||
The IO capability of the local device (for Simple Pairing). | ||
|
||
config SC_MODE_INCLUDED | ||
bool "4.1/4.2 secure connections feature" | ||
default n | ||
help | ||
The option of 4.1/4.2 secure connections feature | ||
|
||
config FLUORIDE_EXAMPLES | ||
bool "Enable Fluoride Examples" | ||
default n | ||
help | ||
Activate examples that provides Bluetooth commands to the | ||
console. | ||
|
||
if FLUORIDE_EXAMPLES | ||
|
||
config FLUORIDE_EXAMPLES_A2DP_SINK | ||
bool "Enable Fluoride A2DP Sink Example" | ||
default n | ||
help | ||
Enable Fluoride A2DP Sink Example | ||
|
||
endif | ||
|
||
if AUDIO | ||
|
||
config FLUORIDE_A2DP_SINK_DEVNAME | ||
string "Fluoride Avrcp A2DP Sink Device Name" | ||
default "/dev/audio/pcm0p" | ||
|
||
endif | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
############################################################################ | ||
# external/external/zblue/Make.defs | ||
# | ||
# Copyright (C) 2020 Xiaomi Inc. All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions | ||
# are met: | ||
# | ||
# 1. Redistributions of source code must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# 2. Redistributions in binary form must reproduce the above copyright | ||
# notice, this list of conditions and the following disclaimer in | ||
# the documentation and/or other materials provided with the | ||
# distribution. | ||
# 3. Neither the name NuttX nor the names of its contributors may be | ||
# used to endorse or promote products derived from this software | ||
# without specific prior written permission. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | ||
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | ||
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS | ||
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED | ||
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN | ||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGE. | ||
# | ||
############################################################################ | ||
|
||
ifeq ($(CONFIG_LIB_FLUORIDE),y) | ||
CONFIGURED_APPS += $(APPDIR)/external/fluoride | ||
endif |
Oops, something went wrong.