Skip to content

Commit

Permalink
Merge branch 'feature/add_ieee802154_examples' into 'master'
Browse files Browse the repository at this point in the history
feat(ieee802154): Add ieee802154 examples

See merge request espressif/esp-idf!26423
  • Loading branch information
gytxxsy committed Jan 3, 2024
2 parents 0c007e1 + 13fa6c7 commit bae3c28
Show file tree
Hide file tree
Showing 20 changed files with 555 additions and 124 deletions.
1 change: 1 addition & 0 deletions .gitlab/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
/examples/cxx/ @esp-idf-codeowners/system
/examples/ethernet/ @esp-idf-codeowners/network
/examples/get-started/ @esp-idf-codeowners/system
/examples/ieee802154/ @esp-idf-codeowners/ieee802154
/examples/mesh/ @esp-idf-codeowners/wifi
/examples/network/ @esp-idf-codeowners/network @esp-idf-codeowners/wifi
/examples/openthread/ @esp-idf-codeowners/ieee802154
Expand Down
13 changes: 0 additions & 13 deletions .gitlab/ci/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1830,19 +1830,6 @@
- <<: *if-dev-push
changes: *patterns-target_test-adc

.rules:test:component_ut-esp32c6-i154:
rules:
- <<: *if-revert-branch
when: never
- <<: *if-protected
- <<: *if-label-build-only
when: never
- <<: *if-label-component_ut
- <<: *if-label-component_ut_esp32c6
- <<: *if-label-target_test
- <<: *if-dev-push
changes: *patterns-component_ut-i154

.rules:test:component_ut-esp32h2:
rules:
- <<: *if-revert-branch
Expand Down
8 changes: 4 additions & 4 deletions .gitlab/ci/target-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1306,12 +1306,12 @@ pytest_components_esp32c6_adc:
artifacts: false
tags: [ esp32c6, adc ]

pytest_components_esp32c6_i154:
pytest_examples_esp32c6_i154:
extends:
- .pytest_components_dir_template
- .rules:test:component_ut-esp32c6-i154
- .pytest_examples_dir_template
- .rules:test:example_test-esp32c6
needs:
- job: build_pytest_components_esp32c6
- job: build_pytest_examples_esp32c6
artifacts: false
tags: [ esp32c6, ieee802154 ]

Expand Down
5 changes: 0 additions & 5 deletions components/ieee802154/test_apps/.build-test-rules.yml

This file was deleted.

3 changes: 0 additions & 3 deletions components/ieee802154/test_apps/test_ieee802154/README.md

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The examples are grouped into subdirectories by category. Each category director
- `cxx` C++ language utilization examples and experimental components.
- `ethernet` Ethernet network examples.
- `get-started` Simple examples with minimal functionality. Good start point for beginners.
- `ieee802154` IEEE802.15.4 examples.
- `mesh` Wi-Fi Mesh examples.
- `network` Examples related to general network environment, test & analysis.
- `openthread` OpenThread examples.
Expand Down
19 changes: 19 additions & 0 deletions examples/ieee802154/.build-test-rules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps

.ieee802154_dependencies: &ieee802154_dependencies
depends_components:
- esp_coex
- esp_phy
- ieee802154
depends_filepatterns:
- examples/ieee802154/**/*
- examples/system/console/advanced/components/cmd_system/**/*

examples/ieee802154/ieee802154_cli:
enable:
- if: SOC_IEEE802154_SUPPORTED == 1
disable_test:
- if: IDF_TARGET == "esp32h2"
temporary: true
reason: only test on esp32c6
<<: *ieee802154_dependencies
9 changes: 9 additions & 0 deletions examples/ieee802154/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# IEEE802.15.4 Examples

See the [README.md](../README.md) file in the upper level [examples](../) directory for more information about examples.

## Overview

In this folder, it contains following IEEE802.15.4 examples:

* [ieee802154_cli](ieee802154_cli) is an IEEE802.15.4 Command Line example, the commands it supports are listed in [README.md](./ieee802154_cli//README.md). It runs on an 802.15.4 SoC like ESP32-H2.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
set(COMPONENTS main)

project(test_ieee802154)
project(ieee802154_cli)
Loading

0 comments on commit bae3c28

Please sign in to comment.