check the source code for arduinoit's already like this in part...
the wiring.h declares the functions that are part of the standard arduino library then the implementation has a series of ifdef depending on the actual processor used
#if defined(__AVR_ATmega168__)#include "ATmega168.h"#endif
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16