avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Call Me Back????


From: Jahagirdar Gopal-AGJ005
Subject: [avr-gcc-list] Call Me Back????
Date: Thu, 25 Aug 2005 15:52:02 +0530

Hey can any body explain me what exactly do we mean by Callbacks.

And how do they work,

I came across few lines in different files which look like:

 

FILE1.h

      #define CALLBACK(list, name) \

      void name(void);                   \

      __callback_func(list, name); \

      void name(void)

 

FILE2.H

      #define MAIN_LOOP_CALLBACK(name)   CALLBACK(main_loop, name)

 

FILE2.C

      MAIN_LOOP_CALLBACK(sensor_poll)

 

FILE3.H

      #define __callback_func(list, name)                  \

      asm (                                          \

      "     .section __callback_" #list "_body"      "\n"  \

            __CALL_INS " " #name                     "\n"  \

      "     .previous"                         "\n"  \

      )

 

 

What exactly is happening?

 

Thanks in advance

Regards,

-Gopal Jahagirdar

 

 

 

 

Regards,

-Gopal Jahagirdar

 

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]