Yes, you have to use globals to pass arguments to tasks, so do something
like this and set the values in your async function before posting the task:
uint16_t *buf;
uint16_t buflen;
task void SendReadingsTask1() { ... }
You can't guarantee order of task execution, but
I'm making a read-A2D-then-broadcast-send-data app.
The first thing to do in a sequence is async:
Msp430Adc12MultiChannel.dataReady(uint16_t *buf, uint16_t buflen) is the
next I need to do a sync function:
call AMSend.getPayload(pkt)
and use buf and buflen to do some reads and writes,
then