Page 1 of 1

One-byte message queues

PostPosted: Mon Aug 26, 2002 12:01 am
by jtemples
It would be nice to be able to build message queues that use one-byte "raw data" rather than two-byte pointers to data. I've been using queues to pass raw data, but the two-byte pointers waste RAM when my data is just one byte.

Re: One-byte message queues

PostPosted: Mon Aug 26, 2002 1:41 am
by aek
Hello.

You should be able to change that fairly easily in a source-code build. I thinkall you would need to change are OStypeMsg and OStypeMsgP in salvo.h. I'll have to think about that and get back to you ... such "simple message queues could certainly be useful". Perhaps we can fold that into the next major release (v3.1).

Also note that if you have a compiler that supports a byte-sized pointer (e.g. PICC for PIC16, and perhaps also PICC-18, MPLAB-C18 and IAR PIC18), you could change the message type to be that, and then pass byte-sized objects as messages if you properly cast them.

Thanks for the suggestion.

------------------