1 /**
2  * Copyright (c) 2015, Realsil Semiconductor Corporation. All rights reserved.
3  */
4 
5 #ifndef _BT_FLAGS_H_
6 #define _BT_FLAGS_H_
7 /*============================================================================*
8  *               Bluetooh Flags For AmebaD
9  *============================================================================*/
10 #define F_BT_BREDR_SUPPORT                  0       /* support BT Legacy */
11 
12 #define F_BT_LE_SUPPORT                     1       /* support BT Low Energy */
13 
14 /*============================================================================*
15  *               BLE Configuration Flags
16  *============================================================================*/
17 #define F_BT_LE_GAP_CENTRAL_SUPPORT         (F_BT_LE_SUPPORT && 1)
18 #define F_BT_LE_GAP_SCAN_SUPPORT            (F_BT_LE_SUPPORT && 1)
19 #define F_BT_LE_GAP_SCAN_FILTER_SUPPORT     (F_BT_LE_SUPPORT && 1)
20 #define F_BT_LE_GAP_PERIPHERAL_SUPPORT      (F_BT_LE_SUPPORT && 1)
21 #define F_BT_LE_GATT_CLIENT_SUPPORT         (F_BT_LE_SUPPORT && 1)
22 #define F_BT_LE_GATT_SERVER_SUPPORT         (F_BT_LE_SUPPORT && 1)
23 #define F_BT_LE_SMP_OOB_SUPPORT             (F_BT_LE_SUPPORT && 1)
24 
25 //BT 5
26 #define F_BT_LE_5_0_AE_ADV_SUPPORT          (F_BT_LE_5_0_SUPPORT && 0)
27 #define F_BT_LE_5_0_AE_SCAN_SUPPORT         (F_BT_LE_5_0_SUPPORT && 0)
28 #define F_BT_LE_5_0_SUPPORT                 (F_BT_LE_SUPPORT && 1)
29 #define F_BT_LE_5_0_SET_PHYS_SUPPORT        (F_BT_LE_5_0_SUPPORT && 1)
30 #define F_BT_LE_5_0_CSA2_SUPPORT            (F_BT_LE_5_0_SUPPORT && 0)
31 
32 //BT 4.2
33 #define F_BT_LE_4_2_SUPPORT                 (F_BT_LE_SUPPORT && 1)
34 #define F_BT_LE_4_2_SC_SUPPORT              (F_BT_LE_SUPPORT && 1)
35 #define F_BT_LE_4_2_DATA_LEN_EXT_SUPPORT    (F_BT_LE_4_2_SUPPORT && 1)
36 #define F_BT_LE_PRIVACY_SUPPORT             (F_BT_LE_4_2_SUPPORT && 0)
37 #define F_BT_LE_LOCAL_IRK_SETTING_SUPPORT   (F_BT_LE_SUPPORT && 0)
38 
39 //BT 4.0
40 #define F_BT_LE_READ_REMOTE_FEATS           (F_BT_LE_SUPPORT && 1)
41 #define F_BT_LE_ATT_SIGNED_WRITE_SUPPORT    (F_BT_LE_SUPPORT && 0)
42 
43 /*============================================================================*
44  *               Function Configuration Flags
45  *============================================================================*/
46 #define F_BT_CONTROLLER_POWER_CONTROL       0
47 #define F_BT_DEINIT                         1
48 
49 #endif /* _BT_FLAGS_H_ */
50