/*********************************** * (C) 2007-2008 by Tomasz bla Fortuna . * License: GPL3+ (See Docs/LICENSE) * * Motor control ********************/ /* Control bits */ #define M1CTL_PORT PORTC #define M1CTL_DDR DDRC #define M2CTL_PORT PORTC #define M2CTL_DDR DDRC #define M1CTL1 PC6 #define M1CTL2 PC7 /* Remember to turn off the JTAG to use this pins */ #define M2CTL1 PC2 #define M2CTL2 PC5 #define MONE(PORT, ON, OFF) \ PORT = ((PORT | (1<