They are generated by a macro mechanism that run two or
three levels deep, so there is basically no hope of finding
the actual definition without searching on each _*_ sub-string.
Good luck with that...
In any case there is one more missing component you haven't
stumbled over yet (this is not the real definition, I just pulled
it out of a hat as an example....):
// assign the name "CC_CHP_OUT" to port C, pin 0
TOSH_ASSIGN_PIN( CC_CHP_OUT, C, 0 ); // PC0
Then your initial puzzles:
// set CC_CHP_OUT pin to Input mode (can also use _OUTPUT)
TOSH_MAKE_CC_CHP_OUT_INPUT()
// (after using TOSH_MAKE_CC_PCLK_OUTPUT) set pin to high
TOSH_SET_CC_PCLK_PIN()
// or, e.g., clear to low
TOSH_CLR_CC_PCLK_PIN()
The TOSers did a pretty good job of keeping the pin names the
same as those on the schematic, which are of course slightly
different from those in the ATMEGA manual. But once you get
over the hump it's not too hard to intuit.
MS
Ian Welch wrote:
I was wondering where I could find the TOSH function commands. I'm going
through the CC1000 modules in hopes to write my own drivers. Was
wondering what command like " TOSH_MAKE_CC_CHP_OUT_INPUT() " and "
TOSH_SET_CC_PCLK_PIN() " do. I have an idea on what these functions do
but would I like to know the details. I'm guessing there is a file
locate somewhere that gives all these function. Where I might I find
this file.
Thanks,
Ian
------------------------------------------------------------------------
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help