ble_mesh: Rename ble mesh example main & init files

- Rename ble_mesh_demo_main.c to main.c
- Rename ble_mesh_demo_init.* to ble_mesh_example_init.*
This commit is contained in:
lly 2020-05-13 16:16:07 +08:00
parent 6149b640c9
commit 0e4faac0ee
23 changed files with 25 additions and 25 deletions

View file

@ -1,4 +1,4 @@
set(COMPONENT_SRCS "ble_mesh_demo_main.c")
set(COMPONENT_SRCS "main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")

View file

@ -29,7 +29,7 @@
#include "esp_fast_prov_common.h"
#include "esp_fast_prov_operation.h"
#include "esp_fast_prov_client_model.h"
#include "ble_mesh_demo_init.h"
#include "ble_mesh_example_init.h"
#define PROV_OWN_ADDR 0x0001
#define APP_KEY_OCTET 0x12

View file

@ -1,4 +1,4 @@
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
set(COMPONENT_SRCS "main.c"
"board.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")

View file

@ -30,7 +30,7 @@
#include "esp_fast_prov_operation.h"
#include "esp_fast_prov_client_model.h"
#include "esp_fast_prov_server_model.h"
#include "ble_mesh_demo_init.h"
#include "ble_mesh_example_init.h"
extern struct _led_state led_state[3];
extern struct k_delayed_work send_self_prov_node_addr_timer;

View file

@ -1,4 +1,4 @@
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
set(COMPONENT_SRCS "main.c"
"board.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")

View file

@ -20,7 +20,7 @@
#include "esp_ble_mesh_generic_model_api.h"
#include "board.h"
#include "ble_mesh_demo_init.h"
#include "ble_mesh_example_init.h"
#define CID_ESP 0x02E5

View file

@ -1,4 +1,4 @@
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
set(COMPONENT_SRCS "main.c"
"board.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")

View file

@ -22,7 +22,7 @@
#include "esp_ble_mesh_local_data_operation_api.h"
#include "board.h"
#include "ble_mesh_demo_init.h"
#include "ble_mesh_example_init.h"
#define CID_ESP 0x02E5

View file

@ -1,4 +1,4 @@
set(COMPONENT_SRCS "ble_mesh_demo_main.c")
set(COMPONENT_SRCS "main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")

View file

@ -19,7 +19,7 @@
#include "esp_ble_mesh_config_model_api.h"
#include "esp_ble_mesh_generic_model_api.h"
#include "ble_mesh_demo_init.h"
#include "ble_mesh_example_init.h"
#define LED_OFF 0x0
#define LED_ON 0x1

View file

@ -1,4 +1,4 @@
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
set(COMPONENT_SRCS "main.c"
"board.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")

View file

@ -19,7 +19,7 @@
#include "esp_ble_mesh_config_model_api.h"
#include "esp_ble_mesh_sensor_model_api.h"
#include "ble_mesh_demo_init.h"
#include "ble_mesh_example_init.h"
#include "board.h"
#define CID_ESP 0x02E5

View file

@ -1,4 +1,4 @@
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
set(COMPONENT_SRCS "main.c"
"board.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")

View file

@ -20,7 +20,7 @@
#include "esp_ble_mesh_config_model_api.h"
#include "esp_ble_mesh_sensor_model_api.h"
#include "ble_mesh_demo_init.h"
#include "ble_mesh_example_init.h"
#include "board.h"
#define CID_ESP 0x02E5

View file

@ -1,4 +1,4 @@
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
set(COMPONENT_SRCS "main.c"
"board.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")

View file

@ -19,7 +19,7 @@
#include "esp_ble_mesh_networking_api.h"
#include "esp_ble_mesh_config_model_api.h"
#include "ble_mesh_demo_init.h"
#include "ble_mesh_example_init.h"
#include "board.h"
#define CID_ESP 0x02E5

View file

@ -1,4 +1,4 @@
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
set(COMPONENT_SRCS "main.c"
"board.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")

View file

@ -22,7 +22,7 @@
#include "esp_ble_mesh_local_data_operation_api.h"
#include "board.h"
#include "ble_mesh_demo_init.h"
#include "ble_mesh_example_init.h"
#define CID_ESP 0x02E5
#define CID_NVAL 0xFFFF

View file

@ -1,4 +1,4 @@
set(COMPONENT_SRCS "ble_mesh_demo_main.c"
set(COMPONENT_SRCS "main.c"
"board.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")

View file

@ -42,7 +42,7 @@
#include "esp_fast_prov_operation.h"
#include "esp_fast_prov_client_model.h"
#include "esp_fast_prov_server_model.h"
#include "ble_mesh_demo_init.h"
#include "ble_mesh_example_init.h"
extern struct _led_state led_state[3];
extern struct k_delayed_work send_self_prov_node_addr_timer;

View file

@ -1,4 +1,4 @@
set(COMPONENT_SRCS "ble_mesh_demo_init.c")
set(COMPONENT_SRCS "ble_mesh_example_init.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")

View file

@ -27,7 +27,7 @@
#endif
#include "esp_ble_mesh_defs.h"
#include "ble_mesh_demo_init.h"
#include "ble_mesh_example_init.h"
#ifdef CONFIG_BLUEDROID_ENABLED

View file

@ -6,8 +6,8 @@
CONDITIONS OF ANY KIND, either express or implied.
*/
#ifndef _BLE_MESH_DEMO_INIT_H_
#define _BLE_MESH_DEMO_INIT_H_
#ifndef _BLE_MESH_EXAMPLE_INIT_H_
#define _BLE_MESH_EXAMPLE_INIT_H_
#include "esp_err.h"
@ -17,4 +17,4 @@ void ble_mesh_get_dev_uuid(uint8_t *dev_uuid);
esp_err_t bluetooth_init(void);
#endif /* _BLE_MESH_DEMO_INIT_H_ */
#endif /* _BLE_MESH_EXAMPLE_INIT_H_ */