Keyboard firmwares for Atmel AVR and Cortex-M
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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