]> git.donarmstrong.com Git - tmk_firmware.git/blob - usb_debug.h
acc6716cdebcfc072d05537b56a3e3c9278125a3
[tmk_firmware.git] / usb_debug.h
1 #ifndef USB_DEBUG_H
2 #define  USB_DEBUG_H 1
3
4 #include <stdint.h>
5 #include "usb_device.h"
6
7
8 #define DEBUG_INTERFACE         1
9 #define DEBUG_TX_ENDPOINT       4
10 #define DEBUG_TX_SIZE           32
11 #define DEBUG_TX_BUFFER         EP_DOUBLE_BUFFER
12
13
14 extern volatile uint8_t debug_flush_timer;
15
16
17 int8_t usb_debug_putchar(uint8_t c);    // transmit a character
18 void usb_debug_flush_output(void);      // immediately transmit any buffered output
19
20 #endif