diff options
author | YK Jeffrey Chao <jechao@broadcom.com> | 2012-07-12 23:18:33 -0700 |
---|---|---|
committer | Matthew Xie <mattx@google.com> | 2012-07-26 23:06:33 -0700 |
commit | 166d2bcf4138febaa33407b11a4a3e02333a012c (patch) | |
tree | fff4636f333bae71465f89533028d3314e0a6f9a /hci/include | |
parent | 0604d2d72ff493bfe710f95c20f6a3bbc2a2cb38 (diff) | |
download | external_bluetooth_bluedroid-166d2bcf4138febaa33407b11a4a3e02333a012c.zip external_bluetooth_bluedroid-166d2bcf4138febaa33407b11a4a3e02333a012c.tar.gz external_bluetooth_bluedroid-166d2bcf4138febaa33407b11a4a3e02333a012c.tar.bz2 |
HCI/Vendor lib: revise the way of making baud rate change (1/2)
The original baud rate change was done through closing the existing UART port
then reopening UART port at new baud rate. It was reported that this approach
would cause trouble on some platforms which spits out false start-bit signal
on UART bus during port close and open process.
Revise the way of doing baud rate change to use terminal I/O (termios) control
functions.
Change-Id: I18ab5a234576147dd9185eafd1e57d3b4e3fa2bd
Conflicts:
hci/src/userial.c
Diffstat (limited to 'hci/include')
-rw-r--r-- | hci/include/bt_vendor_lib.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/hci/include/bt_vendor_lib.h b/hci/include/bt_vendor_lib.h index 202acce..867ca68 100644 --- a/hci/include/bt_vendor_lib.h +++ b/hci/include/bt_vendor_lib.h @@ -64,6 +64,7 @@ typedef enum { BT_VND_OP_SCO_CFG, BT_VND_OP_USERIAL_OPEN, BT_VND_OP_USERIAL_CLOSE, + BT_VND_OP_USERIAL_SET_BAUD, BT_VND_OP_GET_LPM_IDLE_TIMEOUT, BT_VND_OP_LPM_SET_MODE, BT_VND_OP_LPM_WAKE_SET_STATE, @@ -87,11 +88,6 @@ typedef enum { BT_VND_OP_RESULT_FAIL, } bt_vendor_op_result_t; -/** Userial control ID */ -typedef enum { - BT_VND_USERIAL_SET_BAUD, -} bt_vendor_userial_cid_t; - /* * Bluetooth Host/Controller Vendor callback structure. */ @@ -111,9 +107,6 @@ typedef void (*tINT_CMD_CBACK)(void *p_mem); /* hci command packet transmit callback (callout) */ typedef uint8_t (*cmd_xmit_cb)(uint16_t opcode, void *p_buf, tINT_CMD_CBACK p_cback); -/* userial control callback (callout) */ -typedef void (*userial_ctrl_cb)(bt_vendor_userial_cid_t cid, void *param); - typedef struct { /** set to sizeof(bt_vendor_callbacks_t) */ size_t size; @@ -135,9 +128,6 @@ typedef struct { /* hci command packet transmit request */ cmd_xmit_cb xmit_cb; - - /* userial control request */ - userial_ctrl_cb usrl_ctrl_cb; } bt_vendor_callbacks_t; /* |