97 Commits

Author SHA1 Message Date
Matthias Ringwald
4ea43905e8 MISRAC2012-Rule-10.4_a: append 'u' to constant literals when used in unsigned expressions or comparisons 2020-07-23 12:36:33 +02:00
Matthias Ringwald
bb80652885 hci_transport_h4: avoid uart read for empty payload 2020-01-19 00:39:55 +01:00
Matthias Ringwald
d5fc1d92ed fix compile 2020-01-19 00:22:10 +01:00
Matthias Ringwald
8334d3d848 MISRAC2012-Rule-8.9: inline const objects that are used by single function 2020-01-17 11:30:10 +01:00
Matthias Ringwald
cebe3e9ef6 fix compile warnings (unused param, signed / unsigned comparison) 2019-10-30 15:34:08 +01:00
Matthias Ringwald
cab2c6870c hci_transport_h4: avoid calling hci_transport_h4_trigger_next_read when transport is closed 2019-09-19 21:41:37 +02:00
Matthias Ringwald
067de866b0 hci_transport_h4: avoid calling hci_transport_h4_trigger_next_read when transport is closed 2019-09-13 15:12:00 +02:00
Matthias Ringwald
e80b814d7d hci_transport_h4: avoid calling hci_transport_h4_trigger_next_read when transport is closed 2019-09-13 15:00:29 +02:00
Matthias Ringwald
ad254f5df7 hci_transport_h4: avoid calling hci_transport_h4_trigger_next_read when transport is closed 2019-09-12 11:04:31 +02:00
Matthias Ringwald
c682b8ecdf hci transport h4/h5/em9304: ignore block read/sent from UART driver when closed 2019-08-15 20:57:50 +02:00
Matthias Ringwald
ea374553cc hci_transport_h4: fix payload size check 2019-07-13 15:35:46 +02:00
Matthias Ringwald
77291b13db hci_transport_h4: add workaround for flow control bug in CYW2070x, enable with ENABLE_CYPRESS_BAUDRATE_CHANGE_FLOWCONTROL_BUG_WORKAROUND 2019-05-14 18:10:58 +02:00
Matthias Ringwald
7741d2d072 hci_transport_h4: generalize ENABLE_CC256X_BAUDRATE_CHANGE_FLOWCONTROL_BUG_WORKAROUND 2019-05-14 18:05:13 +02:00
Matthias Ringwald
e501bae083 Use BTSTACK_FILE__ without __ prefix (MISRAC2012-Rule-21.1) 2019-05-11 19:31:55 +02:00
Matthias Ringwald
e8b8106866 hci_transport_h4, hci_transport_em9304_spi.c: add checks for Event + SCO packet lengths 2018-07-23 14:19:33 +02:00
Matthias Ringwald
fc6cde64da Replaced HCI_PACKET_BUFFER_SIZE with HCI_INCOMING_PACKET_BUFFER_SIZE and HCI_OUTGOING_PACKET_BUFFER_SIZE 2018-07-23 14:14:14 +02:00
Matthias Ringwald
2e25934bb0 h4: fix warning about set but not read ehcill vars if ehcill is not used 2017-05-18 18:37:36 +02:00
Matthias Ringwald
bace42effc fix format warnings for uint32_t values 2017-05-02 16:17:33 +02:00
Matthias Ringwald
b403028e72 h4: support wakeup via wakeup-up handler for h5 2017-05-02 00:29:01 +02:00
Matthias Ringwald
c4e86052e3 h4: use enum for EHCILL message types - fixes compile error when used as case labels 2017-05-01 12:59:58 +02:00
Matthias Ringwald
39e7ee9f5d cc256x: ENABLE_CC256X_BAUDRATE_CHANGE_FLOWCONTROL_BUG_WORKAROUND avoids lost bytes during baud rate change, updated docu 2017-04-30 00:13:30 +02:00
Matthias Ringwald
ab2c6ae4b7 tool: add update_filename.py that adds __BTSTACK_FILE__ to every .c file for use with debug output instead of __FILE__ 2017-03-24 23:39:20 +01:00
Matthias Ringwald
62ca45d755 h4_ehcill/h5: provide HCI_EVENT_TRANSPORT_SLEEP_MODE event that indicates to app if it can put device into deep sleep 2017-02-28 12:08:10 +01:00
Matthias Ringwald
ee752bb8db hci_transport: add set_sco_config and call when nr. of SCO connections changes 2017-01-19 17:05:43 +01:00
Matthias Ringwald
f04a0c3191 fix warnings for using %u with int vars 2016-10-09 21:59:50 +02:00
Matthias Ringwald
9ecd1ba8ab ehcill: fix bug when send packet was called between receive sleep ind and send of sleep ack 2016-07-14 11:28:08 +02:00
Matthias Ringwald
019a10b5a3 hci_transport_h4: remove commented code about triggering run loop 2016-04-27 15:20:27 +02:00
Matthias Ringwald
f6a20ec99f eHCILL: use ENABLE_EHCILL instead of HAVE_EHCILL plus runtime enable call, updated docs 2016-04-27 15:18:55 +02:00
Matthias Ringwald
8a23fc5312 hci_transport_h4: eHCILL working on POSIX 2016-04-27 15:05:57 +02:00
Matthias Ringwald
82d05f164d hci_transport_h4: fix compile 2016-04-27 11:51:01 +02:00
Matthias Ringwald
307a4fe366 h4: add parts of eHCILL (not tested/working) 2016-04-27 10:47:25 +02:00
Matthias Ringwald
bd021c4e5b h4/h5: move platform independent implementations into core 2016-04-22 16:23:23 +02:00
matthias.ringwald@gmail.com
5754b9390d extra POSIX code and Makefile into platforms/posix/src 2014-09-04 19:24:00 +00:00
mila@ringwald.ch
9da54300b6 use log_info instead of printf, remove trailing newline from log calls 2014-08-15 21:26:50 +00:00
matthias.ringwald@gmail.com
a827874ef0 use cfmakeraw to also remove ICRNL flag that would translate 0x0d to 0x0a on input 2014-07-29 22:07:11 +00:00
matthias.ringwald
933d47a624 remove unused variable 2014-07-29 15:06:35 +00:00
matthias.ringwald@gmail.com
198279761c try to bring Blutooth module into defined state by sending HCI RESET twice 2014-07-06 20:26:03 +00:00
matthias.ringwald@gmail.com
1ebc0173d4 use cfsetospeed and cfsetispeed instead of cfsetspeed 2014-04-24 13:22:05 +00:00
matthias.ringwald@gmail.com
bde315ce6c renamed btstack config.h to btstack-config.h to allow for better integration with other projects 2014-01-19 16:45:57 +00:00
matthias.ringwald@gmail.com
b0694ed988 use explicit cast for mallocs 2013-04-29 22:05:35 +00:00
matthias.ringwald@gmail.com
142538a136 use non-block for usb2art adapter 2012-10-09 10:13:19 +00:00
matthias.ringwald
6b64433e6a added non-commerical clause and contact email 2012-05-07 21:54:09 +00:00
matthias.ringwald
8be0a47943 removed wake handling from POSIX H4 transport impl 2012-02-13 21:49:06 +00:00
matthias.ringwald
98fea381a9 fix no newline at end of file 2011-11-09 15:31:58 +00:00
matthias.ringwald
14c530a3a2 use 'config.h' instead of '../config.h' to make standalone builds easier 2011-09-25 14:50:39 +00:00
matthias.ringwald
488ced2711 generalize iOS enforce wake approach 2011-08-28 19:10:54 +00:00
matthias.ringwald
c120f476eb remove hci reader thread, hasn't been used so far 2011-08-28 13:00:56 +00:00
matthias.ringwald
0ff3056bc7 add advanced power management for iOS by Jens David (and bump version) 2011-08-04 21:25:43 +00:00
matthias.ringwald
642d7e9741 use new HCI_EVENT_HEADER_SIZE and HCI_ACL_HEADER_SIZE defines 2011-08-01 10:42:46 +00:00
matthias.ringwald
36a5e73594 streamline buffer size definitions throughtout the stack, use single HCI_PACKET_BUFFER_SIZE 2011-07-29 19:44:19 +00:00