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.
pull/5222/head
michael 2020-04-10 14:39:32 +08:00 zatwierdzone przez Michael (XIAO Xufeng)
rodzic fdf983e0c4
commit 1ca25688a8
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -2,4 +2,5 @@
archive: libfreertos.a
entries:
* (noflash_text)
queue:xQueueGenericCreateStatic (default)