Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
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.

List of 20 messages in thread
TopicAuthorDate
how to use to header files in one file            01/01/70 00:00      
   RE: how to use to header files in one file            01/01/70 00:00      
   RE: how to use to header files in one file            01/01/70 00:00      
      RE: how to use to header files in one file            01/01/70 00:00      
         RE: no sense whatsoever            01/01/70 00:00      
            RE: no sense whatsoever            01/01/70 00:00      
   Preprocessor!!            01/01/70 00:00      
   RE: how to use to header files in one fi            01/01/70 00:00      
      RE: how to use to header files in one fi            01/01/70 00:00      
         RE: how to use to header files in one fi            01/01/70 00:00      
            RE: how to use to header files in one fi            01/01/70 00:00      
         RE: how to use to header files in one fi            01/01/70 00:00      
      RE: how to use to header files in one fi            01/01/70 00:00      
         RE: how to use to header files in one fi            01/01/70 00:00      
            no, No, NO, NOOOOOOOOOOOOOO!!            01/01/70 00:00      
               RE: no, No, NO, NOOOOOOOOOOOOOO!!            01/01/70 00:00      
   what header files ???            01/01/70 00:00      
      RE: what header files ???            01/01/70 00:00      
         Raja: Do you understand the preprocessor            01/01/70 00:00      
            What the preprocessor does            01/01/70 00:00      

Back to Subject List