Hi everyone, I am trying to understand how TinyOS works at the low level, and I hope you guys could help me out with some "dumb questions"
I've been studying app.c and I noticed that for turning the LEDs on in Telosb, the only main difference between LED0 and LED1 is in the HplMsp430GeneralIOP__37__IO__clr/HplMsp430GeneralIOP__36__IO__clr functions. In HplMsp430GeneralIOP__37__IO__clr, it is * (volatile uint8_t * )49U &= ~(0x01 << 5); while in HplMsp430GeneralIOP__36__IO__clr it is * (volatile uint8_t * )49U &= ~(0x01 << 4); Here are my questions 1. Where is the source code that dictates this(the "4" for led0 and "5" for led1)? I can't seem to find it anywhere - even after following the files specified in app.c. 2. Is it possible to to modify the code at the lowest level so that the red LED would light up even though it is led1.turnOn that was called(e.g. is it possible to switch the wiring of the LEDs)? I know that there is a more elegant "higher level" way of doing this, but for the sake of experimentation, I would like to try it by modifying low level stuff. 3. In the lines specified above, what does 49U stand for? Does it stand for the state of the MSP430 pins? 4. Is it possible to "halt" the compilation process midway so that app.c is produced but not yet the binary? Idea is, I would like to edit app,c by hand, and then compile it to become the binary. Thanks in advance!
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
