[Tinyos-help] NesC and assembler code
Leonardo Barboni
lbarboni at fing.edu.uy
Fri Jun 16 06:28:57 PDT 2006
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
More information about the Tinyos-help
mailing list