|
From: Alain P. <apa...@us...> - 2002-05-10 12:29:01
|
The following files were modified in apps/bluetooth/experimental:
Name Old version New version Tag Comment
---- ----------- ----------- --- -------
bt_vendor.c 1.32 1.33=20=20=20=20=20=20=20=20=20=20=20=20=20=20
bt_vendor.h 1.12 1.13=20=20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Added settings and functions for new bluetooth hardware from Texas Instrume=
nts.
The diff of the modified file(s):
--- bt_vendor.c 28 Feb 2002 20:08:31 -0000 1.32
+++ bt_vendor.c 10 May 2002 12:29:00 -0000 1.33
@@ -99,6 +99,10 @@
infineon_init_phys(fd, flow_control);
break;
=20
+ case HW_TEXASINSTRUMENTS:
+ texasinstruments_init_phys(fd, flow_control);
+ break;
+
case HW_USB:
usb_init_phys(fd, flow_control);
break;
@@ -139,6 +143,10 @@
infineon_init_hw(bt_cfd, phys_fd, speedstr);
break;
=20
+ case HW_TEXASINSTRUMENTS:
+ texasinstruments_init_hw(bt_cfd, phys_fd, speedstr);
+ break;
+
case HW_USB:
usb_init_hw(bt_cfd, phys_fd, speedstr);
break;
@@ -234,6 +242,8 @@
hw_vendor =3D HW_ERICSSON;
else if (!strcmp(vendor, "Infineon"))
hw_vendor =3D HW_INFINEON;
+ else if (!strcmp(vendor, "Texas Instruments"))
+ hw_vendor =3D HW_TEXASINSTRUMENTS;
else if (!strcmp(vendor, "USB"))
hw_vendor =3D HW_USB;
else if (!strcmp(vendor, "Generic"))
@@ -654,6 +664,34 @@
tcflush(phys_fd, TCIOFLUSH);
}
}
+
+/* =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
+/* Texas Instruments specific commands */
+/* =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
+
+void
+texasinstruments_init_phys(int fd, int flow_control)
+{
+ fd_setup(fd, "115200", flow_control);
+}
+
+void
+texasinstruments_init_hw(int bt_cfd, int phys_fd, const char *speedstr)
+{
+ unsigned int wrscan =3D (PAGE_SCAN_ENABLE | INQUIRY_SCAN_ENABLE);
+
+ sleep(1);
+ D(syslog(LOG_INFO, "Setting write_scan_enable in Texas Instruments modul=
e"));
+ bt_write_scan_enable(bt_cfd, wrscan);
+
+ sleep(1); // wait for HW...
+
+ if (speedstr)
+ {
+ syslog(LOG_INFO, "Setting baudrate in Texas Instruments not supported"=
);
+ }
+}
+
=20
/* =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
/* USB specific commands */
--- bt_vendor.h 16 Oct 2001 15:02:20 -0000 1.12
+++ bt_vendor.h 10 May 2002 12:29:00 -0000 1.13
@@ -59,6 +59,7 @@
#define HW_GENERIC 5
#define HW_NO_INIT 6
#define HW_UNKNOWN 7
+#define HW_TEXASINSTRUMENTS 8
=20
/*=20
* Vendor specific functions=20
|