mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-28 04:05:39 +00:00
all: Apply new version logic (major * 100 + minor)
This commit is contained in:
committed by
BOT
parent
2b04fa8059
commit
e88f235326
@@ -9,6 +9,7 @@
|
||||
#include "soc/soc_caps.h"
|
||||
#include "hal/efuse_hal.h"
|
||||
#include "hal/efuse_ll.h"
|
||||
#include "esp_attr.h"
|
||||
|
||||
#define ESP_EFUSE_BLOCK_ERROR_BITS(error_reg, block) ((error_reg) & (0x0F << (4 * (block))))
|
||||
|
||||
@@ -22,7 +23,7 @@ static inline bool is_eco0(uint32_t minor_raw)
|
||||
efuse_ll_get_blk_version_major() == 1 && efuse_ll_get_blk_version_minor() == 1);
|
||||
}
|
||||
|
||||
uint32_t efuse_hal_get_major_chip_version(void)
|
||||
IRAM_ATTR uint32_t efuse_hal_get_major_chip_version(void)
|
||||
{
|
||||
uint32_t minor_raw = efuse_ll_get_chip_wafer_version_minor();
|
||||
|
||||
@@ -32,7 +33,7 @@ uint32_t efuse_hal_get_major_chip_version(void)
|
||||
return efuse_ll_get_chip_wafer_version_major();
|
||||
}
|
||||
|
||||
uint32_t efuse_hal_get_minor_chip_version(void)
|
||||
IRAM_ATTR uint32_t efuse_hal_get_minor_chip_version(void)
|
||||
{
|
||||
uint32_t minor_raw = efuse_ll_get_chip_wafer_version_minor();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user