Richard Klinda

differentiating between HCS08/ColdFire

Discussion created by Richard Klinda on Feb 1, 2008
Latest reply on Feb 4, 2008 by CrasyCat
Hello, I've tried googling this easy-looking question but I came up empty.

I have code that compiles under both HCS08 and ColdFire and I'm wondering, whether there is a builtin compiler directive to differentiate between this two uCs.

Like

#ifdef __HCS08__
....
#endif

or

#ifdef __COLDFIRE__
....
#endif

I don't want to define these (actually that's what I do right now and I hope there is a more civilised solution).

Thanks,
Richard

Outcomes