Skip to content

Commit

Permalink
pico: more debugging info
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoquesada committed Dec 21, 2024
1 parent df6239b commit 15da831
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/pico_w/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ target_include_directories(bluepad32_picow_example_app PRIVATE
src
${BLUEPAD32_ROOT}/src/components/bluepad32/include)

# Useful for debugging
#target_compile_definitions(bluepad32_picow_example_app INTERFACE
# PICO_STDIO_USB_CONNECT_WAIT_TIMEOUT_MS=3000
# WANT_HCI_DUMP=1 # This enables btstack debug
# ENABLE_SEGGER_RTT=1
#)

# Needed for btstack_config.h / sdkconfig.h
# so that libbluepad32 can include them
include_directories(bluepad32_picow_example_app src)
Expand Down
3 changes: 3 additions & 0 deletions src/components/bluepad32/bt/uni_bt_le.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@
* uni_bt_le_on_gap_event_advertising_report()
* -> hog_connect()
* sm_packet_handler()
* wait for SM_EVENT_REENCRYPTION_COMPLETE or SM_EVENT_PAIRING_COMPLETE
* device_information_packet_handler()
* wait for GATTSERVICE_SUBEVENT_DEVICE_INFORMATION_DONE
* hids_client_packet_handler()
* wait for GATTSERVICE_SUBEVENT_HID_SERVICE_CONNECTED
* uni_hid_device_set_ready()
*/

Expand Down

0 comments on commit 15da831

Please sign in to comment.