mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 12:10:59 +00:00
efuse/esp32: Expands PKG_VER from 3 bit to 4 bits
Closes: IDF-1919
This commit is contained in:

committed by
bot

parent
6d14bdf068
commit
2373f115fc
@@ -159,7 +159,7 @@ void esp_chip_info(esp_chip_info_t* out_info)
|
||||
if ((efuse_rd3 & EFUSE_RD_CHIP_VER_DIS_BT_M) == 0) {
|
||||
out_info->features |= CHIP_FEATURE_BT | CHIP_FEATURE_BLE;
|
||||
}
|
||||
int package = (efuse_rd3 & EFUSE_RD_CHIP_VER_PKG_M) >> EFUSE_RD_CHIP_VER_PKG_S;
|
||||
uint32_t package = esp_efuse_get_pkg_ver();
|
||||
if (package == EFUSE_RD_CHIP_VER_PKG_ESP32D2WDQ5 ||
|
||||
package == EFUSE_RD_CHIP_VER_PKG_ESP32PICOD2 ||
|
||||
package == EFUSE_RD_CHIP_VER_PKG_ESP32PICOD4 ||
|
||||
|
Reference in New Issue
Block a user