Skip to content

Commit

Permalink
Merge branch 'bugfix/check_iram_optimization' into 'master'
Browse files Browse the repository at this point in the history
fix(mbedtls): IRAM optimization analyzed on mbedtls/test_apps

Closes IDF-7145

See merge request espressif/esp-idf!25304
  • Loading branch information
mahavirj committed Aug 16, 2023
2 parents 4ee4158 + b4f9dd1 commit a93cdfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/mbedtls/port/esp_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#ifndef CONFIG_MBEDTLS_CUSTOM_MEM_ALLOC

IRAM_ATTR void *esp_mbedtls_mem_calloc(size_t n, size_t size)
void *esp_mbedtls_mem_calloc(size_t n, size_t size)
{
#ifdef CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC
return heap_caps_calloc(n, size, MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT);
Expand All @@ -33,7 +33,7 @@ IRAM_ATTR void *esp_mbedtls_mem_calloc(size_t n, size_t size)
#endif
}

IRAM_ATTR void esp_mbedtls_mem_free(void *ptr)
void esp_mbedtls_mem_free(void *ptr)
{
return heap_caps_free(ptr);
}
Expand Down

0 comments on commit a93cdfb

Please sign in to comment.