00001 00002 00003 00004 #ifndef _IOCONFIG_H 00005 #define _IOCONFIG_H 00006 00007 #include <avr/io.h> 00008 00009 #define PS2PORT PORTD 00010 #define PS2PIN PIND 00011 #define PS2DDR DDRD 00012 #define PS2CLK 2 00013 #define PS2DAT 4 00014 00015 #define PS2_RXBUF_LEN 16 00016 00017 00018 #define SENSEPORT PORTD 00019 #define SENSEDDR DDRD 00020 #define SENSEPIN PIND 00021 #define POTSENSE 3 00022 00023 #define POTPORT PORTB 00024 #define POTDDR DDRB 00025 #define POTPIN PINB 00026 #define POTY 1 00027 #define POTX 2 00028 00029 #define JOYPORT PORTC 00030 #define JOYDDR DDRC 00031 #define JOYPIN PINC 00032 #define JOYUP 0 00033 #define JOYDOWN 2 00034 #define JOYLEFT 3 00035 #define JOYRIGHT 4 00036 #define JOYFIRE 1 00037 00038 void io_init(); 00039 00040 #endif