I'm making a sensorboard for telosb hardware. My rearranging of the
UserButton code seems close, but broken. I wanted to try taking out a
level of repeated use of UserButtonP.Get that is wired onto
SwitchToggleC and just use a version
of SwitchToggleC I called UserToggleC just to see if I could do it.
To try and use fewer components and modules.
new test app dir = /opt/tinyos-2.x/apps/tests/TestNewPlatformIO
has files Makefile related-component-notes.txt TestNewPlatformIOP.nc
TestNewPlatformIOC.nc
new sensorboard dir =
/opt/tinyos-2.x/tos/sensorboards/ecosens12ch has empty .sensors file.
and files HplUserToggleC.nc UserToggle.h UserToggleP.nc
When I run
SENSORBOARD=ecosens12ch make telosb
The Makefile starts with TestNewPlatformIOC.nc
but I get this:
In component `UserToggleC':
/opt/tinyos-2.x/tos/sensorboards/ecosens12ch/UserToggleC.nc:12: cannot
find `Get'
/opt/tinyos-2.x/tos/sensorboards/ecosens12ch/UserToggleC.nc:13: cannot
find `Notify'
make: *** [exe0] Error 1
So, have I got a -> pointing in the wrong direction?
I must not be wiring right. I've created a different version of a
user button for telosb without deleting the original one...do I have too
many things claiming the IO pin as in
HplUserToggleC.nc
components new Msp430InterruptC() as InterruptUserToggleP;
InterruptUserToggleP.HplInterrupt -> InterruptC.Port27;
GpioInterrupt = InterruptUserToggleP.Interrupt;
In other words, when you add on a sensorboard can you redefine some
platform things, or should I be making a whole separate platform dir
and deleting thngs that get changed?
Thanks,
John Griessen
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help