mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(efuse): Support efuse token dump
- efuse token dump is compatible with espefuse tool - EFSW dump can be burned on chip with esp_efuse_token_burn()
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2021-2025 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2021-2026 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -124,6 +124,28 @@ __attribute__((always_inline)) static inline uint32_t efuse_ll_get_dig_dbias_hvt
|
||||
return EFUSE.rd_mac_spi_sys_5.dig_dbias_hvt;
|
||||
}
|
||||
|
||||
__attribute__((always_inline)) static inline uint32_t efuse_ll_get_coding_error(unsigned index)
|
||||
{
|
||||
switch (index) {
|
||||
case 0:
|
||||
return EFUSE.rd_repeat_err0.val;
|
||||
case 1:
|
||||
return EFUSE.rd_repeat_err1.val;
|
||||
case 2:
|
||||
return EFUSE.rd_repeat_err2.val;
|
||||
case 3:
|
||||
return EFUSE.rd_repeat_err3.val;
|
||||
case 4:
|
||||
return EFUSE.rd_repeat_err4.val;
|
||||
case 5:
|
||||
return EFUSE.rd_rs_err0.val;
|
||||
case 6:
|
||||
return EFUSE.rd_rs_err1.val;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/******************* eFuse control functions *************************/
|
||||
|
||||
__attribute__((always_inline)) static inline bool efuse_ll_get_read_cmd(void)
|
||||
|
||||
Reference in New Issue
Block a user