From 6014d1014e96a7b484699d4dd8c04292c0233b0e Mon Sep 17 00:00:00 2001 From: Jun Wako Date: Mon, 18 May 2015 13:58:56 +0900 Subject: ps2_usb: Fix pin configuration --- converter/ps2_usb/Makefile | 4 ++-- converter/ps2_usb/README.md | 2 +- converter/ps2_usb/config.h | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'converter/ps2_usb') diff --git a/converter/ps2_usb/Makefile b/converter/ps2_usb/Makefile index edcbddfdfa..51b2225661 100644 --- a/converter/ps2_usb/Makefile +++ b/converter/ps2_usb/Makefile @@ -87,8 +87,8 @@ NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA # PS/2 Options # -PS2_USE_USART = yes # uses hardware USART engine for PS/2 signal receive(recomened) -#PS2_USE_INT = yes # uses external interrupt for falling edge of PS/2 clock pin +#PS2_USE_USART = yes # uses hardware USART engine for PS/2 signal receive(recomened) +PS2_USE_INT = yes # uses external interrupt for falling edge of PS/2 clock pin #PS2_USE_BUSYWAIT = yes # uses primitive reference code diff --git a/converter/ps2_usb/README.md b/converter/ps2_usb/README.md index 8a535949d8..74464e2640 100644 --- a/converter/ps2_usb/README.md +++ b/converter/ps2_usb/README.md @@ -14,7 +14,7 @@ In case of Teensy2.0(ATMega32U4): - **USART**: **Clock** is on `PD5` and **Data** on `PD2`. 3. Optionally you need pull-up resistor. 1K-10K Ohm is OK. -To change pin configuration edit config.h. +To change pin configuration edit **config.h** and **Makefile**. Build Firmware diff --git a/converter/ps2_usb/config.h b/converter/ps2_usb/config.h index c9bab1b072..c0a4fab13b 100644 --- a/converter/ps2_usb/config.h +++ b/converter/ps2_usb/config.h @@ -50,11 +50,11 @@ along with this program. If not, see . #define PS2_CLOCK_PORT PORTD #define PS2_CLOCK_PIN PIND #define PS2_CLOCK_DDR DDRD -#define PS2_CLOCK_BIT 5 +#define PS2_CLOCK_BIT 1 #define PS2_DATA_PORT PORTD #define PS2_DATA_PIN PIND #define PS2_DATA_DDR DDRD -#define PS2_DATA_BIT 2 +#define PS2_DATA_BIT 0 #endif /* @@ -69,7 +69,7 @@ along with this program. If not, see . #define PS2_DATA_PORT PORTD #define PS2_DATA_PIN PIND #define PS2_DATA_DDR DDRD -#define PS2_DATA_BIT 2 +#define PS2_DATA_BIT 0 #define PS2_INT_INIT() do { \ EICRA |= ((1<