[Tinyos-devel] Sharing interfaces below HIL
Martin Leopold
leopold at diku.dk
Wed Oct 11 14:35:50 PDT 2006
Hi All.
While I'm implementing the lowest layers of my 8051 platform I've been
browsing the code of the other platforms. What I have come to realize is
that some of the chips/platforms create their own versions of quite
similar interfaces (at HPL/HAL levels) - couldn't it be advantageous to
share some interfaces below the HIL level?
Again this might be one more of those looong discussions that I don't
know about, but it strikes me as a bit odd that two very similar things
end up being done differently.
Let me take a few examples:
* I'm now creating a "Led" interface that has simple methods like on/off
while most other platform seem to export LEDs by using the GeneralIO
interface.. It seems clear that most platforms could agree on what a Led
does
* The atm128 and msp430 chips have identical interrupt interfaces named
"HplAtm128Interrupt" and "HplMsp430Interrupt"
* The HplMsp430GeneralIO augments GeneralIO with methods that look very
much like the interface for IO's that the cc2430 uses
So to me it seems there is at least some potential to share a few
interfaces even though this would not strictly be a requirement.
--
Regards Martin Leopold.
Dept. of Computer Science, University of Copenhagen
http://www.diku.dk/~leopold
More information about the Tinyos-devel
mailing list