ble_conf.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. /******************************************************************************
  24. *
  25. * BLE SERVICES CONFIGURATION
  26. * blesvc
  27. *
  28. ******************************************************************************/
  29. /**
  30. * This setting shall be set to '1' if the device needs to support the Peripheral Role
  31. * In the MS configuration, both BLE_CFG_PERIPHERAL and BLE_CFG_CENTRAL shall be set to '1'
  32. */
  33. #define BLE_CFG_PERIPHERAL 1
  34. /**
  35. * This setting shall be set to '1' if the device needs to support the Central Role
  36. * In the MS configuration, both BLE_CFG_PERIPHERAL and BLE_CFG_CENTRAL shall be set to '1'
  37. */
  38. #define BLE_CFG_CENTRAL 0
  39. /**
  40. * There is one handler per service enabled
  41. * Note: There is no handler for the Device Information Service
  42. *
  43. * This shall take into account all registered handlers
  44. * (from either the provided services or the custom services)
  45. */
  46. #define BLE_CFG_SVC_MAX_NBR_CB 7
  47. #define BLE_CFG_CLT_MAX_NBR_CB 0
  48. /******************************************************************************
  49. * GAP Service - Apprearance
  50. ******************************************************************************/
  51. #define BLE_CFG_UNKNOWN_APPEARANCE (0)
  52. #define BLE_CFG_GAP_APPEARANCE (0x0086)
  53. /******************************************************************************
  54. * Over The Air Feature (OTA) - STM Proprietary
  55. ******************************************************************************/
  56. #define BLE_CFG_OTA_REBOOT_CHAR 0 /**< REBOOT OTA MODE CHARACTERISTIC */
  57. #endif /*BLE_CONF_H */
  58. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/