Hello.
I put assembler code into NesC code as follows:
For instance:
command result_t StdControl.init() {
call Leds.init();
//
// starting WDT
__asm ("in r16, 0x21");
__asm ("ori r16, 0x0f");
__asm ("out 0x21, r16");
And when I write the command make micaz to build the program in my
cygwin console, it run !.No errors are reported, as well as I can install
the program within the micaz and run !!
In this case , the example above is to start the watchog timer.
Has someone tried this way of puttig assembler code into the program ?
Welcomed any sugestions
Thank a lot
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help