Pumpkin, Inc.

Pumpkin User Forums

One-byte message queues

Have an idea on how to make Salvo better? Post it here!

One-byte message queues

Postby jtemples » Mon Aug 26, 2002 12:01 am

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.
Posts: 45
Joined: Tue Jul 16, 2002 11:00 pm

Re: One-byte message queues

Postby aek » Mon Aug 26, 2002 1:41 am


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.


Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 2 guests