You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
408 B
C
21 lines
408 B
C
14 years ago
|
#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
|