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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/09/10 06:38
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#176543 - I don't know ... but
Responding to: ???'s previous message
... but this is an embedded world. Almost every solution is so specific to the implementation at hand, especially those that have a hardware and/or SFR dependency. Based on that I feel that you are really making a mountain out of something that is rather simple.

Rather than try to save your self from fears of the support that you might have to give maybe your energy would way more well placed in writing a straightforward integration guide for the code you intend to supply and then be done with it. You could go a step further and make up simple configurations that fit to various 8051 families and tell folks if they need hand holding support beyond these examples that you'll offer that for a fee.

Personally if I were you I'd stop with the idea of having include files include other include files. This can really get to be a mess. You are actually best off if you design header files in a way that there is not little or no dependency between them (i.e. you could list the includes in any order at the top of the .C source files). Then put various things that would have tied .H files together into the specific source files where they specifically apply.

All that said I often find it useful to make one project specific header file that gets included into each and ever source file as the first header file in the list. Sometimes this may contain special information that is used inside other .H files such as a FIFO size or a buffer size.

Michael Karas


List of 34 messages in thread
TopicAuthorDate
Conditional SFR Declaration?            01/01/70 00:00      
   ReDef            01/01/70 00:00      
   Preprocessor -vs- Compiler            01/01/70 00:00      
      Thanks...            01/01/70 00:00      
   A Loosely Related Query?            01/01/70 00:00      
      .h file            01/01/70 00:00      
         Yep, that works!            01/01/70 00:00      
            I would not            01/01/70 00:00      
               Good question...            01/01/70 00:00      
            A Rethink...            01/01/70 00:00      
               I don't know ... but            01/01/70 00:00      
                  Agree with Michael            01/01/70 00:00      
                  An overthink.            01/01/70 00:00      
               #including #includes            01/01/70 00:00      
                  totally?            01/01/70 00:00      
                     re: really?            01/01/70 00:00      
   Still no luck...            01/01/70 00:00      
      Like I said before....            01/01/70 00:00      
      HAL            01/01/70 00:00      
      just curious            01/01/70 00:00      
         Nicely workable solution found...            01/01/70 00:00      
            Post vandalised!            01/01/70 00:00      
               What do you mean ...            01/01/70 00:00      
                  I mean this...            01/01/70 00:00      
                     Vandalism Highly Doubted            01/01/70 00:00      
                        Thanks Michael.            01/01/70 00:00      
      Define a new sfr?            01/01/70 00:00      
         RE: This assumes that location 0x8E is always the register            01/01/70 00:00      
         Simplest Solution?            01/01/70 00:00      
            I think HAL is less risky?            01/01/70 00:00      
               HAL very interesting...            01/01/70 00:00      
                  RE: might not be so immediately well understood            01/01/70 00:00      
                     Ah, now I see...            01/01/70 00:00      
                        No, you don't need a HAL header file for each variant!            01/01/70 00:00      

Back to Subject List