Permalink
Browse files

Merge branch 'develop'

  • Loading branch information...
mringwal committed Jan 10, 2018
2 parents 24762bd + f430eb8 commit 589ed230ffe3e59a4831548b1bf03b802898360b
Showing with 13,601 additions and 2,618 deletions.
  1. +44 −0 CHANGELOG.md
  2. +5 −3 README.md
  3. +8 −4 chipset/atwilc3000/Makefile.inc
  4. +317 −0 chipset/em9301/0000000_META_hci_patches_v5_iram.c
  5. +123 −3 chipset/em9301/btstack_chipset_em9301.c
  6. +17 −11 doc/manual/Makefile
  7. +9 −9 doc/manual/docs/how_to.md
  8. +24 −0 doc/manual/docs/ports/.gitignore
  9. +1 −0 doc/manual/docs/ports/intro.md
  10. +5 −158 doc/manual/docs/quick_start.md
  11. +77 −71 doc/manual/markdown2mkdocs.py
  12. +7 −1 doc/manual/{markdown2pdf.py → markdown2tex.py}
  13. +1 −0 doc/manual/mkdocs.yml
  14. +84 −0 doc/manual/ports2markdown.py
  15. +8 −1 doc/manual/update_listings.py
  16. +14 −6 example/Makefile.inc
  17. +308 −235 example/a2dp_sink_demo.c
  18. +223 −103 example/a2dp_source_demo.c
  19. +534 −0 example/avrcp_browsing_client.c
  20. +1 −1 example/dut_mode_classic.c
  21. +435 −0 example/hid_host_demo.c
  22. +4 −4 example/hid_keyboard_demo.c
  23. +3 −3 example/hid_mouse_demo.c
  24. +1 −0 example/hog_keyboard_demo.c
  25. +11 −4 example/hog_mouse_demo.c
  26. +14 −5 example/le_streamer.c
  27. +7 −3 example/le_streamer_client.c
  28. +36 −222 example/panu_demo.c
  29. +12 −1 example/pbap_client_demo.c
  30. +12 −2 example/sm_pairing_central.c
  31. +7 −0 example/sm_pairing_central.gatt
  32. +4 −2 example/sm_pairing_peripheral.c
  33. +6 −2 example/spp_and_le_counter.c
  34. +6 −1 example/spp_and_le_streamer.c
  35. +3 −0 example/spp_counter.c
  36. +12 −2 example/spp_streamer.c
  37. +8 −2 example/spp_streamer_client.c
  38. +210 −0 platform/embedded/btstack_em9304_spi_embedded.c
  39. +72 −31 platform/embedded/btstack_tlv_flash_bank.c
  40. +131 −0 platform/embedded/hal_em9304_spi.h
  41. +5 −5 platform/embedded/hal_flash_bank_memory.c
  42. +308 −0 platform/posix/btstack_network_posix.c
  43. +1 −0 platform/posix/btstack_run_loop_posix.c
  44. +1 −1 platform/posix/btstack_tlv_posix.c
  45. +2 −0 platform/posix/le_device_db_fs.c
  46. +1 −0 platform/posix/wav_util.c
  47. +83 −0 platform/wiced/btstack_stdin_wiced.c
  48. +4 −0 platform/wiced/le_device_db_wiced_dct.c
  49. +7 −0 platform/wiced/le_device_db_wiced_dct.h
  50. +98 −79 platform/windows/btstack_uart_block_windows.c
  51. +4 −0 platform/windows/hci_transport_h2_winusb.c
  52. +51 −0 port/apollo2-em9304/README.md
  53. +28 −0 port/apollo2-em9304/btstack_config.h
  54. +534 −0 port/apollo2-em9304/btstack_port.c
  55. +88 −0 port/apollo2-em9304/create_examples.py
  56. +49 −0 port/apollo2-em9304/example-template/Makefile
  57. +220 −0 port/apollo2-em9304/example-template/gcc/Makefile
  58. +64 −0 port/apollo2-em9304/example-template/gcc/btstack_template.ld
  59. +316 −0 port/apollo2-em9304/example-template/gcc/startup_gcc.c
  60. +76 −0 port/apollo2-em9304/example-template/src/le_counter.h
  61. +1 −0 port/daemon/src/Makefile.in
  62. +2 −3 port/esp32/README.md
  63. +1 −1 port/esp32/components/btstack/main.c
  64. +65 −13 port/esp32/template/sdkconfig
  65. +1 −0 port/ez430-rf2560/Makefile
  66. +2 −0 port/libusb/.gitignore
  67. +2 −10 port/libusb/Makefile
  68. +30 −0 port/libusb/README.md
  69. +2 −0 port/libusb/btstack_config.h
  70. +22 −3 port/libusb/main.c
  71. +3 −2 port/max32630-fthr/example/template/Makefile
  72. +1 −0 port/msp-exp430f5438-cc2564b/Makefile
  73. +1 −0 port/msp430f5229lp-cc2564b/Makefile
  74. +1 −0 port/mtk/Makefile
  75. +1 −0 port/nrf5-zephyr/Makefile.src
  76. 0 port/nrf5-zephyr/{readme.md → README.md}
  77. 0 port/nrf5x/{readme.md → README.md}
  78. +20 −3 port/pic32-harmony/README.md
  79. +691 −223 port/pic32-harmony/app.X/nbproject/Makefile-default.mk
  80. +2 −2 port/pic32-harmony/app.X/nbproject/Makefile-genesis.properties
  81. +71 −28 port/pic32-harmony/app.X/nbproject/configurations.xml
  82. +21 −1 port/pic32-harmony/create_examples.py
  83. +11 −9 port/pic32-harmony/src/btstack_config.h
  84. +0 −1 port/posix-h4-atwilc3000/Makefile
  85. +2 −2 port/posix-h4-atwilc3000/README.md
  86. +3 −2 port/posix-h4-atwilc3000/main.c
  87. +1 −1 port/posix-h4-zephyr/main.c
  88. +1 −0 port/posix-h4/Makefile
  89. +1 −0 port/posix-h4/btstack_config.h
  90. +2 −4 port/samv71-xplained-atwilc3000/README.md
  91. +17 −18 port/samv71-xplained-atwilc3000/btstack_config.h
  92. +2 −0 port/samv71-xplained-atwilc3000/example/.gitignore
  93. +1 −1 port/samv71-xplained-atwilc3000/example/template/Makefile
  94. +1 −61 port/samv71-xplained-atwilc3000/example/template/config.mk
  95. +2 −4 port/samv71-xplained-atwilc3000/main.c
  96. +20 −7 port/samv71-xplained-atwilc3000/scripts/create_examples.py
  97. +1 −0 port/stm32-f103rb-nucleo/Makefile
  98. +294 −0 port/stm32-f4discovery-cc256x/cubemx-f4discovery-cc256x/Makefile
  99. +189 −0 port/stm32-f4discovery-cc256x/cubemx-f4discovery-cc256x/STM32F407VGTx_FLASH.ld
  100. +523 −0 port/stm32-f4discovery-cc256x/cubemx-f4discovery-cc256x/startup_stm32f407xx.s
  101. +2 −1 port/stm32-l053r8-em9304/btstack_config.h
  102. +5 −0 port/stm32-l053r8-em9304/cubemx-l053r8-em9304/Makefile
  103. +2 −1 port/stm32-l053r8-em9304/port.c
  104. +29 −0 port/wiced-h4/README.md
  105. +2 −1 port/wiced-h4/btstack_config.h
  106. +33 −6 port/wiced-h4/create_examples.py
  107. +1 −1 port/wiced-h4/main.c
  108. +0 −25 port/wiced-h4/readme.md
  109. +7 −2 port/wiced-h4/wiced-h4.mk
  110. +18 −11 port/wiced-h5/{readme.md → README.md}
  111. +22 −0 port/wiced-h5/btstack_aes128_wiced.c
  112. +3 −2 port/wiced-h5/btstack_config.h
  113. +39 −6 port/wiced-h5/create_examples.py
  114. +1 −1 port/wiced-h5/main.c
  115. +7 −2 port/wiced-h5/wiced-h5.mk
  116. +39 −0 port/windows-h4-zephyr/.gitignore
  117. +30 −0 port/windows-h4-zephyr/Makefile
  118. +42 −0 port/windows-h4-zephyr/README.md
  119. +32 −0 port/windows-h4-zephyr/btstack_config.h
  120. +165 −0 port/windows-h4-zephyr/main.c
  121. +10 −0 port/windows-h4/README.md
  122. +18 −0 port/windows-winusb/README.md
  123. +39 −83 src/ble/att_db.c
  124. +10 −7 src/ble/att_db.h
  125. +326 −9 src/ble/att_server.c
  126. +6 −0 src/ble/att_server.h
  127. +2 −2 src/ble/gatt-service/battery_service_server.c
  128. +2 −2 src/ble/gatt-service/device_information_service_server.c
  129. +5 −5 src/ble/gatt-service/hids_device.c
  130. +67 −22 src/ble/le_device_db_tlv.c
  131. +53 −8 src/ble/sm.c
  132. +2 −46 src/ble/sm.h
  133. +27 −0 src/bluetooth.h
  134. +6 −1 src/btstack.h
  135. +140 −12 src/btstack_defines.h
  136. +132 −0 src/btstack_em9304_spi.h
  137. +459 −7 src/btstack_event.h
  138. +453 −0 src/btstack_hid_parser.c
  139. +149 −0 src/btstack_hid_parser.h
  140. +4 −0 src/btstack_linked_list.c
  141. +42 −2 src/btstack_memory.c
  142. +4 −0 src/btstack_memory.h
  143. +95 −0 src/btstack_network.h
  144. +15 −0 src/btstack_tlv.h
  145. +3 −4 src/classic/a2dp_sink.c
  146. +2 −1 src/classic/a2dp_sink.h
  147. +43 −38 src/classic/a2dp_source.c
  148. +130 −57 src/classic/avdtp.c
  149. +32 −17 src/classic/avdtp.h
  150. +19 −22 src/classic/avdtp_acceptor.c
  151. +53 −35 src/classic/avdtp_initiator.c
  152. +17 −17 src/classic/avdtp_sink.c
  153. +6 −6 src/classic/avdtp_sink.h
  154. +15 −15 src/classic/avdtp_source.c
  155. +6 −6 src/classic/avdtp_source.h
  156. +203 −34 src/classic/avdtp_util.c
  157. +8 −7 src/classic/avdtp_util.h
  158. +23 −20 src/classic/avrcp.c
  159. +61 −6 src/classic/avrcp.h
  160. +678 −0 src/classic/avrcp_browsing_controller.c
  161. +212 −0 src/classic/avrcp_browsing_controller.h
  162. +9 −4 src/classic/avrcp_controller.c
  163. +8 −6 src/classic/avrcp_controller.h
  164. +90 −0 src/classic/avrcp_media_item_iterator.c
  165. +78 −0 src/classic/avrcp_media_item_iterator.h
  166. +5 −4 src/classic/avrcp_target.c
  167. +2 −2 src/classic/avrcp_target.h
  168. +1 −1 src/classic/bnep.c
  169. +2 −118 src/classic/{btstack_sbc_bludroid.c → btstack_sbc_decoder_bluedroid.c}
  170. +154 −0 src/classic/btstack_sbc_encoder_bluedroid.c
  171. +6 −3 src/classic/hfp.c
  172. +5 −3 src/classic/hfp.h
  173. +30 −49 src/classic/hfp_ag.c
  174. +85 −116 src/classic/hfp_hf.c
  175. +18 −9 src/classic/rfcomm.c
  176. +3 −1 src/classic/rfcomm.h
  177. +5 −0 src/classic/sdp_util.c
  178. +3 −1 src/classic/sdp_util.h
  179. +4 −0 src/hci.c
  180. +2 −1 src/hci.h
  181. +7 −0 src/hci_transport.h
  182. +540 −0 src/hci_transport_em9304_spi.c
  183. +0 −3 src/hci_transport_h5.c
  184. +166 −38 src/l2cap.c
  185. +4 −0 src/l2cap.h
  186. +2 −2 test/avdtp/Makefile
  187. +4 −3 test/avrcp/Makefile
  188. +2 −3 test/btstack_config.h
  189. +98 −0 test/fifo/fifo.c
  190. +65 −65 test/hfp/test_sequences.c
  191. +30 −0 test/hid_parser/Makefile
  192. +332 −0 test/hid_parser/hid_parser_test.c
  193. +2 −0 test/linked_list/Makefile
  194. +67 −15 test/pts/Makefile
  195. +371 −138 test/pts/avdtp_sink_test.c
  196. +157 −59 test/pts/avdtp_source_test.c
  197. +345 −40 test/pts/avrcp_controller_test.c
  198. +2 −2 test/pts/ble_central_test.c
  199. +11 −3 test/pts/ble_peripheral_test.c
  200. +1 −1 test/pts/bnep_test.c
  201. +2 −1 test/pts/classic_test.c
  202. +2 −2 test/sbc/Makefile
  203. +2 −1 tool/btstack_memory_generator.py
  204. +68 −0 tool/dump_tlv.py
