Is there an inter-thread queue implementation in ChibiOS which can hold objects of fixed size? Mailboxes only hold pointers to data. I want to store the actual data on the queue.
I could of course implement one, but I'd prefer to use some built-in functionality if possible.
Thanks.
Queue Implementation
-
chrismerck
- Posts: 21
- Joined: Fri Mar 14, 2014 12:35 am
- Been thanked: 4 times
- Giovanni
- Site Admin
- Posts: 14891
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: Queue Implementation
Hi,
What you need is a pool of objects plus a mailbox. If you need an example checkout revision 4147, under /os/various you will find mail.c and mail.h. I haven't tested those much some some people reported it working.
I will look into adding this, or something similar, to 3.0 as a library module.
Giovanni
What you need is a pool of objects plus a mailbox. If you need an example checkout revision 4147, under /os/various you will find mail.c and mail.h. I haven't tested those much some some people reported it working.
I will look into adding this, or something similar, to 3.0 as a library module.
Giovanni