mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 12:35:28 +00:00
56 lines
968 B
C
56 lines
968 B
C
/*
|
|
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include "soc/soc_caps.h"
|
|
#include "hal/efuse_ll.h"
|
|
#include_next "hal/efuse_hal.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief get chip version
|
|
*/
|
|
uint32_t efuse_hal_get_chip_revision(void);
|
|
|
|
/**
|
|
* @brief get rated frequency in MHz
|
|
*/
|
|
uint32_t efuse_hal_get_rated_freq_mhz(void);
|
|
|
|
/**
|
|
* @brief set eFuse timings
|
|
*
|
|
* @param apb_freq_mhz APB frequency in MHz
|
|
*/
|
|
void efuse_hal_set_timing(uint32_t apb_freq_mhz);
|
|
|
|
/**
|
|
* @brief trigger eFuse read operation
|
|
*/
|
|
void efuse_hal_read(void);
|
|
|
|
/**
|
|
* @brief clear registers for programming eFuses
|
|
*/
|
|
void efuse_hal_clear_program_registers(void);
|
|
|
|
/**
|
|
* @brief burn eFuses written in programming registers (all blocks at once)
|
|
*
|
|
* @param block not used
|
|
*/
|
|
void efuse_hal_program(uint32_t block);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|