mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-29 05:38:42 +00:00
Merge branch 'feature/lp_core_etm' into 'master'
feat(lp-core): added support for using ETM events as wake-up source Closes IDF-10201 and IDF-6360 See merge request espressif/esp-idf!31810
This commit is contained in:
41
components/hal/include/hal/lp_core_types.h
Normal file
41
components/hal/include/hal/lp_core_types.h
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "soc/soc_caps.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if SOC_LP_CORE_SUPPORTED
|
||||
|
||||
#if SOC_LP_CORE_SUPPORT_ETM
|
||||
/**
|
||||
* @brief LP-Core event types enum
|
||||
*/
|
||||
typedef enum {
|
||||
LP_CORE_EVENT_ERR_INTR, /*!< Exception triggered on LP-Core */
|
||||
LP_CORE_EVENT_START_INTR, /*!< LP-Core clock has been turned on */
|
||||
LP_CORE_EVENT_MAX, /*!< Maximum number of LP-Core events */
|
||||
} lp_core_etm_event_type_t;
|
||||
|
||||
/**
|
||||
* @brief LP-Core task types enum
|
||||
*/
|
||||
typedef enum {
|
||||
LP_CORE_TASK_WAKEUP_CPU, /*!< LP-Core wake-up task */
|
||||
LP_CORE_TASK_MAX, /*!< Maximum number of LP-Core tasks */
|
||||
} lp_core_etm_task_type_t;
|
||||
|
||||
#endif //SOC_LP_CORE_SUPPORT_ETM
|
||||
|
||||
#endif //SOC_LP_CORE_SUPPORTED
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user