If I have uint8_t *gb_array and uint16_t gb_array_size
as globals declarations, and a command like this:

command void c1(){
 uint8_t array[16];
 
 ...

 gb_array = array;
 gb_array_size = 16;
 gb_array_size--;
 call ByteComm.txByte(*gb_array);
}

async event result_t ByteComm.txByteReady(bool
success){
 if (gb_array_size > 0){
  gb_array++;
  gb_array_size--;
  ByteComm.txByte(*gb_array);
 }
 else
  ...
}

my question is: if c1 ends after call txByte, the
variable array in c1, will be deallocated from the
stack before de transmission ends?

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to