View
@@ -0,0 +1,44 @@
# Change Log
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Added
- Port for Windows with Zephyr HCI Firmware connected via serial port
- em9304: ability to upload patch containers during HCI bootup.
### Changed
### Fixed
## Changes December 2017
### Added
- Introduced btstack_network.h network interface abstraction
- btstack_network_posix implementation using Linux tun/tap interface
- WICED: support for btstack_stdin (HAVE_STDIN)
- GATT Server: Writes to GATT Client Characteristic Configuration are stored in TLV and restored on reconnect. The db.h file generated from db.gatt needs to be re-created.
- TLV: global TLV instance available via btstack_tlv_get_instance() (src/btstack_tlv.h)
- TLV: POSIX implementation that appends to a file on disk (platform/posix/btstack_tlv_posix.c
- LE Device DB TLV: overwrite oldest entry if no free entries available
- SM: allow to set fixed passkey in display role using sm_use_fixed_passkey_in_display_role
- Example/hid_host_demo with HID parser and support for basic US keyboard layout
- EM9304: custom HCI Transport implementation for EM9304 on top of btstack_em9304_spi.h platform abstraction only requires hal_em9304_spi.h to be implemented for new ports
- Port for Apollo2 MCU with EM9304 (ports/apollo2-em9304)
### Changed
- panu_demo: uses btstack_network.h now
- WICED: configure printf to replace Linefeed with CRLF
- SBC: split btstack_sbc_bludroid.c into seperate encoder and decoder implementations
### Fixed
- RFCOMM: support connection requests during connection failure
- L2CAP: support connection requests during connection failure
- L2CAP: fix default remote MTU as 672 instead of 48 (Minimal MTU)
- HCI: avoid double free during halting
- SM: fixed reconnect using legacy pairing in slave role
View
@@ -28,9 +28,11 @@ BTstack is free for non-commercial use. However, for commercial use, <a href="ma
**Protocols:** L2CAP, RFCOMM, SDP, BNEP, ATT, SM (incl. LE Secure Connections).
**Profiles** GAP, IOP, HFP, HSP, SPP, PAN, GATT.
**Profiles:** GAP, IOP, HFP, HSP, SPP, PAN, GATT.
**Coming next** A2DP, AVRCP, HID, HOGP, BLE Mesh, and more.
**Beta Stage:** A2DP, AVRCP, HID, HOGP.
**In Development:** BLE Mesh, AVRCP Browsing and more.
It has been qualified with the the Bluetooth SIG for GAP, IOP, HFP, HSP, SPP, PAN profiles and
GATT, SM of the Bluetooth 4.2 LE Central and Peripheral roles (QD ID 25340). For information on MFi/iAP2 support, please <a href="mailto:contact@bluekitchen-gmbh.com">contact us</a>.
@@ -40,7 +42,7 @@ GATT, SM of the Bluetooth 4.2 LE Central and Peripheral roles (QD ID 25340). For
Build Status | Port | Platform
---------------------| -----| ------
No build server | [esp32](https://github.com/bluekitchen/btstack/tree/master/port/esp32) | [Espressif ESP32](http://www.espressif.com/products/hardware/esp32/overview) 2.4 GHz Wi-Fi and Bluetooth Dual-Mode combo chip using [FreeRTOS](http://www.freertos.org)
[<img src="http://buildbot.bluekitchen-gmbh.com/btstack/badge.png?builder=port-esp32-master">](https://buildbot.bluekitchen-gmbh.com/btstack/builders/port-esp32-master) | [Espressif ESP32](http://www.espressif.com/products/hardware/esp32/overview) 2.4 GHz Wi-Fi and Bluetooth Dual-Mode combo chip using [FreeRTOS](http://www.freertos.org)
[<img src="http://buildbot.bluekitchen-gmbh.com/btstack/badge.png?builder=port-ez430-rf2560-master">](https://buildbot.bluekitchen-gmbh.com/btstack/builders/port-ez430-rf2560-master) | [ez430-rf2560](https://github.com/bluekitchen/btstack/tree/master/port/ez430-rf2560) | [EZ430-RF256x Bluetooth Evaluation Tool for MSP430](http://www.ti.com/tool/ez430-rf256x)
[<img src="http://buildbot.bluekitchen-gmbh.com/btstack/badge.png?builder=port-msp-exp430f5438-cc2564b-master">](https://buildbot.bluekitchen-gmbh.com/btstack/builders/port-msp-exp430f5438-cc2564b-master) | [msp-exp430f5438-cc2564b](https://github.com/bluekitchen/btstack/tree/master/port/msp-exp430f5438-cc2564b) |[MSP430F5438 Experimenter Board for MSP430](http://www.ti.com/tool/msp-exp430f5438) with [Bluetooth CC2564 Module Evaluation Board](http://www.ti.com/tool/cc2564modnem)
[<img src="http://buildbot.bluekitchen-gmbh.com/btstack/badge.png?builder=port-msp430f5229lp-cc2564b-master">](https://buildbot.bluekitchen-gmbh.com/btstack/builders/port-msp430f5229lp-cc2564b-master) | [msp430f5529lp-cc2564b](https://github.com/bluekitchen/btstack/tree/master/port/msp430f5229lp-cc2564b) | [MSP-EXP430F5529LP LaunchPad](http://www.ti.com/ww/en/launchpad/launchpads-msp430-msp-exp430f5529lp.html#tabs) with [Bluetooth CC2564 Module Evaluation Board](http://www.ti.com/tool/cc2564modnem) and [EM Adapter BoosterPack](http://www.ti.com/tool/boost-ccemadapter) with additional 32768Hz quartz oscillator
@@ -4,16 +4,20 @@
CONVERSION_SCRIPT=$(BTSTACK_ROOT)/chipset/atwilc3000/convert_firmware_bin.py
wilc3000_ble_firmware.h:
@echo "Downloading $@"
@curl https://bluekitchen-gmbh.com/files/ble_firmware_3000.h > wilc3000_ble_firmware.h
wilc3000_bt_firmware.c: wilc3000_bt_firmware.bin
@$(CONVERSION_SCRIPT) wilc3000_bt_firmware.bin
wilc3000_bt_firmware_no_rtc.c:
wilc3000_bt_firmware_no_rtc.c: wilc3000_bt_firmware_no_rtc.bin
@$(CONVERSION_SCRIPT) wilc3000_bt_firmware.bin
wilc3000_bt_firmware.bin: wilc3000_bt_firmware_no_rtc.bin
wilc3000_bt_firmware.bin:
@echo "Downloading $@"
@curl -O https://raw.githubusercontent.com/atwilc3000/firmware/master/wilc3000_bt_firmware.bin
@curl -O https://raw.githubusercontent.com/linux4wilc/firmware/master/wilc3000_bt_firmware.bin
wilc3000_bt_firmware_no_rtc.bin:
@echo "Downloading $@"
curl -O https://raw.githubusercontent.com/atwilc3000/firmware/master/wilc3000_bt_firmware_no_rtc.bin
curl -O https://raw.githubusercontent.com/linux4wilc/firmware/master/wilc3000_bt_firmware_no_rtc.bin
Oops, something went wrong.

0 comments on commit 589ed23

Please sign in to comment.