S&B Volcano vaporizer remote control with Pi Pico W
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

btstack_config.h 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #ifndef _PICO_BTSTACK_BTSTACK_CONFIG_H
  2. #define _PICO_BTSTACK_BTSTACK_CONFIG_H
  3. #ifndef ENABLE_BLE
  4. #error Please link to pico_btstack_ble
  5. #endif
  6. // BTstack features that can be enabled
  7. #define ENABLE_LE_PERIPHERAL
  8. #define ENABLE_LOG_INFO
  9. #define ENABLE_LOG_ERROR
  10. #define ENABLE_PRINTF_HEXDUMP
  11. // for the client
  12. #if RUNNING_AS_CLIENT
  13. #define ENABLE_LE_CENTRAL
  14. #define MAX_NR_GATT_CLIENTS 1
  15. #else
  16. #define MAX_NR_GATT_CLIENTS 0
  17. #endif
  18. // BTstack configuration. buffers, sizes, ...
  19. #define HCI_OUTGOING_PRE_BUFFER_SIZE 4
  20. #define HCI_ACL_PAYLOAD_SIZE (255 + 4)
  21. #define HCI_ACL_CHUNK_SIZE_ALIGNMENT 4
  22. #define MAX_NR_HCI_CONNECTIONS 1
  23. #define MAX_NR_SM_LOOKUP_ENTRIES 3
  24. #define MAX_NR_WHITELIST_ENTRIES 16
  25. #define MAX_NR_LE_DEVICE_DB_ENTRIES 16
  26. // Limit number of ACL/SCO Buffer to use by stack to avoid cyw43 shared bus overrun
  27. #define MAX_NR_CONTROLLER_ACL_BUFFERS 3
  28. #define MAX_NR_CONTROLLER_SCO_PACKETS 3
  29. // Enable and configure HCI Controller to Host Flow Control to avoid cyw43 shared bus overrun
  30. #define ENABLE_HCI_CONTROLLER_TO_HOST_FLOW_CONTROL
  31. #define HCI_HOST_ACL_PACKET_LEN (255+4)
  32. #define HCI_HOST_ACL_PACKET_NUM 3
  33. #define HCI_HOST_SCO_PACKET_LEN 120
  34. #define HCI_HOST_SCO_PACKET_NUM 3
  35. // Link Key DB and LE Device DB using TLV on top of Flash Sector interface
  36. #define NVM_NUM_DEVICE_DB_ENTRIES 16
  37. #define NVM_NUM_LINK_KEYS 16
  38. // We don't give btstack a malloc, so use a fixed-size ATT DB.
  39. #define MAX_ATT_DB_SIZE 512
  40. // BTstack HAL configuration
  41. #define HAVE_EMBEDDED_TIME_MS
  42. // map btstack_assert onto Pico SDK assert()
  43. #define HAVE_ASSERT
  44. // Some USB dongles take longer to respond to HCI reset (e.g. BCM20702A).
  45. #define HCI_RESET_RESEND_TIMEOUT_MS 1000
  46. #define ENABLE_SOFTWARE_AES128
  47. #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS
  48. #endif // _PICO_BTSTACK_BTSTACK_CONFIG_H