1 /** 2 **************************************************************************************** 3 * 4 * @file rwapp_config.h 5 * 6 * @brief Application configuration definition 7 * 8 * Copyright (C) RivieraWaves 2009-2016 9 * 10 **************************************************************************************** 11 */ 12 13 14 #ifndef _RWAPP_CONFIG_H_ 15 #define _RWAPP_CONFIG_H_ 16 17 /** 18 **************************************************************************************** 19 * @addtogroup app 20 * @brief Application configuration definition 21 * 22 * @{ 23 **************************************************************************************** 24 */ 25 26 27 /* 28 * INCLUDE FILES 29 **************************************************************************************** 30 */ 31 32 /* 33 * DEFINES 34 **************************************************************************************** 35 */ 36 37 /******************************************************************************************/ 38 /* ------------------------- BLE APPLICATION SETTINGS -----------------------------*/ 39 /******************************************************************************************/ 40 41 42 /// Health Thermometer Application 43 #if defined(CFG_APP_HT) 44 #define BLE_APP_HT 1 45 #else // defined(CFG_APP_HT) 46 #define BLE_APP_HT 0 47 #endif // defined(CFG_APP_HT) 48 49 /// HID Application 50 #if defined(CFG_APP_HID) 51 #define BLE_APP_HID 1 52 #else // defined(CFG_APP_HID) 53 #define BLE_APP_HID 0 54 #endif // defined(CFG_APP_HID) 55 56 /// DIS Application 57 #if defined(CFG_APP_DIS) 58 #define BLE_APP_DIS 1 59 #else // defined(CFG_APP_DIS) 60 #define BLE_APP_DIS 0 61 #endif // defined(CFG_APP_DIS) 62 63 /// Time Application 64 #if defined(CFG_APP_TIME) 65 #define BLE_APP_TIME 1 66 #else // defined(CFG_APP_TIME) 67 #define BLE_APP_TIME 0 68 #endif // defined(CFG_APP_TIME) 69 70 /// Battery Service Application 71 #if defined(CFG_PRF_BASS) 72 #define BLE_APP_BATT 1 73 #else 74 #define BLE_APP_BATT 0 75 #endif // defined(CFG_PRF_BCSS) 76 77 /// Security Application 78 #if (defined(CFG_APP_SEC) || BLE_APP_HID || defined(BLE_APP_AM0)) 79 #define BLE_APP_SEC 1 80 //#define BLE_APP_SEC_CON 1 81 #else // defined(CFG_APP_SEC) 82 #define BLE_APP_SEC 0 83 #endif // defined(CFG_APP_SEC) 84 85 /// user-defined 86 #if defined(CFG_APP_USER) 87 #define BLE_APP_USER 1 88 #else // defined(CFG_APP_USER) 89 #define BLE_APP_USER 0 90 #endif // defined(CFG_APP_USER) 91 92 93 94 /// @} rwapp_config 95 96 #endif /* _RWAPP_CONFIG_H_ */ 97