Skip to content

Commit

Permalink
Merge branch 'feature/enable_build_wifi_examples_esp32c6' into 'master'
Browse files Browse the repository at this point in the history
examples: enable build esp32c2/esp32c6 for wifi and network examples

See merge request espressif/esp-idf!21970
  • Loading branch information
ydesp committed Jan 13, 2023
2 parents b1ff550 + f4ff1b5 commit db9586c
Show file tree
Hide file tree
Showing 66 changed files with 154 additions and 333 deletions.
2 changes: 1 addition & 1 deletion .gitlab/ci/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ build_examples_cmake_esp32c6:
extends:
- .build_cmake_template
- .rules:build:example_test-esp32c6
parallel: 2
parallel: 4
variables:
IDF_TARGET: esp32c6
TEST_DIR: examples
Expand Down
7 changes: 5 additions & 2 deletions components/esp_wifi/include/esp_wifi_he_types.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand All @@ -14,6 +14,9 @@
extern "C" {
#endif

#define FLOW_ID_ALL (8)
#define BSS_MAX_COLOR (63)

/**
* @brief Access category
*/
Expand Down Expand Up @@ -130,7 +133,7 @@ typedef struct {
uint16_t he_siga2; /**< HE-SIGA2 */
unsigned : 7; /**< reserved */
unsigned is_group : 1; /**< indicate whether the reception is a group addressed frame */
unsigned : 32; /**< reserved */
unsigned timestamp : 32; /**< timestamp. The local time when this packet is received. It is precise only if modem sleep or light sleep is not enabled. unit: microsecond */
unsigned : 15; /**< reserved */
unsigned : 15; /**< reserved */
unsigned : 2; /**< reserved */
Expand Down
2 changes: 1 addition & 1 deletion examples/mesh/.build-test-rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

examples/mesh:
disable:
- if: IDF_TARGET == "esp32c2" or IDF_TARGET == "esp32c6"
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target(s) not supported yet
4 changes: 2 additions & 2 deletions examples/mesh/internal_communication/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C3 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- |

# Mesh Internal Communication Example

Expand Down
4 changes: 2 additions & 2 deletions examples/mesh/ip_internal_network/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C3 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- |

# Mesh IP Internal Networking example

Expand Down
4 changes: 2 additions & 2 deletions examples/mesh/manual_networking/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C3 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- |

# Mesh Manual Networking Example

Expand Down
12 changes: 3 additions & 9 deletions examples/network/.build-test-rules.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps

examples/network/network_tests:
disable:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
examples/network:
enable:
- if: INCLUDE_DEFAULT == 1

examples/network/simple_sniffer:
disable:
- if: IDF_TARGET == "esp32c6"
temporary: true
reason: target esp32c6 is not supported yet
disable_test:
- if: IDF_TARGET not in ["esp32", "esp32c3", "esp32s3"]
temporary: true
Expand Down
4 changes: 2 additions & 2 deletions examples/network/network_tests/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |

# Intel net test suite for LwIP network stack

Expand Down
4 changes: 2 additions & 2 deletions examples/network/simple_sniffer/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |

# Simple Sniffer Example

Expand Down
Loading

0 comments on commit db9586c

Please sign in to comment.