1 #ifndef _RWAPP_CONFIG_H_
2 #define _RWAPP_CONFIG_H_
3 
4 /**
5  ****************************************************************************************
6  * @addtogroup app
7  * @brief Application configuration definition
8  *
9  * @{
10  ****************************************************************************************
11  */
12 
13 
14 /*
15  * INCLUDE FILES
16  ****************************************************************************************
17  */
18 
19 /*
20  * DEFINES
21  ****************************************************************************************
22  */
23 
24 /******************************************************************************************/
25 /* -------------------------   BLE APPLICATION SETTINGS      -----------------------------*/
26 /******************************************************************************************/
27 #define CFG_APP_DATAPATH_SERVER
28 
29 #define FAST_PAIR_REV_1_0   0
30 #define FAST_PAIR_REV_2_0   1
31 #define BLE_APP_GFPS_VER    FAST_PAIR_REV_2_0
32 
33 #ifdef GFPS_ENABLED
34 #if BLE_APP_GFPS_VER==FAST_PAIR_REV_2_0
35     #define CFG_APP_GFPS
36     #ifndef CFG_APP_SEC
37     #define CFG_APP_SEC
38     #endif
39 #else
40     #undef CFG_APP_GFPS
41 #endif
42 #endif
43 
44 #if defined(BISTO_ENABLED)
45 #ifndef CFG_APP_SEC
46 #define CFG_APP_SEC
47 #endif
48 #endif
49 
50 #ifdef VOICE_DATAPATH
51 #define CFG_APP_VOICEPATH
52 #ifndef CFG_APP_SEC
53 #define CFG_APP_SEC
54 #endif
55 #endif
56 
57 #ifdef TILE_DATAPATH
58 #define CFG_APP_TILE
59 #endif
60 
61 #ifdef BES_OTA_BASIC
62 #define CFG_APP_OTA
63 #endif
64 
65 #ifdef BLE_TOTA_ENABLED
66 #define CFG_APP_TOTA
67 #endif
68 
69 #ifdef __AI_VOICE__
70 #ifndef CFG_APP_SEC
71 #define CFG_APP_SEC
72 #endif
73 #ifndef CFG_SEC_CON
74 #define CFG_SEC_CON
75 #endif
76 
77 #define CFG_APP_AI_VOICE
78 #endif
79 
80 #if defined(VOICE_DATAPATH) && defined(BISTO_ENABLED)
81 #define ANCS_PROXY_ENABLE 1
82 #else
83 #define ANCS_PROXY_ENABLE 0
84 #endif
85 
86 #if ANCS_PROXY_ENABLE
87 #define CFG_APP_AMS
88 #define CFG_APP_ANCC
89 #endif
90 
91 #ifdef CHIP_FPGA1000
92 #ifndef CFG_APP_SEC
93 #define CFG_APP_SEC
94 #endif
95 #endif
96 /// Health Thermometer Application
97 #if defined(CFG_APP_HT)
98 #define BLE_APP_HT           1
99 #else // defined(CFG_APP_HT)
100 #define BLE_APP_HT           0
101 #endif // defined(CFG_APP_HT)
102 
103 #if defined(CFG_APP_HR)
104 #define BLE_APP_HR           1
105 #else
106 #define BLE_APP_HR           0
107 #endif
108 
109 /// Data Path Server Application
110 #if defined(CFG_APP_DATAPATH_SERVER)
111 #define BLE_APP_DATAPATH_SERVER           1
112 #else // defined(CFG_APP_DATAPATH_SERVER)
113 #define BLE_APP_DATAPATH_SERVER           0
114 #endif // defined(CFG_APP_DATAPATH_SERVER)
115 
116 /// HID Application
117 #if defined(CFG_APP_HID)
118 #define BLE_APP_HID          1
119 #else // defined(CFG_APP_HID)
120 #define BLE_APP_HID          0
121 #endif // defined(CFG_APP_HID)
122 
123 /// DIS Application
124 #if defined(CFG_APP_DIS)
125 #define BLE_APP_DIS          1
126 #else // defined(CFG_APP_DIS)
127 #define BLE_APP_DIS          0
128 #endif // defined(CFG_APP_DIS)
129 
130 /// Time Application
131 #if defined(CFG_APP_TIME)
132 #define BLE_APP_TIME         1
133 #else // defined(CFG_APP_TIME)
134 #define BLE_APP_TIME         0
135 #endif // defined(CFG_APP_TIME)
136 
137 /// Battery Service Application
138 #if (BLE_APP_HID)
139 #define BLE_APP_BATT          1
140 #else
141 #define BLE_APP_BATT          0
142 #endif // (BLE_APP_HID)
143 
144 /// Security Application
145 #if (defined(CFG_APP_SEC) || BLE_APP_HID || defined(BLE_APP_AM0))
146 #define BLE_APP_SEC          1
147 #else // defined(CFG_APP_SEC)
148 #define BLE_APP_SEC          0
149 #endif // defined(CFG_APP_SEC)
150 
151 /// Voice Path Application
152 #if defined(CFG_APP_VOICEPATH)
153 #define BLE_APP_VOICEPATH           1
154 #else // defined(CFG_APP_VOICEPATH)
155 #define BLE_APP_VOICEPATH           0
156 #endif // defined(CFG_APP_VOICEPATH)
157 
158 #if defined(CFG_APP_TILE)
159 #define BLE_APP_TILE           1
160 #else // defined(CFG_APP_TILE)
161 #define BLE_APP_TILE           0
162 #endif // defined(CFG_APP_TILE)
163 
164 /// OTA Application
165 #if defined(CFG_APP_OTA)
166 #define BLE_APP_OTA           1
167 #else // defined(CFG_APP_OTA)
168 #define BLE_APP_OTA           0
169 #endif // defined(CFG_APP_OTA)
170 
171 #if defined(CFG_APP_TOTA)
172 #define BLE_APP_TOTA           1
173 #else // defined(CFG_APP_TOTA)
174 #define BLE_APP_TOTA           0
175 #endif // defined(CFG_APP_TOTA)
176 
177 /// ANCC Application
178 #if defined(CFG_APP_ANCC)
179 #define BLE_APP_ANCC    1
180 #else // defined(CFG_APP_ANCC)
181 #define BLE_APP_ANCC    0
182 #endif // defined(CFG_APP_ANCC)
183 
184 /// AMS Application
185 #if defined(CFG_APP_AMS)
186 #define BLE_APP_AMS    1
187 #else // defined(CFG_APP_AMS)
188 #define BLE_APP_AMS    0
189 #endif // defined(CFG_APP_AMS)
190 /// GFPS Application
191 #if defined(CFG_APP_GFPS)
192 #define BLE_APP_GFPS          1
193 #else // defined(CFG_APP_GFPS)
194 #define BLE_APP_GFPS          0
195 #endif // defined(CFG_APP_GFPS)
196 
197 
198 /// AMA Voice Application
199 #if defined(CFG_APP_AI_VOICE)
200 #define BLE_APP_AI_VOICE           1
201 #else // defined(CFG_APP_AMA)
202 #define BLE_APP_AI_VOICE           0
203 #endif // defined(CFG_APP_AMA)
204 
205 /// @} rwapp_config
206 
207 #endif /* _RWAPP_CONFIG_H_ */
208