Thanks for the reply! That could work as well.MicroController wrote: ↑Thu Aug 31, 2023 11:51 amIf 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...
Search found 3 matches
- Mon Sep 04, 2023 1:39 pm
- Forum: ESP-IDF
- Topic: xRingbufferSendAcquire with byte buffer
- Replies: 4
- Views: 1946
Re: xRingbufferSendAcquire with byte buffer
- 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.
I guess I will use two queues to pass memory pointers between tasks.
- 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...