mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-07 14:44:32 +02:00
example: bringup light sleep example for esp32c6
This commit is contained in:
@@ -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
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
@@ -76,7 +76,7 @@ typedef enum {
|
|||||||
UART_INTR_RS485_FRM_ERR = (0x1 << 16),
|
UART_INTR_RS485_FRM_ERR = (0x1 << 16),
|
||||||
UART_INTR_RS485_CLASH = (0x1 << 17),
|
UART_INTR_RS485_CLASH = (0x1 << 17),
|
||||||
UART_INTR_CMD_CHAR_DET = (0x1 << 18),
|
UART_INTR_CMD_CHAR_DET = (0x1 << 18),
|
||||||
// UART_INTR_WAKEUP = (0x1 << 19), // TODO: Test UART wakeup while supporting sleep
|
UART_INTR_WAKEUP = (0x1 << 19),
|
||||||
} uart_intr_t;
|
} uart_intr_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -106,7 +106,7 @@ examples/system/ipc/ipc_isr:
|
|||||||
|
|
||||||
examples/system/light_sleep:
|
examples/system/light_sleep:
|
||||||
disable:
|
disable:
|
||||||
- if: IDF_TARGET in ["esp32c2", "esp32c6", "esp32h2"]
|
- if: IDF_TARGET in ["esp32c2", "esp32h2"]
|
||||||
temporary: true
|
temporary: true
|
||||||
reason: target(s) not supported yet
|
reason: target(s) not supported yet
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
| Supported Targets | ESP32 | ESP32-C3 | ESP32-S2 | ESP32-S3 |
|
| Supported Targets | ESP32 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 |
|
||||||
| ----------------- | ----- | -------- | -------- | -------- |
|
| ----------------- | ----- | -------- | -------- | -------- | -------- |
|
||||||
|
|
||||||
# Light Sleep Example
|
# Light Sleep Example
|
||||||
|
|
||||||
|
@@ -12,7 +12,8 @@
|
|||||||
/* Most development boards have "boot" button attached to GPIO0.
|
/* Most development boards have "boot" button attached to GPIO0.
|
||||||
* You can also change this to another pin.
|
* You can also change this to another pin.
|
||||||
*/
|
*/
|
||||||
#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C2 || CONFIG_IDF_TARGET_ESP32H4
|
#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C2 || CONFIG_IDF_TARGET_ESP32H4 \
|
||||||
|
|| CONFIG_IDF_TARGET_ESP32C6
|
||||||
#define BOOT_BUTTON_NUM 9
|
#define BOOT_BUTTON_NUM 9
|
||||||
#else
|
#else
|
||||||
#define BOOT_BUTTON_NUM 0
|
#define BOOT_BUTTON_NUM 0
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
@@ -13,6 +13,7 @@ from pytest_embedded import Dut
|
|||||||
@pytest.mark.esp32s2
|
@pytest.mark.esp32s2
|
||||||
@pytest.mark.esp32s3
|
@pytest.mark.esp32s3
|
||||||
@pytest.mark.esp32c3
|
@pytest.mark.esp32c3
|
||||||
|
@pytest.mark.esp32c6
|
||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
def test_light_sleep(dut: Dut) -> None:
|
def test_light_sleep(dut: Dut) -> None:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user