Hi All.
I noticed a very peculiar behavior of my tool chain: an interrupt handler
mysteriously disappears between my .nc file and the app.c file!
Specifically it is in the "SysTimeC.nc":

     TOSH_INTERRUPT(SIG_OVERFLOW1) { __attribute((spontaneous)){
          high16=++;
     }

If I leave it as is above and compile my app the corresponding __vector_14
never shows up in app.c (the prototype is there, but theres no function
definition). Since SysTime.init() enables this interrupt it sends my app
to kingdom come when the interrupt triggers. To solve my problem I did
the following:

     task void dummy() {
     }

     TOSH_INTERRUPT(SIG_OVERFLOW1) { __attribute((spontaneous)){
          high16=++;
          post dummy();
     }

Now the __vector_14 handler shows up and my program executes as expected.
Is this a known problem? I have no clue if it is GCC, NCC or even
something else that removes the handler. My versions are:
nesc-1.0-pre3
avr-gcc-3.3-20020905 (experimental)

Of course experimental hint's that this is my problem, but did you notice
anything similar?

--
Regards Martin Leopold.
Dept. of Computer Science, University of Copenhagen

_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

Reply via email to