divide usb_keyboard_debug.[c|h] into usb_device, usb_keyboard, usb_debug.

This commit is contained in:
tmk 2010-09-23 20:23:50 +09:00
parent 6be0e4fafb
commit 7fd9003f59
9 changed files with 225 additions and 186 deletions

20
usb_debug.h Normal file
View file

@ -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