change(build): Add a new CMake flag NON_OS_BUILD for non-FreeRTOS builds
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
const static char *TAG = "efuse";
|
||||
|
||||
#if defined(BOOTLOADER_BUILD)
|
||||
#ifdef NON_OS_BUILD
|
||||
#define EFUSE_LOCK_ACQUIRE_RECURSIVE()
|
||||
#define EFUSE_LOCK_RELEASE_RECURSIVE()
|
||||
#else
|
||||
@@ -39,11 +39,11 @@ esp_err_t esp_efuse_read_field_blob(const esp_efuse_desc_t* field[], void* dst,
|
||||
do {
|
||||
memset((uint8_t *)dst, 0, esp_efuse_utility_get_number_of_items(dst_size_bits, 8));
|
||||
err = esp_efuse_utility_process(field, dst, dst_size_bits, esp_efuse_utility_fill_buff);
|
||||
#ifndef BOOTLOADER_BUILD
|
||||
#ifndef NON_OS_BUILD
|
||||
if (err == ESP_ERR_DAMAGED_READING) {
|
||||
vTaskDelay(1);
|
||||
}
|
||||
#endif // BOOTLOADER_BUILD
|
||||
#endif // NON_OS_BUILD
|
||||
} while (err == ESP_ERR_DAMAGED_READING);
|
||||
}
|
||||
return err;
|
||||
@@ -67,11 +67,11 @@ esp_err_t esp_efuse_read_field_cnt(const esp_efuse_desc_t* field[], size_t* out_
|
||||
do {
|
||||
*out_cnt = 0;
|
||||
err = esp_efuse_utility_process(field, out_cnt, 0, esp_efuse_utility_count_once);
|
||||
#ifndef BOOTLOADER_BUILD
|
||||
#ifndef NON_OS_BUILD
|
||||
if (err == ESP_ERR_DAMAGED_READING) {
|
||||
vTaskDelay(1);
|
||||
}
|
||||
#endif // BOOTLOADER_BUILD
|
||||
#endif // NON_OS_BUILD
|
||||
} while (err == ESP_ERR_DAMAGED_READING);
|
||||
}
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user