kopia lustrzana https://github.com/espressif/esp-idf
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
rodzic
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)
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue