diff options
author | tmk <nobody@nowhere> | 2010-09-23 20:23:50 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2010-09-23 20:23:50 +0900 |
commit | 7fd9003f59ad6a1de8d8b70fae74ba16df666c09 (patch) | |
tree | 965fa71209fbb0a947aa9848ab9dba2247d9b5b9 /usb_debug.h | |
parent | 6be0e4fafb3875264317f048b2c823dea87a9f49 (diff) | |
download | qmk_firmware-7fd9003f59ad6a1de8d8b70fae74ba16df666c09.tar.gz |
divide usb_keyboard_debug.[c|h] into usb_device, usb_keyboard, usb_debug.
Diffstat (limited to 'usb_debug.h')
-rw-r--r-- | usb_debug.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/usb_debug.h b/usb_debug.h new file mode 100644 index 000000000..acc6716cd --- /dev/null +++ b/usb_debug.h @@ -0,0 +1,20 @@ +#ifndef USB_DEBUG_H +#define USB_DEBUG_H 1 + +#include <stdint.h> +#include "usb_device.h" + + +#define DEBUG_INTERFACE 1 +#define DEBUG_TX_ENDPOINT 4 +#define DEBUG_TX_SIZE 32 +#define DEBUG_TX_BUFFER EP_DOUBLE_BUFFER + + +extern volatile uint8_t debug_flush_timer; + + +int8_t usb_debug_putchar(uint8_t c); // transmit a character +void usb_debug_flush_output(void); // immediately transmit any buffered output + +#endif |