73 lines
1.7 KiB
C

/**
* @file rwapp_config.h
* @brief Application configuration definition: maps CFG_APP_* switches (from
* app_user_config.h / rwip_config.h) to BLE_APP_* macros used by the SDK.
*/
#ifndef _RWAPP_CONFIG_H_
#define _RWAPP_CONFIG_H_
#include "app_user_config.h"
#include "rwip_config.h"
/* Includes ------------------------------------------------------------------*/
/* Define ------------------------------------------------------------*/
/// Application Profile
#if defined(CFG_APP_PRF)
#define BLE_APP_PRF 1
#else // defined(CFG_APP_PRF)
#define BLE_APP_PRF 0
#endif // defined(CFG_APP_PRF)
/// Health Thermometer Application
#if defined(CFG_APP_HT)
#define BLE_APP_HT 1
#else // defined(CFG_APP_HT)
#define BLE_APP_HT 0
#endif // defined(CFG_APP_HT)
/// HID Application
#if defined(CFG_APP_HID)
#define BLE_APP_HID 1
#else // defined(CFG_APP_HID)
#define BLE_APP_HID 0
#endif // defined(CFG_APP_HID)
/// DIS Application
#if defined(CFG_APP_DIS)
#define BLE_APP_DIS 1
#else // defined(CFG_APP_DIS)
#define BLE_APP_DIS 0
#endif // defined(CFG_APP_DIS)
/// Battery Service Application
#if (CFG_APP_BATT)
#define BLE_APP_BATT 1
#else
#define BLE_APP_BATT 0
#endif //(CFG_APP_BATT)
/// Security Application
#if (defined(CFG_APP_SEC) || BLE_APP_HID)
#define BLE_APP_SEC 1
#else //(defined(CFG_APP_SEC) || BLE_APP_HID)
#define BLE_APP_SEC 0
#endif //(defined(CFG_APP_SEC) || BLE_APP_HID)
#define AM0_APP_OPTIONAL_CHARACTERISTICS 0
#if defined(CFG_APP_NS_IUS)
#define BLE_APP_NS_IUS 1
#else // defined(CFG_APP_NS_IUS)
#define BLE_APP_NS_IUS 0
#endif // defined(CFG_APP_NS_IUS)
/// @} rwapp_config
#endif /* _RWAPP_CONFIG_H_ */