I've tried to use these functionality... and it seems it works!! :D
Components:
components HplMsp430GeneralIOC as GeneralIOC;
components new Msp430GpioC() as DigitalA;
components new Msp430GpioC() as DigitalB;
components new Msp... (etc).
Wiring:
DigitalA -> GeneralIOC.Port23; // This is pin#3 from the 6-pin
connector
DigitalB -> GeneralIOC.Port26; // This is pin#4 from the 6-pin
connector
ModuleC.DigA -> DigitalA;
ModuleC.DigB -> DigitalB;
And then, in your application module (named ModuleC) you must define
these interfaces:
uses interface GeneralIO as DigA;
uses interface GeneralIO as DigB;
For example, if you want to set pin#3 to output, you write
call DigA.makeOutput();
If you want to set pin#4 to "1" (like output), you can write:
call DigB.makeOutput();
...
call DigB.set();
http://www.tinyos.net/tinyos-2.1.0/doc/nesdoc/telosb/ihtml/tos.interfaces.GeneralIO.html
I hope to help you... if you need further help... ask to the mailing list :)
Regards,
Jose A.
------------------------------------------------------------------------
El 15/12/2010 0:11, Joey Wilson escribió:
Hello all,
I am trying to figure out an easy way to turn on/off a digital output
from the TelosB hardware from TinyOS software. I have been searching
the web and found that some people say to use the MSP430GeneralIOC
component in the application wiring, but this is not working. I have
tried a lot of variants and can't seem to figure it out. Could anyone
explain how to wire the MSP430's general IO components correctly?
Thanks for your time.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
--
Jose A.
Seville, Spain
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help