Search found 3 matches

by simon48
Mon Sep 04, 2023 1:39 pm
Forum: ESP-IDF
Topic: xRingbufferSendAcquire with byte buffer
Replies: 4
Views: 1946

Re: xRingbufferSendAcquire with byte buffer

MicroController wrote:
Thu Aug 31, 2023 11:51 am
simon48 wrote:
Tue Aug 29, 2023 3:10 pm
Is there a workaround for this issue?
If your buffers always are of a specific size (e.g. "3*128" bytes?) you can of course create a no-split ringbuffer of n items of this specific size...
Thanks for the reply! That could work as well.
by simon48
Wed Aug 30, 2023 1:34 pm
Forum: ESP-IDF
Topic: xRingbufferSendAcquire with byte buffer
Replies: 4
Views: 1946

Re: xRingbufferSendAcquire with byte buffer

Thanks Sprite for the reply! That makes perfect sense.

I guess I will use two queues to pass memory pointers between tasks.
by simon48
Tue Aug 29, 2023 3:10 pm
Forum: ESP-IDF
Topic: xRingbufferSendAcquire with byte buffer
Replies: 4
Views: 1946

xRingbufferSendAcquire with byte buffer

Hi, I am experimenting with ring buffers for transmitting SPI data between tasks. I first create a contiguous, DMA-capable and 32-bit aligned memory region; then use that memory region to create a ring buffer. StaticRingbuffer_t *buffer_struct = (StaticRingbuffer_t *)heap_caps_malloc(sizeof(StaticRi...