esp_ringbuf: add kconfig opt to move ringbuffer functions into flash
This commit is contained in:
committed by
Ivan Grokhotkov
parent
e400a1f5b0
commit
8bde6b8fca
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user