Commit Graph

80 Commits

Author SHA1 Message Date
Loic Poulain
8366eae6d7 tools: add bcm43xx specific init in hciattach
Add a bcm43xx specific init sequence in hciattach
in order to initialize bcm43xx controllers.
2014-04-04 20:10:08 +03:00
Marcel Holtmann
bffd612cad tools: Remove include of compat ppoll header 2012-12-09 00:42:07 +01:00
Johan Hedberg
b8779d2202 Revert "Ensure config.h is included by using CPPFLAGS"
This reverts commit 8a03376544.

The patch needs to be split up and the gdbus/ changes were bogus
compared to the original commit message.

Conflicts:
	Makefile.am
	Makefile.obexd
	profiles/cyclingspeed/cyclingspeed.c
	profiles/heartrate/heartrate.c
	src/error.c
2012-12-07 12:46:04 +02:00
Lucas De Marchi
8a03376544 Ensure config.h is included by using CPPFLAGS
Instead of trying to include config.h in each file over the tree and
possibly forgetting to include it, give a "-include config.h" argument
to the compiler so it's guaranteed that a) it will be included for all
source files and b) it will be the first header included.

gdbus/ directory is left out, since it would break other projects using
it.
2012-12-05 17:18:07 +02:00
Lucas De Marchi
b84f6f794b build-sys: Define _GNU_SOURCE in config.h
Instead of defining _GNU_SOURCE in each source file (and potentially
forgetting in some), tell the build system we use extensions and let it
define _GNU_SOURCE in config.h.
2012-12-05 17:17:36 +02:00
Marcel Holtmann
2c33d253f5 hciattach: Allow creating AMP controller over UART 2012-10-29 15:48:52 -07:00
Johan Hedberg
3e53b3862c hciattach: Add basic Three-wire UART support 2012-05-31 15:06:19 +03:00
Tedd Ho-Jeong An
8d25f9528b hciattach: Add support for Intel Bluetooth device
This patch enables the Intel Bluetooth device (UART sku) over the H4
protocol.  It is responsible for bring up the device into known state by
configuring the baudrate and applying the patches, if required.
2012-05-16 10:36:20 +03:00
Marcel Holtmann
f30c71d3e0 hciattach: Remove some unneeded includes 2012-02-26 18:40:25 -08:00
Yegor Yefremov
2f440ad7b5 hciattach: fix serial speed setting for wl1271
override speed setting if firmware script issues serial settings command,
otherwise the value given in the firmware script will be overridden.

Example:

hciattach /dev/ttyO1 texas 115200

will fail, because /dev/ttyO1 will be opened with 115200 b/s, then
the firmware script will set the buadrate to 3000000 b/s, after UART init
hciattach.c will set the baudrate to 115200, so communication is broken.

The only correct way is to set both speeds:

hciattach -s 115200 /dev/ttyO1 texas 3000000

With this patch only initial speed must be specified. The former semantic
will be preserved in case the firmware script doesn't provide serial
settings action.

Tested with wl1271 and firmware TIInit_7.2.31.bts
2011-09-22 20:19:11 +09:00
Lucas De Marchi
fcb426c76a Fix common misspelled words
Accounting of misspelled words, as detected by codespell:

