Skip to content

Commit 68f0386

Browse files
author
muhaidong
committed
feat(phy): support esp32c5 cert test
1 parent 068c8ab commit 68f0386

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

components/esp_phy/include/esp_phy_cert_test.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ typedef enum {
3838
PHY_RATE_MCS5 = 0x15,
3939
PHY_RATE_MCS6 = 0x16,
4040
PHY_RATE_MCS7 = 0x17,
41-
#if CONFIG_SOC_WIFI_HE_SUPPORT
4241
// 11ax
4342
PHY_RATE_11AX_MCS0 = 0x20,
4443
PHY_RATE_11AX_MCS1 = 0x21,
@@ -50,7 +49,16 @@ typedef enum {
5049
PHY_RATE_11AX_MCS7 = 0x27,
5150
PHY_RATE_11AX_MCS8 = 0x28,
5251
PHY_RATE_11AX_MCS9 = 0x29,
53-
#endif//CONFIG_SOC_WIFI_HE_SUPPORT
52+
//VHT
53+
PHY_RATE_VHT_MCS0 = 0x30,
54+
PHY_RATE_VHT_MCS1 = 0x31,
55+
PHY_RATE_VHT_MCS2 = 0x32,
56+
PHY_RATE_VHT_MCS3 = 0x33,
57+
PHY_RATE_VHT_MCS4 = 0x34,
58+
PHY_RATE_VHT_MCS5 = 0x35,
59+
PHY_RATE_VHT_MCS6 = 0x36,
60+
PHY_RATE_VHT_MCS7 = 0x37,
61+
PHY_RATE_VHT_MCS8 = 0x38,
5462
PHY_WIFI_RATE_MAX
5563
} esp_phy_wifi_rate_t;
5664

examples/phy/.build-test-rules.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ examples/phy/cert_test:
1111
disable:
1212
- if: IDF_TARGET in ["esp32p4"]
1313
reason: not supported
14-
- if: IDF_TARGET in ["esp32c5", "esp32c61", "esp32h21", "esp32h4"]
14+
- if: IDF_TARGET in ["esp32c61", "esp32h21", "esp32h4"]
1515
temporary: true
1616
reason: not supported yet # TODO: [ESP32C5] IDF-8851, [esp32c61] IDF-9859, [esp32h21] IDF-12041, [ESP32H4] IDF-12716

examples/phy/cert_test/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S2 | ESP32-S3 |
2-
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
1+
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-H2 | ESP32-S2 | ESP32-S3 |
2+
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
33

44
# Certification Test Example
55

examples/phy/cert_test/main/cmd_phy.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ static phy_gpio_output_set_t phy_gpio_output_set_args;
4242
#define arg_int1(_a, _b, _c, _d) arg_int1(NULL, NULL, _c, _d)
4343
#endif
4444

45+
#if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32C2 || CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32H2 || CONFIG_IDF_TARGET_ESP32C6
4546
static int esp_phy_tx_contin_en_func(int argc, char **argv)
4647
{
4748
int nerrors = arg_parse(argc, argv, (void **) &phy_args);
@@ -57,6 +58,7 @@ static int esp_phy_tx_contin_en_func(int argc, char **argv)
5758
}
5859
return 0;
5960
}
61+
#endif
6062

6163
static int esp_phy_cmdstop_func(int argc, char **argv)
6264
{
@@ -518,6 +520,7 @@ void register_phy_cmd(void)
518520
phy_args.enable = arg_int0(NULL, NULL, "<enable>", "enable");
519521
phy_args.end = arg_end(1);
520522

523+
#if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32C2 || CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32H2 || CONFIG_IDF_TARGET_ESP32C6
521524
const esp_console_cmd_t tx_contin_cmd = {
522525
.command = "tx_contin_en",
523526
.help = "TX Continuous mode, 1: enable, 0: disable",
@@ -526,6 +529,7 @@ void register_phy_cmd(void)
526529
.argtable = &phy_args
527530
};
528531
ESP_ERROR_CHECK( esp_console_cmd_register(&tx_contin_cmd) );
532+
#endif
529533

530534
const esp_console_cmd_t cmdstop_cmd = {
531535
.command = "cmdstop",

0 commit comments

Comments
 (0)