[CCC DEV] ATmega1280 question
Adam Sampson
ats at offog.org
Thu Jun 10 16:59:42 BST 2010
Matt Jadud <jadudm at gmail.com> writes:
> For multiple parts in the family, is it appropriate to add #IF
> directives in the code in critical places (eg. constant definitions
> and the like)? Or, would it be nicer if I broke those kinds of things
> out into separate files, so we could just #IF in a whole file based on
> the part?
I suspect a combination of both will be the way to go. There's already a
per-part preprocessor symbol defined, and a header converted from the C
one, but I could imagine that things like pin.location will need
modifying for larger parts. In the latter case, I'd try to follow what
the Arduino people do in terms of numbering.
> I can also "just do something reasonably sensible" and we can
> update/modify/revise later.
Also usually a good bet. :)
--
Adam Sampson <ats at offog.org> <http://offog.org/>
More information about the developers
mailing list