On Thu, Apr 21, 2011 at 11:23 PM, Oliver Seitz <[email protected]> wrote:
> > > As for this specific case: we (well... ask you, Rob ;) > > could add the > > required code to the device file with conditional compile > > dependent on > > a a constant like SET_OSCCAL. So the device file is still > > compliant to > > the design rule unless you tell it otherwise. > > Well, from a practical sight: What harm would be done if OSCCAL would be > set unconditionally? It would require one word of code space that could be > saved otherwise. If OSCCAL would be used in some other way, the user program > would have to overwrite it anyway. > In my humble opinion, and from a practical point of view, we assist here again to a long discussion for a simple problem. 1. the user must know there is an OSCCAL value stored somewhere in the memory and the compiler has nothing to do with, else everything is written in the micro definition file may be useless 2. first time the user is programming the micro, he must save the OSCCAL value by his own wish and store somewhere for further use, none of the programmers are doing this automatically (as far I know) except maybe generating a warning message about the existence of that value 3. within the compiler or without it, the stored value can be put again in it's place and this is so simple that no matters how is done Vasile > > Yes, it does not comply with the style. But I wouldn't mind in this case, > as I can see no use for any program to rely on OSCCAL being set to its > uncalibrated default value. > > Greets, > Kiste > > -- > You received this message because you are subscribed to the Google Groups > "jallib" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/jallib?hl=en. > > -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
