Răsfoiți Sursa

ble_mesh: stack: Introduce a new header file mesh_config.h

lly 5 ani în urmă
părinte
comite
675c94a9d4

+ 1 - 1
components/bt/esp_ble_mesh/mesh_common/include/mesh_buf.h

@@ -11,7 +11,7 @@
 #ifndef _BLE_MESH_BUF_H_
 #define _BLE_MESH_BUF_H_
 
-#include "sdkconfig.h"
+#include "mesh_config.h"
 #include "mesh_slist.h"
 #include "mesh_compiler.h"
 

+ 30 - 0
components/bt/esp_ble_mesh/mesh_common/include/mesh_config.h

@@ -0,0 +1,30 @@
+// Copyright 2020-2021 Espressif Systems (Shanghai) PTE LTD
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#ifndef _BLE_MESH_CONFIG_H_
+#define _BLE_MESH_CONFIG_H_
+
+#include "sdkconfig.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _BLE_MESH_CONFIG_H_ */

+ 1 - 1
components/bt/esp_ble_mesh/mesh_common/include/mesh_kernel.h

@@ -13,7 +13,7 @@
 #include "freertos/queue.h"
 #include "freertos/semphr.h"
 
-#include "sdkconfig.h"
+#include "mesh_config.h"
 #include "mesh_types.h"
 
 #ifdef __cplusplus

+ 1 - 1
components/bt/esp_ble_mesh/mesh_core/include/mesh_access.h

@@ -11,7 +11,7 @@
 #ifndef _BLE_MESH_ACCESS_H_
 #define _BLE_MESH_ACCESS_H_
 
-#include "sdkconfig.h"
+#include "mesh_config.h"
 #include "mesh_buf.h"
 #include "mesh_timer.h"
 

+ 1 - 1
components/bt/esp_ble_mesh/mesh_core/include/mesh_bearer_adapt.h

@@ -10,7 +10,7 @@
 #define _BLE_MESH_BEARER_ADAPT_H_
 
 #include <sys/types.h>
-#include "sdkconfig.h"
+#include "mesh_config.h"
 #include "mesh_types.h"
 #include "mesh_util.h"
 #include "mesh_uuid.h"