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;
|
bool result = true;
|
||||||
|
|
||||||
spi_flash_guard_get()->start(); // Disables flash cache
|
|
||||||
RingbufHandle_t handle = xRingbufferCreate(CONT_DATA_TEST_BUFF_LEN, RINGBUF_TYPE_NOSPLIT);
|
RingbufHandle_t handle = xRingbufferCreate(CONT_DATA_TEST_BUFF_LEN, RINGBUF_TYPE_NOSPLIT);
|
||||||
result = result && (handle != NULL);
|
result = result && (handle != NULL);
|
||||||
|
spi_flash_guard_get()->start(); // Disables flash cache
|
||||||
xRingbufferGetMaxItemSize(handle);
|
xRingbufferGetMaxItemSize(handle);
|
||||||
vRingbufferDelete(handle);
|
vRingbufferDelete(handle);
|
||||||
spi_flash_guard_get()->end(); // Re-enables flash cache
|
spi_flash_guard_get()->end(); // Re-enables flash cache
|
||||||
|
|
|
@ -2,4 +2,5 @@
|
||||||
archive: libfreertos.a
|
archive: libfreertos.a
|
||||||
entries:
|
entries:
|
||||||
* (noflash_text)
|
* (noflash_text)
|
||||||
|
queue:xQueueGenericCreateStatic (default)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue