mirror of
https://github.com/espressif/esp-idf
synced 2025-03-21 23:19:10 -04:00
48 lines
1.3 KiB
C
48 lines
1.3 KiB
C
/*
|
|
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
// The HAL layer for PMU
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "soc/soc_caps.h"
|
|
#include "hal/pmu_ll.h"
|
|
#include "hal/pmu_types.h"
|
|
|
|
// TODO: [ESP32C61] IDF-9250, inherit from c6
|
|
|
|
typedef struct {
|
|
pmu_dev_t *dev;
|
|
} pmu_hal_context_t;
|
|
|
|
void pmu_hal_hp_set_digital_power_up_wait_cycle(pmu_hal_context_t *hal, uint32_t power_supply_wait_cycle, uint32_t power_up_wait_cycle);
|
|
|
|
uint32_t pmu_hal_hp_get_digital_power_up_wait_cycle(pmu_hal_context_t *hal);
|
|
|
|
void pmu_hal_lp_set_digital_power_up_wait_cycle(pmu_hal_context_t *hal, uint32_t power_supply_wait_cycle, uint32_t power_up_wait_cycle);
|
|
|
|
uint32_t pmu_hal_lp_get_digital_power_up_wait_cycle(pmu_hal_context_t *hal);
|
|
|
|
void pmu_hal_hp_set_sleep_active_backup_enable(pmu_hal_context_t *hal);
|
|
|
|
void pmu_hal_hp_set_sleep_active_backup_disable(pmu_hal_context_t *hal);
|
|
|
|
void pmu_hal_hp_set_sleep_modem_backup_enable(pmu_hal_context_t *hal);
|
|
|
|
void pmu_hal_hp_set_sleep_modem_backup_disable(pmu_hal_context_t *hal);
|
|
|
|
void pmu_hal_hp_set_modem_active_backup_enable(pmu_hal_context_t *hal);
|
|
|
|
void pmu_hal_hp_set_modem_active_backup_disable(pmu_hal_context_t *hal);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|