KELLY CARTER

Reference CodeWarrior 7.0 for ColdFire.  There are tons o...

Discussion created by KELLY CARTER on Mar 18, 2008
Latest reply on Mar 19, 2008 by CrasyCat
Reference CodeWarrior 7.0 for ColdFire.  There are tons of preprocessor macros that are defined by the compiler, eg __COLDFIRE__, __MCF52235__, __MCF5223x__.  Are they documented anywhere?  I would like to use some of them in my code to allow a single source to work over a range of targets.  A simple example of where I would use these is in determining the right code snippet to select the pins to be used for TXD1, RXD1 and RTS1 where the same source is used on an MCF52236 and an MCF5208.  Which preprocessor macros are defined based on the ColdFire Processor settings tab and which ones come from the ColdFire Assembler settings tab?

Outcomes