|
From: Mats F. <ma...@us...> - 2001-05-17 10:22:04
|
The following files were modified in apps/bluetooth/experimental:
Name Old version New version Comment
---- ----------- ----------- -------
bt_misc.c 1.9 1.10=20=20=20=20=20=20=20=20=20=20=20=20
bt_misc.h 1.5 1.6=20=20=20=20=20=20=20=20=20=20=20=20=20
The accompanying log:
Added param to fd_setup() to support BCSP
The diff of the modified file(s):
--- bt_misc.c 2001/05/14 11:29:36 1.9
+++ bt_misc.c 2001/05/17 10:22:04 1.10
@@ -300,7 +300,7 @@
=20
=20
void
-fd_setup(int fd, int speed, int flow)
+fd_setup(int fd, int speed, int flow, int use_bcsp)
{
struct termios t;
=20
@@ -319,7 +319,16 @@
cfmakeraw(&t);
=20=09
t.c_cflag &=3D ~CBAUD;
+ if (use_bcsp)
+ {
+ flow =3D 0;
+ t.c_cflag |=3D translate_speed(speed) | CS8 | CLOCAL | PARENB;
+ t.c_cflag &=3D ~PARODD;
+ }
+ else
+ {
t.c_cflag |=3D translate_speed(speed) | CS8 | CLOCAL;
+ }
t.c_oflag =3D 0; /* turn off output processing */
t.c_lflag =3D 0; /* no local modes */
=20=20=20
--- bt_misc.h 2001/04/26 15:58:15 1.5
+++ bt_misc.h 2001/05/17 10:22:04 1.6
@@ -50,7 +50,7 @@
=20
#define LOCAL_NAME_LENGTH 32
=20
-void fd_setup(int fd, int speed, int flow);
+void fd_setup(int fd, int speed, int flow, int use_bcsp);
int translate_speed(int spd);
=20
/* Socket handling */
|