efuse(esp32c3): Adds getting chip_revision and chip_pkg

This commit is contained in:
KonstantinKondrashov
2021-01-19 19:55:14 +08:00
parent 68916df92c
commit 3ed226c362
8 changed files with 75 additions and 17 deletions

View File

@@ -17,6 +17,7 @@
#include "esp_system.h"
#include "esp_private/system_internal.h"
#include "esp_attr.h"
#include "esp_efuse.h"
#include "esp_log.h"
#include "esp32c3/rom/cache.h"
#include "esp32c3/cache_err_int.h"
@@ -142,6 +143,7 @@ void esp_chip_info(esp_chip_info_t *out_info)
{
memset(out_info, 0, sizeof(*out_info));
out_info->model = CHIP_ESP32C3;
out_info->revision = esp_efuse_get_chip_ver();
out_info->cores = 1;
out_info->features = CHIP_FEATURE_WIFI_BGN | CHIP_FEATURE_BLE;
}