2021-09-10 05:19:02 +03:00
|
|
|
/**
|
|
|
|
******************************************************************************
|
|
|
|
* File Name : App/ble_conf.h
|
|
|
|
* Description : Configuration file for BLE Middleware.
|
|
|
|
*
|
|
|
|
******************************************************************************
|
|
|
|
* @attention
|
|
|
|
*
|
|
|
|
* <h2><center>© Copyright (c) 2020 STMicroelectronics.
|
|
|
|
* All rights reserved.</center></h2>
|
|
|
|
*
|
|
|
|
* This software component is licensed by ST under Ultimate Liberty license
|
|
|
|
* SLA0044, the "License"; You may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at:
|
|
|
|
* www.st.com/SLA0044
|
|
|
|
*
|
|
|
|
******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
|
|
#ifndef BLE_CONF_H
|
|
|
|
#define BLE_CONF_H
|
|
|
|
|
|
|
|
#include "app_conf.h"
|
|
|
|
|
2022-03-30 18:23:40 +03:00
|
|
|
#ifndef __weak
|
|
|
|
#define __weak __attribute__((weak))
|
|
|
|
#endif
|
|
|
|
|
2021-09-10 05:19:02 +03:00
|
|
|
/******************************************************************************
|
|
|
|
*
|
|
|
|
* BLE SERVICES CONFIGURATION
|
|
|
|
* blesvc
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
2022-01-05 19:10:18 +03:00
|
|
|
/**
|
2021-09-10 05:19:02 +03:00
|
|
|
* This setting shall be set to '1' if the device needs to support the Peripheral Role
|
|
|
|
* In the MS configuration, both BLE_CFG_PERIPHERAL and BLE_CFG_CENTRAL shall be set to '1'
|
|
|
|
*/
|
2022-01-05 19:10:18 +03:00
|
|
|
#define BLE_CFG_PERIPHERAL 1
|
2021-09-10 05:19:02 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This setting shall be set to '1' if the device needs to support the Central Role
|
|
|
|
* In the MS configuration, both BLE_CFG_PERIPHERAL and BLE_CFG_CENTRAL shall be set to '1'
|
|
|
|
*/
|
2022-01-05 19:10:18 +03:00
|
|
|
#define BLE_CFG_CENTRAL 0
|
2021-09-10 05:19:02 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* There is one handler per service enabled
|
|
|
|
* Note: There is no handler for the Device Information Service
|
|
|
|
*
|
|
|
|
* This shall take into account all registered handlers
|
|
|
|
* (from either the provided services or the custom services)
|
|
|
|
*/
|
2022-01-05 19:10:18 +03:00
|
|
|
#define BLE_CFG_SVC_MAX_NBR_CB 7
|
2021-09-10 05:19:02 +03:00
|
|
|
|
2022-01-05 19:10:18 +03:00
|
|
|
#define BLE_CFG_CLT_MAX_NBR_CB 0
|
2021-09-10 05:19:02 +03:00
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* GAP Service - Apprearance
|
|
|
|
******************************************************************************/
|
|
|
|
|
2022-01-05 19:10:18 +03:00
|
|
|
#define BLE_CFG_UNKNOWN_APPEARANCE (0)
|
|
|
|
#define BLE_CFG_GAP_APPEARANCE (0x0086)
|
2021-09-10 05:19:02 +03:00
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* Over The Air Feature (OTA) - STM Proprietary
|
|
|
|
******************************************************************************/
|
2022-01-05 19:10:18 +03:00
|
|
|
#define BLE_CFG_OTA_REBOOT_CHAR 0 /**< REBOOT OTA MODE CHARACTERISTIC */
|
2021-09-10 05:19:02 +03:00
|
|
|
|
|
|
|
#endif /*BLE_CONF_H */
|
|
|
|
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|