TMK_LUFA_OPTS += -DNO_LIMITED_CONTROLLER_CONNECT
endif
-ifeq (yes,$(strip $(LUFA_DEBUG)))
- TMK_LUFA_OPTS += -DLUFA_DEBUG
+ifeq (yes,$(strip $(TMK_LUFA_DEBUG)))
+ TMK_LUFA_OPTS += -DTMK_LUFA_DEBUG
endif
-ifeq (yes,$(strip $(LUFA_DEBUG_SUART)))
+ifeq (yes,$(strip $(TMK_LUFA_DEBUG_SUART)))
SRC += common/avr/suart.S
- TMK_LUFA_OPTS += -DLUFA_DEBUG_SUART
+ TMK_LUFA_OPTS += -DTMK_LUFA_DEBUG_SUART
# Keep print/debug lines when disabling HID console. See common.mk.
DEBUG_PRINT_AVAILABLE = yes
endif
-ifeq (yes,$(strip $(LUFA_DEBUG_UART)))
+ifeq (yes,$(strip $(TMK_LUFA_DEBUG_UART)))
SRC += common/avr/uart.c
- TMK_LUFA_OPTS += -DLUFA_DEBUG_UART
+ TMK_LUFA_OPTS += -DTMK_LUFA_DEBUG_UART
# Keep print/debug lines when disabling HID console. See common.mk.
DEBUG_PRINT_AVAILABLE = yes
endif
#include "hook.h"
#include "timer.h"
-#ifdef LUFA_DEBUG_SUART
+#ifdef TMK_LUFA_DEBUG_SUART
#include "avr/suart.h"
#endif
-#ifdef LUFA_DEBUG_UART
+#ifdef TMK_LUFA_DEBUG_UART
#include "uart.h"
#endif
#include "lufa.h"
-//#define LUFA_DEBUG
+//#define TMK_LUFA_DEBUG
uint8_t keyboard_idle = 0;
*/
void EVENT_USB_Device_Connect(void)
{
-#ifdef LUFA_DEBUG
+#ifdef TMK_LUFA_DEBUG
print("[C]");
#endif
/* For battery powered device */
void EVENT_USB_Device_Disconnect(void)
{
-#ifdef LUFA_DEBUG
+#ifdef TMK_LUFA_DEBUG
print("[D]");
#endif
/* For battery powered device */
void EVENT_USB_Device_Reset(void)
{
-#ifdef LUFA_DEBUG
+#ifdef TMK_LUFA_DEBUG
print("[R]");
#endif
}
void EVENT_USB_Device_Suspend()
{
-#ifdef LUFA_DEBUG
+#ifdef TMK_LUFA_DEBUG
print("[S]");
#endif
hook_usb_suspend_entry();
void EVENT_USB_Device_WakeUp()
{
-#ifdef LUFA_DEBUG
+#ifdef TMK_LUFA_DEBUG
print("[W]");
#endif
hook_usb_wakeup();
*/
void EVENT_USB_Device_ConfigurationChanged(void)
{
-#ifdef LUFA_DEBUG
+#ifdef TMK_LUFA_DEBUG
print("[c]");
#endif
bool ConfigSuccess = true;
/* Write the report data to the control endpoint */
Endpoint_Write_Control_Stream_LE(ReportData, ReportSize);
Endpoint_ClearOUT();
-#ifdef LUFA_DEBUG
+#ifdef TMK_LUFA_DEBUG
xprintf("[r%d]", USB_ControlRequest.wIndex);
#endif
}
Endpoint_ClearOUT();
Endpoint_ClearStatusStage();
-#ifdef LUFA_DEBUG
+#ifdef TMK_LUFA_DEBUG
xprintf("[L%d]", USB_ControlRequest.wIndex);
#endif
break;
Endpoint_Write_8(keyboard_protocol);
Endpoint_ClearIN();
Endpoint_ClearStatusStage();
-#ifdef LUFA_DEBUG
+#ifdef TMK_LUFA_DEBUG
print("[p]");
#endif
}
keyboard_protocol = (USB_ControlRequest.wValue & 0xFF);
clear_keyboard();
-#ifdef LUFA_DEBUG
+#ifdef TMK_LUFA_DEBUG
print("[P]");
#endif
}
Endpoint_ClearStatusStage();
keyboard_idle = ((USB_ControlRequest.wValue & 0xFF00) >> 8);
-#ifdef LUFA_DEBUG
+#ifdef TMK_LUFA_DEBUG
xprintf("[I%d]%d", USB_ControlRequest.wIndex, (USB_ControlRequest.wValue & 0xFF00) >> 8);
#endif
}
Endpoint_Write_8(keyboard_idle);
Endpoint_ClearIN();
Endpoint_ClearStatusStage();
-#ifdef LUFA_DEBUG
+#ifdef TMK_LUFA_DEBUG
print("[i]");
#endif
}
******************************************************************************/
int8_t sendchar(uint8_t c)
{
- #ifdef LUFA_DEBUG_SUART
+ #ifdef TMK_LUFA_DEBUG_SUART
xmit(c);
#endif
- #ifdef LUFA_DEBUG_UART
+ #ifdef TMK_LUFA_DEBUG_UART
uart_putchar(c);
#endif
{
setup_mcu();
-#ifdef LUFA_DEBUG_SUART
+#ifdef TMK_LUFA_DEBUG_SUART
SUART_OUT_DDR |= (1<<SUART_OUT_BIT);
SUART_OUT_PORT |= (1<<SUART_OUT_BIT);
#endif
-#ifdef LUFA_DEBUG_UART
+#ifdef TMK_LUFA_DEBUG_UART
uart_init(115200);
#endif
__attribute__((weak))
void hook_usb_suspend_loop(void)
{
-#ifndef LUFA_DEBUG_UART
+#ifndef TMK_LUFA_DEBUG_UART
// This corrupts debug print when suspend
suspend_power_down();
#endif