From 362d7b8f715c21be4ce4695f34ee824c1cb21a06 Mon Sep 17 00:00:00 2001 From: Renz Christian Bagaporo Date: Sun, 16 Feb 2020 17:46:30 +0500 Subject: [PATCH] efuse: spelling fix --- components/efuse/src/esp_efuse_api.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/components/efuse/src/esp_efuse_api.c b/components/efuse/src/esp_efuse_api.c index ce17a58cc..a72a77dff 100644 --- a/components/efuse/src/esp_efuse_api.c +++ b/components/efuse/src/esp_efuse_api.c @@ -24,15 +24,15 @@ const static char *TAG = "efuse"; #if defined(BOOTLOADER_BUILD) #define EFUSE_LOCK_ACQUIRE() #define EFUSE_LOCK_RELEASE() -#define EFUSE_LOCK_ACQUIRE_RUCURSIVE() -#define EFUSE_LOCK_RELEASE_RUCURSIVE() +#define EFUSE_LOCK_ACQUIRE_RECURSIVE() +#define EFUSE_LOCK_RELEASE_RECURSIVE() #else #include static _lock_t s_efuse_lock; #define EFUSE_LOCK_ACQUIRE() _lock_acquire(&s_efuse_lock) #define EFUSE_LOCK_RELEASE() _lock_release(&s_efuse_lock) -#define EFUSE_LOCK_ACQUIRE_RUCURSIVE() _lock_acquire_recursive(&s_efuse_lock) -#define EFUSE_LOCK_RELEASE_RUCURSIVE() _lock_release_recursive(&s_efuse_lock) +#define EFUSE_LOCK_ACQUIRE_RECURSIVE() _lock_acquire_recursive(&s_efuse_lock) +#define EFUSE_LOCK_RELEASE_RECURSIVE() _lock_release_recursive(&s_efuse_lock) #endif static bool s_batch_writing_mode = false; @@ -80,7 +80,7 @@ esp_err_t esp_efuse_read_field_cnt(const esp_efuse_desc_t* field[], size_t* out_ // write array to EFUSE esp_err_t esp_efuse_write_field_blob(const esp_efuse_desc_t* field[], const void* src, size_t src_size_bits) { - EFUSE_LOCK_ACQUIRE_RUCURSIVE(); + EFUSE_LOCK_ACQUIRE_RECURSIVE(); esp_err_t err = ESP_OK; if (field == NULL || src == NULL || src_size_bits == 0) { err = ESP_ERR_INVALID_ARG; @@ -100,14 +100,14 @@ esp_err_t esp_efuse_write_field_blob(const esp_efuse_desc_t* field[], const void esp_efuse_utility_reset(); } } - EFUSE_LOCK_RELEASE_RUCURSIVE(); + EFUSE_LOCK_RELEASE_RECURSIVE(); return err; } // program cnt bits to "1" esp_err_t esp_efuse_write_field_cnt(const esp_efuse_desc_t* field[], size_t cnt) { - EFUSE_LOCK_ACQUIRE_RUCURSIVE(); + EFUSE_LOCK_ACQUIRE_RECURSIVE(); esp_err_t err = ESP_OK; if (field == NULL || cnt == 0) { err = ESP_ERR_INVALID_ARG; @@ -135,7 +135,7 @@ esp_err_t esp_efuse_write_field_cnt(const esp_efuse_desc_t* field[], size_t cnt) esp_efuse_utility_reset(); } } - EFUSE_LOCK_RELEASE_RUCURSIVE(); + EFUSE_LOCK_RELEASE_RECURSIVE(); return err; } @@ -184,7 +184,7 @@ uint32_t esp_efuse_read_reg(esp_efuse_block_t blk, unsigned int num_reg) // writing efuse register. esp_err_t esp_efuse_write_reg(esp_efuse_block_t blk, unsigned int num_reg, uint32_t val) { - EFUSE_LOCK_ACQUIRE_RUCURSIVE(); + EFUSE_LOCK_ACQUIRE_RECURSIVE(); if (s_batch_writing_mode == false) { esp_efuse_utility_reset(); } @@ -198,7 +198,7 @@ esp_err_t esp_efuse_write_reg(esp_efuse_block_t blk, unsigned int num_reg, uint3 } esp_efuse_utility_reset(); } - EFUSE_LOCK_RELEASE_RUCURSIVE(); + EFUSE_LOCK_RELEASE_RECURSIVE(); return err; }