|
From: | Jahagirdar Gopal-AGJ005 |
Subject: | [avr-gcc-list] CALLBACK????????? |
Date: | Thu, 25 Aug 2005 17:33:02 +0530 |
Hey can any body explain 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
|
[Prev in Thread] | Current Thread | [Next in Thread] |