[Tinyos-8051wg] Faking PlatformSerialC

Martin Leopold leopold at diku.dk
Wed Jul 16 00:42:00 PDT 2008


Hi All.
Supporting the TinyOS serial stack requires PlatformSerialC, but in our
platforms we have chosen UartC. Fortunately faking the UartStream
interface from PlatformSerialC using the SerialByteComm interface from
UartC is pretty straight forward.

I've created the SerialByteCommToUartStreamC component in common/lib
which does just that. See the cip51 PlatformSerialC for the intended
use. It's not entirely clear what goes in PlatformSerialC, but from what
I gather it needs a StdControl interface as well, which I don't think we
can fake in any meaningful way - which means that this has to be
implemented for the existing platforms.

Mikkel: Could you try implementing something similar for the nRF24e1
uart? Essentially all you have to do is provide a StdControl in your
UartC and do something similar to my PlatformSerialC. I've added a
simple UartStreamTester, but I haven't had any luck with Kevin's printf
library.

-- 
Regards Martin Leopold.
Dept. of Computer Science, University of Copenhagen



More information about the Tinyos-8051wg mailing list