From 350897112b46a7f533c021bf3b34286b74534674 Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 3 Oct 2016 11:02:01 +0900 Subject: [PATCH] ps2_usb: Add setting for suart debug --- converter/ps2_usb/Makefile.unimap.rev2 | 1 + converter/ps2_usb/config_rev2.h | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/converter/ps2_usb/Makefile.unimap.rev2 b/converter/ps2_usb/Makefile.unimap.rev2 index 5579f701..a3bc6399 100644 --- a/converter/ps2_usb/Makefile.unimap.rev2 +++ b/converter/ps2_usb/Makefile.unimap.rev2 @@ -1,5 +1,6 @@ TARGET = ps2_usb_rev2_unimap UNIMAP_ENABLE = yes KEYMAP_SECTION_ENABLE = yes +#LUFA_DEBUG_SUART = yes include Makefile.rev2 diff --git a/converter/ps2_usb/config_rev2.h b/converter/ps2_usb/config_rev2.h index 2e91838e..e7224d96 100644 --- a/converter/ps2_usb/config_rev2.h +++ b/converter/ps2_usb/config_rev2.h @@ -82,4 +82,13 @@ along with this program. If not, see . #define PS2_INT_VECT INT1_vect #endif +#ifdef LUFA_DEBUG_SUART +# define SUART_OUT_DDR DDRD +# define SUART_OUT_PORT PORTD +# define SUART_OUT_BIT 4 +# define SUART_IN_DDR DDRD +# define SUART_IN_PIN PIND +# define SUART_IN_BIT 4 +#endif + #endif -- 2.46.2