Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
Tento repozitář je archivovaný. Můžete prohlížet soubory, klonovat, ale nemůžete nahrávat a vytvářet nové úkoly a požadavky na natažení.

usb_debug.h 408B

1234567891011121314151617181920
  1. #ifndef USB_DEBUG_H
  2. #define USB_DEBUG_H 1
  3. #include <stdint.h>
  4. #include "usb_device.h"
  5. #define DEBUG_INTERFACE 1
  6. #define DEBUG_TX_ENDPOINT 4
  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