ble_conf.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /**
  2. ******************************************************************************
  3. * File Name : App/ble_conf.h
  4. * Description : Configuration file for BLE Middleware.
  5. *
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under Ultimate Liberty license
  13. * SLA0044, the "License"; You may not use this file except in compliance with
  14. * the License. You may obtain a copy of the License at:
  15. * www.st.com/SLA0044
  16. *
  17. ******************************************************************************
  18. */
  19. /* Define to prevent recursive inclusion -------------------------------------*/
  20. #ifndef BLE_CONF_H
  21. #define BLE_CONF_H
  22. #include "app_conf.h"
  23. #ifndef __weak
  24. #define __weak __attribute__((weak))
  25. #endif
  26. /******************************************************************************
  27. *
  28. * BLE SERVICES CONFIGURATION
  29. * blesvc
  30. *
  31. ******************************************************************************/
  32. /**
  33. * This setting shall be set to '1' if the device needs to support the Peripheral Role
  34. * In the MS configuration, both BLE_CFG_PERIPHERAL and BLE_CFG_CENTRAL shall be set to '1'
  35. */
  36. #define BLE_CFG_PERIPHERAL 1
  37. /**
  38. * This setting shall be set to '1' if the device needs to support the Central Role
  39. * In the MS configuration, both BLE_CFG_PERIPHERAL and BLE_CFG_CENTRAL shall be set to '1'
  40. */
  41. #define BLE_CFG_CENTRAL 0
  42. /**
  43. * There is one handler per service enabled
  44. * Note: There is no handler for the Device Information Service
  45. *
  46. * This shall take into account all registered handlers
  47. * (from either the provided services or the custom services)
  48. */
  49. #define BLE_CFG_SVC_MAX_NBR_CB 7
  50. #define BLE_CFG_CLT_MAX_NBR_CB 0
  51. /******************************************************************************
  52. * GAP Service - Apprearance
  53. ******************************************************************************/
  54. #define BLE_CFG_UNKNOWN_APPEARANCE (0)
  55. #define BLE_CFG_GAP_APPEARANCE (0x0086)
  56. /******************************************************************************
  57. * Over The Air Feature (OTA) - STM Proprietary
  58. ******************************************************************************/
  59. #define BLE_CFG_OTA_REBOOT_CHAR 0 /**< REBOOT OTA MODE CHARACTERISTIC */
  60. #endif /*BLE_CONF_H */
  61. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/