123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392 |
-
-
- #ifndef __usbconfig_h_included__
- #define __usbconfig_h_included__
-
-
-
-
-
- #define USB_CFG_IOPORTNAME B
-
- #define USB_CFG_DMINUS_BIT 3
-
- #define USB_CFG_DPLUS_BIT 4
-
- #define USB_CFG_CLOCK_KHZ (F_CPU/1000)
-
- #define USB_CFG_CHECK_CRC 0
-
-
-
-
-
-
-
-
-
-
-
- #define USB_CFG_HAVE_INTRIN_ENDPOINT 0
-
- #define USB_CFG_HAVE_INTRIN_ENDPOINT3 0
-
- #define USB_CFG_EP3_NUMBER 3
-
-
-
- #define USB_CFG_IMPLEMENT_HALT 0
-
- #define USB_CFG_SUPPRESS_INTR_CODE 0
-
- #define USB_CFG_INTR_POLL_INTERVAL 10
-
- #define USB_CFG_IS_SELF_POWERED 0
-
- #define USB_CFG_MAX_BUS_POWER 100
-
- #define USB_CFG_IMPLEMENT_FN_WRITE 0
-
- #define USB_CFG_IMPLEMENT_FN_READ 0
-
- #define USB_CFG_IMPLEMENT_FN_WRITEOUT 0
-
- #define USB_CFG_HAVE_FLOWCONTROL 0
-
- #define USB_CFG_DRIVER_FLASH_PAGE 0
-
- #define USB_CFG_LONG_TRANSFERS 0
-
-
-
-
- #ifndef __ASSEMBLER__
- #include <avr/interrupt.h> // for sei()
- #include "osccal.h" // for calibrateOscillator()
- #endif
- #define USB_RESET_HOOK(resetStarts) if(!resetStarts){cli(); calibrateOscillator(); sei();}
-
-
-
- #define USB_COUNT_SOF 1
-
-
- #define USB_CFG_CHECK_DATA_TOGGLING 0
-
- #define USB_CFG_HAVE_MEASURE_FRAME_LENGTH 1
-
- #define USB_USE_FAST_CRC 0
-
-
-
-
- #define USB_CFG_VENDOR_ID 0xc0, 0x16
-
- #define USB_CFG_DEVICE_ID 0xdc, 0x05
-
- #define USB_CFG_DEVICE_VERSION 0x00, 0x01
-
- #define USB_CFG_VENDOR_NAME 'x', 'y', 't', 'h', 'o', 'b', 'u', 'z', '.', 'd', 'e'
- #define USB_CFG_VENDOR_NAME_LEN 11
-
- #define USB_CFG_DEVICE_NAME 'A', 'u', 't', 'o', 'B', 'r', 'i', 'g', 'h', 't', 'n', 'e', 's', 's'
- #define USB_CFG_DEVICE_NAME_LEN 14
-
-
-
-
- #define USB_CFG_DEVICE_CLASS 0xff
- #define USB_CFG_DEVICE_SUBCLASS 0
-
- #define USB_CFG_INTERFACE_CLASS 0
- #define USB_CFG_INTERFACE_SUBCLASS 0
- #define USB_CFG_INTERFACE_PROTOCOL 0
-
-
-
-
-
-
-
-
-
-
- #define USB_CFG_DESCR_PROPS_DEVICE 0
- #define USB_CFG_DESCR_PROPS_CONFIGURATION 0
- #define USB_CFG_DESCR_PROPS_STRINGS 0
- #define USB_CFG_DESCR_PROPS_STRING_0 0
- #define USB_CFG_DESCR_PROPS_STRING_VENDOR 0
- #define USB_CFG_DESCR_PROPS_STRING_PRODUCT 0
- #define USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER 0
- #define USB_CFG_DESCR_PROPS_HID 0
- #define USB_CFG_DESCR_PROPS_HID_REPORT 0
- #define USB_CFG_DESCR_PROPS_UNKNOWN 0
-
-
-
-
-
-
-
-
-
-
-
- #define USB_INTR_CFG PCMSK
- #define USB_INTR_CFG_SET (1 << USB_CFG_DPLUS_BIT)
- #define USB_INTR_CFG_CLR 0
- #define USB_INTR_ENABLE GIMSK
- #define USB_INTR_ENABLE_BIT PCIE
- #define USB_INTR_PENDING GIFR
- #define USB_INTR_PENDING_BIT PCIF
- #define USB_INTR_VECTOR PCINT0_vect
-
- #endif
|