|
Hi. I am trying to write an application similar to TOSBase for tmote sky so that it uses the UART0 instead of the default UART1. I read the Boomerang UART0 Sample and from what I gathered from there tried the following approach: 1.-Replace the UART component used by TOSBase with a custom made component implementing, of course, the same interfaces as UART to ensure it will wire up properly. 2.-In the new UART implementation (let's call it UART0) make sure to include the resource arbitration as described in UART0 Sample. One important detail here is that since the component should signal an event called txDone once a byte has being sent. I tried to do this by signaling it from another event (also called txDone) fired by HPLUSART0M (which is used by UART0) through an interface called HPLUSARTFeedback, but the problem with this is that the event won't fire up once the byte has being sent. I finally solved this by signaling the event once I have called the release command as done in the example (since at this point the data transfer is done anyways); but I am not sure if I should be signaling the event without having received the txDone previously. Apparently this works fine but I was wandering if this the way to go or there is a better way to achieve this. Thanks for your advice! Carlos |
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
