Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

usb_debug.h 401B

1234567891011121314151617181920
  1. #ifndef USB_DEBUG_H
  2. #define USB_DEBUG_H 1
  3. #include <stdint.h>
  4. #include "usb.h"
  5. #define DEBUG_INTERFACE 2
  6. #define DEBUG_TX_ENDPOINT 3
  7. #define DEBUG_TX_SIZE 32
  8. #define DEBUG_TX_BUFFER EP_DOUBLE_BUFFER
  9. extern volatile uint8_t debug_flush_timer;
  10. int8_t usb_debug_putchar(uint8_t c); // transmit a character
  11. void usb_debug_flush_output(void); // immediately transmit any buffered output
  12. #endif