From b8fba54a20ef940565c1b443891d7c94a91cf1fb Mon Sep 17 00:00:00 2001 From: tmk Date: Wed, 13 May 2015 15:59:49 +0900 Subject: usb_usb: Change debug LED pin config --- converter/usb_usb/main.cpp | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'converter/usb_usb/main.cpp') diff --git a/converter/usb_usb/main.cpp b/converter/usb_usb/main.cpp index 011baf1d66..57a5de3d35 100644 --- a/converter/usb_usb/main.cpp +++ b/converter/usb_usb/main.cpp @@ -18,7 +18,28 @@ #include "debug.h" #include "keyboard.h" -#include "leonardo_led.h" + +/* LED ping configuration */ +#define TMK_LED +//#define LEONARDO_LED +#if defined(TMK_LED) +// For TMK converter and Teensy +#define LED_TX_INIT (DDRD |= (1<<6)) +#define LED_TX_ON (PORTD |= (1<<6)) +#define LED_TX_OFF (PORTD &= ~(1<<6)) +#define LED_TX_TOGGLE (PORTD ^= (1<<6)) +#elif defined(LEONARDO_LED) +// For Leonardo(TX LED) +#define LED_TX_INIT (DDRD |= (1<<5)) +#define LED_TX_ON (PORTD &= ~(1<<5)) +#define LED_TX_OFF (PORTD |= (1<<5)) +#define LED_TX_TOGGLE (PORTD ^= (1<<5)) +#else +#define LED_TX_INIT +#define LED_TX_ON +#define LED_TX_OFF +#define LED_TX_TOGGLE +#endif static USB usb_host; -- cgit v1.2.1