mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
freertos: place xQueueGenericCreateStatic
into flash
`xQueueGenericCreateStatic` is placed into flash by the linker script to reduce IRAM usage. This will also cause the `xRingbufferCreate` not not callable when cache is disabled.
This commit is contained in:
parent
fdf983e0c4
commit
1ca25688a8
@ -673,9 +673,9 @@ static IRAM_ATTR __attribute__((noinline)) bool iram_ringbuf_test(void)
|
||||
{
|
||||
bool result = true;
|
||||
|
||||
spi_flash_guard_get()->start(); // Disables flash cache
|
||||
RingbufHandle_t handle = xRingbufferCreate(CONT_DATA_TEST_BUFF_LEN, RINGBUF_TYPE_NOSPLIT);
|
||||
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
|
||||
|
@ -2,4 +2,5 @@
|
||||
archive: libfreertos.a
|
||||
entries:
|
||||
* (noflash_text)
|
||||
queue:xQueueGenericCreateStatic (default)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user