From: tmk Date: Mon, 3 Oct 2016 02:02:01 +0000 (+0900) Subject: ps2_usb: Add setting for suart debug X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=350897112b46a7f533c021bf3b34286b74534674;p=max%2Ftmk_keyboard.git ps2_usb: Add setting for suart debug --- 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