Oh, those defines are setting the control register not the data I/O register? I guess if I "drilled down" into the layers of #define confabulation I might have been able to guess that...
whew thx MS Eric Decker wrote: > It is a TI MSP430 thing. > > An I/O pin can be used stictly as an I/O pin (directly controlled) or it > can be connected to > a functional module (uart, spi, etc) and controlled that way. > > It is documented in the MSP430 Users Guide. > > eric > > > On Wed, Oct 14, 2009 at 12:11 PM, Michael Schippling <[email protected] > <mailto:[email protected]>> wrote: > > You found documentation? Wow! > > Looking in tos/platform/msp430/msp430hardware.h > I find the circuitous definitions: > > void TOSH_SEL_##name##_MODFUNC() > { MSP430REG_NORACE2(r,P##port##SEL); r |= hex; } > void TOSH_SEL_##name##_IOFUNC() > { MSP430REG_NORACE2(r,P##port##SEL); r &= ~hex; } > > Which seems to indicate that MOD sets the port.bit and IO clears it. > > I haven't a clue as to why they are called that though... > > MS > > > David Conde wrote: > > Hi, > > > > > > > > I would like to know what it is the difference between the next > command > > defined in */MSP430GeneralIO:/* > > > > */ /* > > > > -async command void selectModuleFunc(); > > > > - async command void selectIOFunc(): > > > > > > > > I understand well, I can use MSP430GeneralIOC in order to > configure each > > GIOX, pin, I have been Reading this interface’s documentation > but I did > > not find what is the difference between both methods, I mean, when I > > have to use one and when I have to use the other one. > > > > > > > > > > > > Thanks in advance > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Tinyos-help mailing list > > [email protected] > <mailto:[email protected]> > > > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > _______________________________________________ > Tinyos-help mailing list > [email protected] > <mailto:[email protected]> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > > -- > Eric B. Decker > Senior (over 50 :-) Researcher > > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
