esp_ringbuf: add kconfig opt to move ringbuffer functions into flash

This commit is contained in:
Alex Lisitsyn
2021-01-20 07:32:31 +08:00
committed by Ivan Grokhotkov
parent e400a1f5b0
commit 8bde6b8fca
4 changed files with 31 additions and 4 deletions
+1 -1
View File
@@ -678,8 +678,8 @@ static IRAM_ATTR __attribute__((noinline)) bool iram_ringbuf_test(void)
result = result && (handle != NULL);
spi_flash_guard_get()->start(); // Disables flash cache
xRingbufferGetMaxItemSize(handle);
vRingbufferDelete(handle);
spi_flash_guard_get()->end(); // Re-enables flash cache
vRingbufferDelete(handle);
return result;
}