acording      2
ancilliary    1
appropiate    1
atribute      1
cant          1
comming       2
gracefull     1
lenght        1
mispelled     1
occured       1
occurences    1
ocurred       3
prefered      1
presense      1
reponse       1
seperate      1
succesful     1
successully   1
sucessfull    1
sucessfully   1
2011-07-03 14:36:14 +03:00
Johan Hedberg
2076574365 Fix unused variable warnings reported by GCC 4.6 2011-05-15 01:57:12 +03:00
Suraj Sumangala
4e0e44626d hciattach: download configuration at user requested baud rate
This patch support downloading configuration for Atheros AR300x HCI UART
chip at user requested baud rate instead of the initial baud rate.
2010-11-23 12:09:20 +01:00
Suraj Sumangala
429877099f hciattach: make set_speed return error if any operation fails
This patch lets set_speed function changing UART baud rate to return an
error code if any one operation fails instead of returning only the last
operation's status.
2010-11-23 12:08:54 +01:00
Matthew Wilson
c6be8dcf9e Firmware download for Qualcomm Bluetooth devices
Configures device address from hciattach parameter.
UART speed limited to 115200.
Requires separate device specific firmware.
2010-08-23 23:39:01 +03:00
Suraj Sumangala
848b12d537 Add host level support for Atheros AR300x device
This patch implements support for the Atheros AR300x Bluetooth chip in
hciattach. It supports configuration download and power management
configure feature.
2010-08-18 13:23:20 +03:00
Suraj Sumangala
e54f6d67ac Bluetooth: Option to enable power management from host
This provides a new option for hciattach to enable hardware specific
power management from host.
This option by default will be disabled for existing devices
2010-08-17 17:29:58 +03:00
Johan Hedberg
6e6252937e Add hciattach support for initializing a device into raw mode
This patch adds a -r switch to hciattach that can be used to initialize
a device into raw mode. This is accomplished with the help of the new
HCIUARTSETFLAGS ioctl.
2010-07-12 11:52:27 -03:00
Vladimir Davydov
c637b9ba67 hciattach: Fix the timeout handling code
The variable 'retries' should be defined as static, or it will be always
0.
2010-06-30 17:38:07 +03:00
Jose Antonio Santos Cadenas
0edbc77755 Remove extra spaces from tools dir 2010-05-07 01:48:03 +03:00
Marcel Holtmann
9184e2eeb7 Update copyright information 2010-01-01 17:08:17 -08:00
Marcel Holtmann
72c6ed7e2d Use timeout value also for BCSP timeout 2009-05-09 22:05:54 -07:00
Marcel Holtmann
3818459c88 Use ppoll() instead of poll() for keeping line discipline 2009-05-08 10:55:15 -07:00
Marcel Holtmann
fb333f1c88 Update copyright information 2009-01-01 19:33:20 +01:00
Marcel Holtmann
290427f21e Fix broken forward declarations 2008-12-23 05:39:54 +01:00
Marcel Holtmann
14f84d602a Update the TI init routine with BRF support 2008-07-11 06:10:50 +00:00
Marcel Holtmann
13c0e26a02 Add alternate TI init routine 2008-07-11 02:47:01 +00:00
Marcel Holtmann
e0c9695434 Set input speed and the LL protocol identifier 2008-07-11 02:31:48 +00:00
Marcel Holtmann
c24fa29e21 Mention the broken bgb2xx init routine 2008-07-10 02:24:46 +00:00
Marcel Holtmann
042cbdb0ff Add ifdefs around some baud rate definitions 2008-02-13 11:12:51 +00:00
Marcel Holtmann
e823c15e43 Update copyright information 2008-02-02 03:37:05 +00:00
Marcel Holtmann
2d49c5ba27 Share code for Ericsson and ST chips 2007-10-09 16:49:23 +00:00
Marcel Holtmann
bb8dcb8334 Support higher baud rates for Ericcson based chips 2007-10-09 16:48:10 +00:00
Marcel Holtmann
dc910eeb1f Improve the BCM2035 init routine 2007-06-21 23:07:13 +00:00
Marcel Holtmann
bb02c974cc Add HCIUARTGETDEVICE ioctl constant 2007-05-09 09:34:21 +00:00
Marcel Holtmann
6709e54559 Add support for STLC2500 address and baud rate settings 2007-04-25 23:09:02 +00:00
Marcel Holtmann
dcf9a09a03 Handle EINTR errors 2007-04-17 23:25:14 +00:00
Marcel Holtmann
c3da6a4973 Add support for Philips BGB2xx modules 2007-01-17 12:31:42 +00:00
Marcel Holtmann
607695ed10 Update copyright information 2007-01-13 17:48:12 +00:00
Marcel Holtmann
35e9349ffc Change default poll() timeout 2006-08-10 10:20:59 +00:00
Marcel Holtmann
7449f2395e Don't ignore return value of write() 2006-07-27 02:08:02 +00:00
Marcel Holtmann
943b02e163 Include sys/param.h for PATH_MAX when cross-compiling 2006-06-27 07:33:36 +00:00
Marcel Holtmann
910d9fe227 Fix a small typo 2006-04-29 18:21:14 +00:00
Marcel Holtmann
ae2bada637 Update STLC2500 init routine 2006-04-16 21:09:01 +00:00
Marcel Holtmann
fc4ca3634d Detect TTY detach and restore line discipline 2006-03-20 22:29:03 +00:00
Marcel Holtmann
5094a99716 Add support for Broadcom BCM2035 chips 2006-01-21 01:45:01 +00:00
Marcel Holtmann
f2e48c44a7 Update copyright information 2006-01-03 13:28:56 +00:00
Marcel Holtmann
27454e3869 Update the Silicon Wave init routine 2005-12-07 09:04:58 +00:00
Marcel Holtmann
2a6755856c Fix array length for device name 2005-12-02 15:01:51 +00:00
Marcel Holtmann
632a943277 Big cleanup of CVS relics 2005-10-29 22:36:31 +00:00