summaryrefslogtreecommitdiff
path: root/converter/ps2_usb/config.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-11-25 11:25:44 +0900
committertmk <nobody@nowhere>2013-11-25 11:25:44 +0900
commit04c950157407c32ef04a68a1b8180630cfb9d84c (patch)
tree95a20a056188d07c90d5a8021de7ba0dfa55af8d /converter/ps2_usb/config.h
parent4e36159be226e544dfebbe06b1955261951209a4 (diff)
Fix Makfile and config.h for LUFA in ps2_usb
Diffstat (limited to 'converter/ps2_usb/config.h')
-rw-r--r--converter/ps2_usb/config.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/converter/ps2_usb/config.h b/converter/ps2_usb/config.h
index 51cd271d78..1ad2bd1b49 100644
--- a/converter/ps2_usb/config.h
+++ b/converter/ps2_usb/config.h
@@ -22,6 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define VENDOR_ID 0xFEED
#define PRODUCT_ID 0x6512
+#define DEVICE_VER 0x0001
#define MANUFACTURER t.m.k.
#define PRODUCT PS/2 keyboard converter
#define DESCRIPTION convert PS/2 keyboard to USB
@@ -39,10 +40,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
)
-/* legacy keymap support */
-#define USE_LEGACY_KEYMAP
-
-
#ifdef PS2_USE_USART
#if defined(__AVR_ATmega16U4__) || defined(__AVR_ATmega32U4__)
/* XCK for clock line and RXD for data line */
@@ -136,7 +133,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define PS2_CLOCK_PORT PORTD
#define PS2_CLOCK_PIN PIND
#define PS2_CLOCK_DDR DDRD
-#define PS2_CLOCK_BIT 1
+#define PS2_CLOCK_BIT 5
#define PS2_DATA_PORT PORTD
#define PS2_DATA_PIN PIND
#define PS2_DATA_DDR DDRD
@@ -157,14 +154,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifdef PS2_USE_BUSYWAIT
-#define PS2_CLOCK_PORT PORTF
-#define PS2_CLOCK_PIN PINF
-#define PS2_CLOCK_DDR DDRF
-#define PS2_CLOCK_BIT 0
-#define PS2_DATA_PORT PORTF
-#define PS2_DATA_PIN PINF
-#define PS2_DATA_DDR DDRF
-#define PS2_DATA_BIT 1
+#define PS2_CLOCK_PORT PORTD
+#define PS2_CLOCK_PIN PIND
+#define PS2_CLOCK_DDR DDRD
+#define PS2_CLOCK_BIT 5
+#define PS2_DATA_PORT PORTD
+#define PS2_DATA_PIN PIND
+#define PS2_DATA_DDR DDRD
+#define PS2_DATA_BIT 2
#endif
#endif