2010-09-23 13:23:50 +02:00
|
|
|
#ifndef USB_DEBUG_H
|
|
|
|
#define USB_DEBUG_H 1
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2010-09-30 07:17:01 +02:00
|
|
|
#include "usb.h"
|
2010-09-23 13:23:50 +02:00
|
|
|
|
|
|
|
|
2010-09-30 07:17:01 +02:00
|
|
|
#define DEBUG_INTERFACE 2
|
|
|
|
#define DEBUG_TX_ENDPOINT 3
|
2010-09-23 13:23:50 +02:00
|
|
|
#define DEBUG_TX_SIZE 32
|
|
|
|
#define DEBUG_TX_BUFFER EP_DOUBLE_BUFFER
|
|
|
|
|
|
|
|
|
|
|
|
extern volatile uint8_t debug_flush_timer;
|
|
|
|
|
|
|
|
|
|
|
|
void usb_debug_flush_output(void); // immediately transmit any buffered output
|
|
|
|
|
|
|
|
#endif
|