#include #define F_CPU 8000000UL #include #include "io.h" #define HIGH(port) \ (MASK(port, CARD_nPWR) | \ MASK(port, SW_N) | MASK(port, SW_E) | MASK(port, SW_S) | \ MASK(port, SW_W) | MASK(port, SW_SW)) #define OUTPUTS(port) \ (MASK(port, CARD_nPWR) | MASK(port, CARD_CLK) | \ MASK(port, LED_DS) | MASK(port, LED_LCLK) | MASK(port, LED_SCLK)) int main(void) { PORTB = HIGH(B); PORTC = HIGH(C); PORTD = HIGH(D); DDRB = OUTPUTS(B); DDRC = OUTPUTS(C); DDRD = OUTPUTS(D); while (1); }