summaryrefslogtreecommitdiff
path: root/usb_debug.h
blob: acc6716cdebcfc072d05537b56a3e3c9278125a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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