Skip to content

Commit aae5a8b

Browse files
renzbagaporoajita02
authored andcommitted
Remove need to copy protocomm_priv.h
1 parent 9b440d2 commit aae5a8b

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

docs/Linux_based_host/Linux_based_readme.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,7 @@ ESP-IDF release version to be used for ESP peripherals are
210210
| ESP32-C3 | release v4.3 |
211211
| ESP32-C3 (HCI over UART)| release v4.4 (beta)|
212212

213-
Clone appropriate ESP-IDF version as per your ESP peripheral. The control path between Linux host and ESP peripheral is based on `protobuf`. For that, corresponding stack layer, `protocomm` from ESP-IDF is used. Run following command in ESP-IDF directory to make `protocomm_priv.h` available for control path.
214-
```
215-
$ git mv components/protocomm/src/common/protocomm_priv.h components/protocomm/include/common/
216-
```
213+
Clone appropriate ESP-IDF version as per your ESP peripheral. The control path between Linux host and ESP peripheral is based on `protobuf`. For that, corresponding stack layer, `protocomm` from ESP-IDF is used.
217214

218215
### 2.3 ESP-Hosted Code Repository
219216
Clone esp-hosted repository on Linux host.

docs/MCU_based_host/MCU_based_readme.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,7 @@ For windows user, you can also program the binaries using ESP Flash Programming
121121

122122
#### 2.2.2 Compilation using source
123123
Please use above mentioned ESP-IDF repository release branch for your ESP peripheral.
124-
The control path between host and ESP peripheral is based on `protobuf`. For that `protocomm` layer from ESP-IDF is used. Run following command to make `protocomm_priv.h` available for control path.
125-
```
126-
$ git mv components/protocomm/src/common/protocomm_priv.h components/protocomm/include/common/
127-
```
124+
The control path between host and ESP peripheral is based on `protobuf`. For that `protocomm` layer from ESP-IDF is used.
128125

129126
Navigate to `esp/esp_driver/network_adapter` directory
130127
##### Using make

esp/esp_driver/network_adapter/main/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ endif()
1111
register_component()
1212
set(PROJECT_VERSION "-DPROJECT_VERSION=0.3")
1313
target_compile_definitions(${COMPONENT_LIB} PRIVATE ${PROJECT_VERSION})
14+
15+
# Add directory of protocomm_priv.h to include paths
16+
idf_component_get_property(protocomm_dir protocomm COMPONENT_DIR)
17+
target_include_directories(${COMPONENT_LIB} PRIVATE "${protocomm_dir}/src/common")

0 commit comments

Comments
 (0)