diff --git a/arduino.h b/arduino.h index d80089b..476ba1b 100644 --- a/arduino.h +++ b/arduino.h @@ -32,8 +32,10 @@ #define READ(IO) _READ(IO) #define WRITE(IO, v) _WRITE(IO, v) #define TOGGLE(IO) _TOGGLE(IO) + #define SET_INPUT(IO) _SET_INPUT(IO) #define SET_OUTPUT(IO) _SET_OUTPUT(IO) + #define GET_INPUT(IO) _GET_INPUT(IO) #define GET_OUTPUT(IO) _GET_OUTPUT(IO) @@ -41,21 +43,19 @@ ports and functions added as necessary or if I feel like it- not a comprehensive list! - - probably needs some #ifdefs for various chip types */ #if defined (__AVR_ATmega168__) || defined (__AVR_ATmega328__) || defined (__AVR_ATmega328P__) #include "arduino_168_328p.h" -#endif /* _AVR_ATmega{168,328,328P}__) */ +#endif /* _AVR_ATmega{168,328,328P}__ */ #if defined (__AVR_ATmega644__) || defined (__AVR_ATmega644P__) || defined (__AVR_ATmega644PA__) #include "arduino_644.h" -#endif +#endif /* _AVR_ATmega{644,644P,644PA}__ */ #if defined (__AVR_ATmega1280__) #include "arduino_1280.h" -#endif /* __AVR_ATmega1280__) */ +#endif /* __AVR_ATmega1280__ */ #ifndef DIO0_PIN #error pins for this chip not defined in arduino.h! If you write an appropriate pin definition and have this firmware work on your chip, please tell us via the forum thread diff --git a/config.h.dist b/config.h.dist index 4d63b40..e11ed24 100644 --- a/config.h.dist +++ b/config.h.dist @@ -20,6 +20,12 @@ * * \***************************************************************************/ +/* + Set your microcontroller type in Makefile! atmega168/atmega328p/atmega644p/atmega1280 + + If you want to port this to a new chip, start off with arduino.h and see how you go. +*/ + /* Are you using the official GEN3 motherboard with separate extruder controller? */