55 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
3031462581 btstack_util: fix off-by-one error in btstack_replace_bd_addr_placeholder 2020-05-05 11:04:15 +02:00
Matthias Ringwald
3c9da642e7 btstack_util: provide btstack_replace_bd_addr_placeholder 2020-04-30 17:26:11 +02: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
ff3cc4a537 MISRAC2012-Rule-14.4_d: use while(true) instead of while(1) 2019-12-03 12:52:10 +01:00
Matthias Ringwald
6535961a1f ignore memcpy return value (always returns first parameter) 2019-12-02 18:17:20 +01:00
Matthias Ringwald
5df9dc7819 MISRAC2012-Rule-12.1: add suggested parentheses 2019-11-19 15:10:58 +01:00
Matthias Ringwald
c1ab6cc1be MISRAC2012-Rule-12.1: add suggested parentheses 2019-11-19 14:31:48 +01:00
Matthias Ringwald
68af39674d btstack_util: btstack_time_delta provides delta between two timestamps 2019-07-20 08:50:21 +02:00
Matthias Ringwald
e501bae083 Use BTSTACK_FILE__ without __ prefix (MISRAC2012-Rule-21.1) 2019-05-11 19:31:55 +02:00
Milanka Ringwald
adbdd27a95 btstack_util: add little_endian_store_24 2018-11-01 09:44:07 +01:00
Matthias Ringwald
9dbfa9305b btstack_util: fix compile 2018-10-31 18:00:31 +01:00
Matthias Ringwald
c1c586473a btstack_util: manually convert to hex in printf_hexdump 2018-10-31 17:53:08 +01:00
Matthias Ringwald
cd2e416ce5 btstack_util: support parsing bd_addr without separators 2018-09-17 14:10:04 +02:00
Matthias Ringwald
fa087dea27 hci_dump: prefix LOG_LEVELs with HCI_DUMP_ 2018-05-09 14:56:47 +02:00
Milanka Ringwald
d1207cd896 avrcp target: notifications and fragmentation 2017-10-06 17:04:42 +02:00
Matthias Ringwald
63dd1c760e prefix crc8_* to btstack_crc8_* 2017-10-03 16:49:03 +02:00
Matthias Ringwald
1f41c2c9f7 move crc8 from rfcomm.h to btstack_util.h 2017-10-03 16:47:24 +02:00
Matthias Ringwald
4bd791116b btstack_util: review UNUSED-size 2017-09-19 17:22:32 +02:00
Milanka Ringwald
b0920f2551 fix warnings in bluedroid and avdtp 2017-05-27 17:39:23 +02:00
Matthias Ringwald
e950fa96e9 util: make log_debug_hexdump only print hexdump if ENABLE_LOG_DEBUG 2017-04-10 15:19:58 +02:00
Matthias Ringwald
cb42147ab2 hci_debug: add log_debug_hexdump 2017-04-07 22:33:17 +02:00
Matthias Ringwald
5222912b1f util: mark all read-only arguments as const 2017-04-06 14:13:15 +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
Milanka Ringwald
e57a25456e util: add read big endian 24 2017-02-10 11:07:03 +01:00
Milanka Ringwald
7f535380ac add big_endian_store_24 2017-02-10 11:07:03 +01:00
Matthias Ringwald
d066298299 fix unused params warnings 2016-12-22 22:44:50 +01:00
Matthias Ringwald
5d067ab1c4 util: add btstack_util 2016-11-15 17:24:55 +01:00
Matthias Ringwald
405d63a9b7 btstack_util: use #define instead of const int to fix compile. refactor converting byte into hex 2016-10-07 11:21:15 +02:00
Matthias Ringwald
7224be7e77 clean ups and fixes to avoid warnings from static code analyzer 2016-07-01 14:48:49 +02:00
Matthias Ringwald
02bdfbf8cb util: implement log_info_key 2016-06-27 14:38:35 +02:00
Matthias Ringwald
b8f36d6c46 Merge branch 'develop' into le-secure-connection 2016-06-09 21:44:03 +02:00
Milanka Ringwald
969fc1c501 util: fix docu to match function return value 2016-06-03 15:52:59 +02:00
Milanka Ringwald
3e40861c0c util: fix sscanf_bd_addr 2016-06-03 12:06:02 +02:00
Matthias Ringwald
cc7a2d7835 util: add reverse_256 2016-05-27 16:40:53 +02:00
Matthias Ringwald
ebaeb1be2d util: add btstack_min, btstack_max for uint32 2016-05-10 09:36:33 +02:00
Matthias Ringwald
9f507070eb util: really fix char_for_nibble 2016-05-10 09:31:29 +02:00
Matthias Ringwald
e8609f3a5f util: fix nibble_for_char 2016-05-09 18:36:20 +02:00
Matthias Ringwald
a6efb91912 rewrite sscanf_bd_addr to be sscanf free 2016-03-04 14:21:22 +01:00
Matthias Ringwald
7299c0fe9a hci_util: fix compile 2016-02-26 21:15:13 +01:00
Matthias Ringwald
2b60490204 gap_le_advertisements: fix endianess for services with UUID128 in advertisement 2016-02-11 15:44:35 +01:00
Matthias Ringwald
724d70a2cf bt_flip_addr(dest,src) -> reverse_bd_addr(src,dest) 2016-02-11 15:20:08 +01:00
Matthias Ringwald
8314c363bc introduce log_info_key and log_info_hexdump, move prototypes to btstack_debug.h 2016-02-11 14:53:59 +01:00
Matthias Ringwald
9c80e4cce8 util.h: rename swapX into reverse_x 2016-02-11 14:37:22 +01:00
Matthias Ringwald
73988a59ce util.h: use functions instead of static inline/macros. sscan_bd_addr -> sscanf_bd_addr 2016-02-11 14:19:26 +01:00
Matthias Ringwald
e1a125df32 util.h: new names uuid_has_bluetooth_prefix();uuid_add_bluetooth_prefix() 2016-02-10 17:12:50 +01:00
Matthias Ringwald
1b0524c477 util.h: remove printUUID128 2016-02-10 17:01:26 +01:00
Matthias Ringwald
aa4d01c707 util.h: remove print_bd_addr 2016-02-10 13:43:31 +01:00
Matthias Ringwald
b1c4ef5fa8 util.h: move crc8 to rfcomm 2016-02-10 13:38:47 +01:00
Matthias Ringwald
caed94df78 util.h: move some to hci.h and btstack_link_key_db_fs 2016-02-10 13:35:25 +01:00