Keyboard firmwares for Atmel AVR and Cortex-M
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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