??? 05/19/04 15:26 Read: times |
#70693 - how to use to header files in one file |
Hi,
I have a doubt regarding the usage of different header files in one file. ie., for example, i am checking w.r.t a bit to define some constant values, depending on that bit corresponding header file is to be included. I wrote like this: #ifdef slow_chrg #define chnl1_vol 0x400 #define chnl2_vol 0x400 #define chnl3_vol 0x400 #elif #define chnl1_vol 0x800 #define chnl2_vol 0x800 #define chnl3_vol 0x800 #endif on poweron slow_chrg bit is 1 and while in program working it will become 0 so that the other values is to be assigned. But the second condition is not assigning. Suggestions please. |