config.h 657 B

12345678910111213141516171819202122232425
  1. #ifndef __CONFIH_H__
  2. #define __CONFIH_H__
  3. #define DEBUG 1
  4. #define DEBUG_USB 2
  5. #define DEBUG_USB_TRANS 4
  6. #define DEBUG_SRAM 8
  7. #define DEBUG_SRAM_RAW 16
  8. #define DEBUG_SREG 32
  9. #define REQ_STATUS_IDLE 0x01
  10. #define REQ_STATUS_UPLOAD 0x02
  11. #define REQ_STATUS_BULK_UPLOAD 0x03
  12. #define REQ_STATUS_BULK_NEXT 0x04
  13. #define REQ_STATUS_CRC 0x05
  14. #define REQ_STATUS_BOOT 0x06
  15. #define USB_MAX_TRANS 0xff
  16. #define USB_CRC_CHECK 0x01
  17. #define TRANSFER_BUFFER_SIZE 0x200
  18. #endif