[Tinyos-devel] GeneralIO interface

Martin Leopold leopold at diku.dk
Mon Sep 11 13:48:33 PDT 2006


Hi All.
I've started implementing an 8051 platform for TOS 2.0 (in a separate
repository) and first up in my list of things to do is the pins
definitions, which leads me to a few questions:

 * The way I understood TEP 117 each platform must export a HIL level
interface to the pins conforming to the GeneralIO interface and should
do so in the config GeneralIOC. Maybe I'm blind, but the only place that
I can find such a config was in chips directory for the pxa27x chip
(iMote?). 

As far as I can tell neither atm128 nor msp430 have a similar
definition, but only export HPL level interfaces (even though atm128
reuses the same interface the file i still named Hpl...).

Am I missing something here?

 * The atm128 and msp430 implementations both seem to create a "port"
abstraction somewhere in the gut (grouping 8 pins into a port) only to
use this to export a long list of named pins. To me it seems that the
ports abstraction is mostly unused, and is not exported to upper
components, which seems a shame - since it sounds rather intuitive. Is
there some practical reason for not doing that?

 * In TEP 117 I can't seem to read how to export the entire set of pins
- the way I read it it only says that I must use the GeneralIO
interface. In ./tos/chips/pxa27x/gpio/GeneralIOC.nc this seems to be
done by parameterised interface, it that the way to go about it, rather
than say exporting a list of port-names (like atm128 does for HPL)?

-- 
Regards Martin Leopold.
Dept. of Computer Science, University of Copenhagen
http://www.diku.dk/~leopold





More information about the Tinyos-devel mailing list