diff options
author | YK Jeffrey Chao <jechao@broadcom.com> | 2012-04-23 11:28:18 -0700 |
---|---|---|
committer | Matthew Xie <mattx@google.com> | 2012-07-14 11:19:20 -0700 |
commit | 32f0db60f911ed0b7f3bca0210a4568621b99074 (patch) | |
tree | 5e41addd71324439e3bbaa2a9fe5978c262311e4 /main/bte_conf.c | |
parent | a4b46830e5efa9b753a692b98971d1f5a9975905 (diff) | |
download | external_bluetooth_bluedroid-32f0db60f911ed0b7f3bca0210a4568621b99074.zip external_bluetooth_bluedroid-32f0db60f911ed0b7f3bca0210a4568621b99074.tar.gz external_bluetooth_bluedroid-32f0db60f911ed0b7f3bca0210a4568621b99074.tar.bz2 |
Split and restructure the original BT vendor lib (I - external/bluetooth/bluedroid).
1. Split the original external/bluetooth/bluedroid/vendor directory to two parts: external/bluetooth/bluedroid/hci and vendor/broadcom/libbt-vendor. Each part produces a .so library (libbt-hci.so and libbt-vendor.so).
2. libbt-hci.so contains:
+ HCI H4 send & receive functions
+ Userial read & write functions
+ LPM common logic operations
+ btsnoop functions.
3. No build-time (.txt) and run-time (.conf) configuration for libbt-hci.so.
4. libbt-vendor.so contains:
+ firmware patch download function
+ SCO configuration
+ LPM VSC and BT_WAKE control
+ UART port open
+ upio control for BT chip power on/off.
5. libbt-vendor.so has build-time and run-time configuration support.
Change-Id: I61d55c75c66d25459d80893a5f72bccce2b54770
Diffstat (limited to 'main/bte_conf.c')
-rw-r--r-- | main/bte_conf.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/main/bte_conf.c b/main/bte_conf.c index a03e7be..662593a 100644 --- a/main/bte_conf.c +++ b/main/bte_conf.c @@ -68,10 +68,14 @@ /****************************************************************************** ** Externs ******************************************************************************/ +extern BOOLEAN hci_logging_enabled; +extern char hci_logfile[256]; extern BOOLEAN trace_conf_enabled; void bte_trace_conf(char *p_name, char *p_conf_value); int device_name_cfg(char *p_conf_name, char *p_conf_value); int device_class_cfg(char *p_conf_name, char *p_conf_value); +int logging_cfg_onoff(char *p_conf_name, char *p_conf_value); +int logging_set_filepath(char *p_conf_name, char *p_conf_value); int trace_cfg_onoff(char *p_conf_name, char *p_conf_value); BD_NAME local_device_default_name = BTM_DEF_LOCAL_NAME; @@ -131,6 +135,8 @@ typedef UINT8 tCONF_DID; static const conf_entry_t conf_table[] = { /*{"Name", device_name_cfg}, {"Class", device_class_cfg},*/ + {"BtSnoopLogOutput", logging_cfg_onoff}, + {"BtSnoopFileName", logging_set_filepath}, {"TraceConf", trace_cfg_onoff}, {(const char *) NULL, NULL} }; @@ -175,6 +181,21 @@ int device_class_cfg(char *p_conf_name, char *p_conf_value) return 0; } +int logging_cfg_onoff(char *p_conf_name, char *p_conf_value) +{ + if (strcmp(p_conf_value, "true") == 0) + hci_logging_enabled = TRUE; + else + hci_logging_enabled = FALSE; + return 0; +} + +int logging_set_filepath(char *p_conf_name, char *p_conf_value) +{ + strcpy(hci_logfile, p_conf_value); + return 0; +} + int trace_cfg_onoff(char *p_conf_name, char *p_conf_value) { trace_conf_enabled = (strcmp(p_conf_value, "true") == 0) ? TRUE : FALSE; |