??? 06/09/10 20:40 Read: times |
#176563 - re: really? Responding to: ???'s previous message |
Erik Malund said:
try to avoid the #included #includes and such.
I always have the SFRs in a separate file that is #included in "main.h" (not a name I'd use) also "structs.h" is #included in the #include, again for readability. you can drive a 'rule' so far that it becomes self destructive. I'd hate to have to scroll through the SFR and bit defs to find something in "main.h" The SFRs are one thing. It's just that they have these macros that are dependent on other #defines and macros which are spread out in a half-dozen files. Nothing commented, nothing makes any sense, and the app notes are full of typos and unfinished ("see Table XX for details"). It's the opposite of readable. TI should be embarrassed. Unfortunately, it's the only single-chip solution out there for a USB audio device. -a |