fix(esp32c5): fixed the lack of crosscore ll on c5

This commit is contained in:
laokaiyao
2024-01-22 22:50:07 +08:00
parent eb1fd7365e
commit c0c6af99e9
8 changed files with 75 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2019-2023 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2019-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -145,6 +145,12 @@ extern "C" {
#define PMU_SLEEP_PD_RC32K BIT(13)
#define PMU_SLEEP_PD_LP_PERIPH BIT(14)
/**
* This macro only used for detecting whether the enums are declared
* So that to avoid use the enum when PMU is not supported
*/
#define ESP_PMU_ENUMS_DECLARED
typedef struct {
pmu_hal_context_t *hal;
void *mc;