summaryrefslogtreecommitdiffstats
path: root/hci/include/userial.h
diff options
context:
space:
mode:
authorYK Jeffrey Chao <jechao@broadcom.com>2012-08-06 18:38:17 -0700
committerMatthew Xie <mattx@google.com>2012-08-09 00:08:03 -0700
commitb7049f8573901ca12738fc47508a31ccb1de1c1c (patch)
treeb27573f13403e8207fb7b5ef4c207a8e88281499 /hci/include/userial.h
parent52765116ccd66f63d132dc8fa50d367bd0f3cb0f (diff)
downloadexternal_bluetooth_bluedroid-b7049f8573901ca12738fc47508a31ccb1de1c1c.zip
external_bluetooth_bluedroid-b7049f8573901ca12738fc47508a31ccb1de1c1c.tar.gz
external_bluetooth_bluedroid-b7049f8573901ca12738fc47508a31ccb1de1c1c.tar.bz2
Revise BT vendor lib interface (1/2)
1. Move UART port configuration into vendor lib to respect the fact that each vendor might have different UART port settings for its own chipsets. 2. Detail bt_vendor_lib.h header file with usage instructions. Change-Id: I10dc44afd9b3cc1985769166a717089728281296
Diffstat (limited to 'hci/include/userial.h')
-rw-r--r--hci/include/userial.h58
1 files changed, 2 insertions, 56 deletions
diff --git a/hci/include/userial.h b/hci/include/userial.h
index db3a8cf..92458e5 100644
--- a/hci/include/userial.h
+++ b/hci/include/userial.h
@@ -80,42 +80,6 @@
#define USERIAL_PORT_17 16
#define USERIAL_PORT_18 17
-/**** baud rates ****/
-#define USERIAL_BAUD_300 0
-#define USERIAL_BAUD_600 1
-#define USERIAL_BAUD_1200 2
-#define USERIAL_BAUD_2400 3
-#define USERIAL_BAUD_9600 4
-#define USERIAL_BAUD_19200 5
-#define USERIAL_BAUD_57600 6
-#define USERIAL_BAUD_115200 7
-#define USERIAL_BAUD_230400 8
-#define USERIAL_BAUD_460800 9
-#define USERIAL_BAUD_921600 10
-#define USERIAL_BAUD_1M 11
-#define USERIAL_BAUD_1_5M 12
-#define USERIAL_BAUD_2M 13
-#define USERIAL_BAUD_3M 14
-#define USERIAL_BAUD_4M 15
-#define USERIAL_BAUD_AUTO 16
-
-/**** Data Format ****/
-/* Stop Bits */
-#define USERIAL_STOPBITS_1 1
-#define USERIAL_STOPBITS_1_5 (1<<1)
-#define USERIAL_STOPBITS_2 (1<<2)
-
-/* Parity Bits */
-#define USERIAL_PARITY_NONE (1<<3)
-#define USERIAL_PARITY_EVEN (1<<4)
-#define USERIAL_PARITY_ODD (1<<5)
-
-/* Data Bits */
-#define USERIAL_DATABITS_5 (1<<6)
-#define USERIAL_DATABITS_6 (1<<7)
-#define USERIAL_DATABITS_7 (1<<8)
-#define USERIAL_DATABITS_8 (1<<9)
-
typedef enum {
USERIAL_OP_INIT,
USERIAL_OP_RXFLOW_ON,
@@ -126,13 +90,6 @@ typedef enum {
** Type definitions
******************************************************************************/
-/* Structure used to configure serial port during open */
-typedef struct
-{
- uint16_t fmt; /* Data format */
- uint8_t baud; /* Baud rate */
-} tUSERIAL_CFG;
-
/******************************************************************************
** Extern variables and functions
******************************************************************************/
@@ -156,12 +113,12 @@ uint8_t userial_init(void);
**
** Function userial_open
**
-** Description Open the indicated serial port with the given configuration
+** Description Open Bluetooth device with the port ID
**
** Returns TRUE/FALSE
**
*******************************************************************************/
-uint8_t userial_open(uint8_t port, tUSERIAL_CFG *p_cfg);
+uint8_t userial_open(uint8_t port);
/*******************************************************************************
**
@@ -200,17 +157,6 @@ void userial_close(void);
/*******************************************************************************
**
-** Function userial_change_baud
-**
-** Description Change baud rate of userial port
-**
-** Returns None
-**
-*******************************************************************************/
-void userial_change_baud(uint8_t baud);
-
-/*******************************************************************************
-**
** Function userial_ioctl
**
** Description ioctl inteface