/** **************************************************************************************** * * @file rwapp_config.h * * @brief Application configuration definition * * Copyright (C) RivieraWaves 2009-2016 * **************************************************************************************** */ #ifndef _RWAPP_CONFIG_H_ #define _RWAPP_CONFIG_H_ /** **************************************************************************************** * @addtogroup app * @brief Application configuration definition * * @{ **************************************************************************************** */ /* * INCLUDE FILES **************************************************************************************** */ /* * DEFINES **************************************************************************************** */ #define CFG_APP_BATT /******************************************************************************************/ /* ------------------------- BLE APPLICATION SETTINGS * -----------------------------*/ /******************************************************************************************/ /// 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 defined(CFG_APP_BATT) #define BLE_APP_BATT 1 #else #define BLE_APP_BATT 0 #endif //(BLE_APP_BATT) // There are 3 modes of flash operation, turn on one of them according to your needs. // This method can be operated at any time without affecting the Bluetooth send and receive packets. #define FLASH_TEST_IN_INTERRUPT (0) // This method can be operated at any time, and will affect the Bluetooth send and receive packets. #define FLASH_TEST_IN_TASK (0) // This way operates in the gap of Bluetooth and will not affect the Bluetooth sending and receiving packets, // but the flash operation may not be successful immediately. #define FLASH_TEST_IN_BLUETOOTH_GAP (0) // The master sends test data to the slave once per second. #define CENTRAL_SEND_TEST_DATA (0) /// @} rwapp_config #endif /* _RWAPP_CONFIG_H_ */