1 /*
2  * SPDX-FileCopyrightText: 2020-2021 Espressif Systems (Shanghai) CO LTD
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef _BLE_MESH_CONFIG_H_
8 #define _BLE_MESH_CONFIG_H_
9 
10 #include "sdkconfig.h"
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 #define CONFIG_BLE_MESH_GENERIC_CLIENT (CONFIG_BLE_MESH_GENERIC_ONOFF_CLI || \
17                                         CONFIG_BLE_MESH_GENERIC_LEVEL_CLI || \
18                                         CONFIG_BLE_MESH_GENERIC_DEF_TRANS_TIME_CLI || \
19                                         CONFIG_BLE_MESH_GENERIC_POWER_ONOFF_CLI || \
20                                         CONFIG_BLE_MESH_GENERIC_POWER_LEVEL_CLI || \
21                                         CONFIG_BLE_MESH_GENERIC_BATTERY_CLI || \
22                                         CONFIG_BLE_MESH_GENERIC_LOCATION_CLI || \
23                                         CONFIG_BLE_MESH_GENERIC_PROPERTY_CLI)
24 
25 #define CONFIG_BLE_MESH_TIME_SCENE_CLIENT (CONFIG_BLE_MESH_TIME_CLI || \
26                                            CONFIG_BLE_MESH_SCENE_CLI || \
27                                            CONFIG_BLE_MESH_SCHEDULER_CLI)
28 
29 #define CONFIG_BLE_MESH_LIGHTING_CLIENT (CONFIG_BLE_MESH_LIGHT_LIGHTNESS_CLI || \
30                                          CONFIG_BLE_MESH_LIGHT_CTL_CLI || \
31                                          CONFIG_BLE_MESH_LIGHT_HSL_CLI || \
32                                          CONFIG_BLE_MESH_LIGHT_XYL_CLI || \
33                                          CONFIG_BLE_MESH_LIGHT_LC_CLI)
34 
35 #define CONFIG_BLE_MESH_SERVER_MODEL (CONFIG_BLE_MESH_GENERIC_SERVER || \
36                                       CONFIG_BLE_MESH_SENSOR_SERVER || \
37                                       CONFIG_BLE_MESH_TIME_SCENE_SERVER || \
38                                       CONFIG_BLE_MESH_LIGHTING_SERVER)
39 
40 #define CONFIG_BLE_MESH_BLE_COEX_SUPPORT (CONFIG_BLE_MESH_SUPPORT_BLE_ADV || \
41                                           CONFIG_BLE_MESH_SUPPORT_BLE_SCAN)
42 
43 #ifdef __cplusplus
44 }
45 #endif
46 
47 #endif /* _BLE_MESH_CONFIG_H_ */
48