[En-Nut-Discussion] Replacing compiler.h
Nathan Moore
nategoose at gmail.com
Thu Oct 4 19:11:01 CEST 2012
> What's your proposal to split this into different headers? Where to put
> _NOP?
Ignoring (for now) all of your other points, then something along the lines of:
#if defined(__arm__)
#include <arch/arm/intrinsics.h>
#elif defined(__AVR__)
#include <arch/avr/intrinsics.h>
#elif defined(__AVR32__)
#include <arch/avr32/intrinsics.h>
...
#endif // arch intrinsics
Just a thought.
More information about the En-Nut-Discussion
mailing list