亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? usbconfig-prototype.h

?? 老外做的 AVR-Doper 很強大
?? H
字號:
/* Name: usbconfig.h * Project: AVR USB driver * Author: Christian Starkjohann * Creation Date: 2005-04-01 * Tabsize: 4 * Copyright: (c) 2005 by OBJECTIVE DEVELOPMENT Software GmbH * License: GNU GPL v2 (see License.txt) or proprietary (CommercialLicense.txt) * This Revision: $Id: usbconfig-prototype.h 555 2008-04-17 19:25:20Z cs $ */#ifndef __usbconfig_h_included__#define __usbconfig_h_included__/*General Description:This file is an example configuration (with inline documentation) for the USBdriver. It configures AVR-USB for USB D+ connected to Port D bit 2 (which isalso hardware interrupt 0 on many devices) and USB D- to Port D bit 4. You maywire the lines to any other port, as long as D+ is also wired to INT0 (or anyother hardware interrupt, as long as it is the highest level interrupt, seesection at the end of this file).+ To create your own usbconfig.h file, copy this file to your project's+ firmware source directory) and rename it to "usbconfig.h".+ Then edit it accordingly.*//* ---------------------------- Hardware Config ---------------------------- */#define USB_CFG_IOPORTNAME      D/* This is the port where the USB bus is connected. When you configure it to * "B", the registers PORTB, PINB and DDRB will be used. */#define USB_CFG_DMINUS_BIT      4/* This is the bit number in USB_CFG_IOPORT where the USB D- line is connected. * This may be any bit in the port. */#define USB_CFG_DPLUS_BIT       2/* This is the bit number in USB_CFG_IOPORT where the USB D+ line is connected. * This may be any bit in the port. Please note that D+ must also be connected * to interrupt pin INT0! [You can also use other interrupts, see section * "Optional MCU Description" below, or you can connect D- to the interrupt, as * it is required if you use the USB_COUNT_SOF feature. If you use D- for the * interrupt, the USB interrupt will also be triggered at Start-Of-Frame * markers every millisecond.] */#define USB_CFG_CLOCK_KHZ       (F_CPU/1000)/* Clock rate of the AVR in MHz. Legal values are 12000, 15000, 16000 or 16500. * The 16.5 MHz version of the code requires no crystal, it tolerates +/- 1% * deviation from the nominal frequency. All other rates require a precision * of 2000 ppm and thus a crystal! * Default if not specified: 12 MHz *//* ----------------------- Optional Hardware Config ------------------------ *//* #define USB_CFG_PULLUP_IOPORTNAME   D *//* If you connect the 1.5k pullup resistor from D- to a port pin instead of * V+, you can connect and disconnect the device from firmware by calling * the macros usbDeviceConnect() and usbDeviceDisconnect() (see usbdrv.h). * This constant defines the port on which the pullup resistor is connected. *//* #define USB_CFG_PULLUP_BIT          4 *//* This constant defines the bit number in USB_CFG_PULLUP_IOPORT (defined * above) where the 1.5k pullup resistor is connected. See description * above for details. *//* --------------------------- Functional Range ---------------------------- */#define USB_CFG_HAVE_INTRIN_ENDPOINT    0/* Define this to 1 if you want to compile a version with two endpoints: The * default control endpoint 0 and an interrupt-in endpoint (any other endpoint * number). */#define USB_CFG_HAVE_INTRIN_ENDPOINT3   0/* Define this to 1 if you want to compile a version with three endpoints: The * default control endpoint 0, an interrupt-in endpoint 3 (or the number * configured below) and a catch-all default interrupt-in endpoint as above. * You must also define USB_CFG_HAVE_INTRIN_ENDPOINT to 1 for this feature. */#define USB_CFG_EP3_NUMBER              3/* If the so-called endpoint 3 is used, it can now be configured to any other * endpoint number (except 0) with this macro. Default if undefined is 3. *//* #define USB_INITIAL_DATATOKEN           USBPID_DATA1 *//* The above macro defines the startup condition for data toggling on the * interrupt/bulk endpoints 1 and 3. Defaults to USBPID_DATA1. * Since the token is toggled BEFORE sending any data, the first packet is * sent with the oposite value of this configuration! */#define USB_CFG_IMPLEMENT_HALT          0/* Define this to 1 if you also want to implement the ENDPOINT_HALT feature * for endpoint 1 (interrupt endpoint). Although you may not need this feature, * it is required by the standard. We have made it a config option because it * bloats the code considerably. */#define USB_CFG_INTR_POLL_INTERVAL      10/* If you compile a version with endpoint 1 (interrupt-in), this is the poll * interval. The value is in milliseconds and must not be less than 10 ms for * low speed devices. */#define USB_CFG_IS_SELF_POWERED         0/* Define this to 1 if the device has its own power supply. Set it to 0 if the * device is powered from the USB bus. */#define USB_CFG_MAX_BUS_POWER           100/* Set this variable to the maximum USB bus power consumption of your device. * The value is in milliamperes. [It will be divided by two since USB * communicates power requirements in units of 2 mA.] */#define USB_CFG_IMPLEMENT_FN_WRITE      0/* Set this to 1 if you want usbFunctionWrite() to be called for control-out * transfers. Set it to 0 if you don't need it and want to save a couple of * bytes. */#define USB_CFG_IMPLEMENT_FN_READ       0/* Set this to 1 if you need to send control replies which are generated * "on the fly" when usbFunctionRead() is called. If you only want to send * data from a static buffer, set it to 0 and return the data from * usbFunctionSetup(). This saves a couple of bytes. */#define USB_CFG_IMPLEMENT_FN_WRITEOUT   0/* Define this to 1 if you want to use interrupt-out (or bulk out) endpoints. * You must implement the function usbFunctionWriteOut() which receives all * interrupt/bulk data sent to any endpoint other than 0. The endpoint number * can be found in 'usbRxToken'. */#define USB_CFG_HAVE_FLOWCONTROL        0/* Define this to 1 if you want flowcontrol over USB data. See the definition * of the macros usbDisableAllRequests() and usbEnableAllRequests() in * usbdrv.h. *//* #define USB_RX_USER_HOOK(data, len)     if(usbRxToken == (uchar)USBPID_SETUP) blinkLED(); *//* This macro is a hook if you want to do unconventional things. If it is * defined, it's inserted at the beginning of received message processing. * If you eat the received message and don't want default processing to * proceed, do a return after doing your things. One possible application * (besides debugging) is to flash a status LED on each packet. *//* #define USB_RESET_HOOK(resetStarts)     if(!resetStarts){hadUsbReset();} *//* This macro is a hook if you need to know when an USB RESET occurs. It has * one parameter which distinguishes between the start of RESET state and its * end. *//* #define USB_SET_ADDRESS_HOOK()              hadAddressAssigned(); *//* This macro (if defined) is executed when a USB SET_ADDRESS request was * received. */#define USB_COUNT_SOF                   0/* define this macro to 1 if you need the global variable "usbSofCount" which * counts SOF packets. This feature requires that the hardware interrupt is * connected to D- instead of D+. */#define USB_CFG_HAVE_MEASURE_FRAME_LENGTH   0/* define this macro to 1 if you want the function usbMeasureFrameLength() * compiled in. This function can be used to calibrate the AVR's RC oscillator. *//* -------------------------- Device Description --------------------------- */#define  USB_CFG_VENDOR_ID       0xc0, 0x16/* USB vendor ID for the device, low byte first. If you have registered your * own Vendor ID, define it here. Otherwise you use one of obdev's free shared * VID/PID pairs. Be sure to read USBID-License.txt for rules! * + This template uses obdev's shared VID/PID pair: 0x16c0/0x5dc. * + Use this VID/PID pair ONLY if you understand the implications! */#define  USB_CFG_DEVICE_ID       0xdc, 0x05/* This is the ID of the product, low byte first. It is interpreted in the * scope of the vendor ID. If you have registered your own VID with usb.org * or if you have licensed a PID from somebody else, define it here. Otherwise * you use obdev's free shared VID/PID pair. Be sure to read the rules in * USBID-License.txt! * + This template uses obdev's shared VID/PID pair: 0x16c0/0x5dc. * + Use this VID/PID pair ONLY if you understand the implications! */#define USB_CFG_DEVICE_VERSION  0x00, 0x01/* Version number of the device: Minor number first, then major number. */#define USB_CFG_VENDOR_NAME     'o', 'b', 'd', 'e', 'v', '.', 'a', 't'#define USB_CFG_VENDOR_NAME_LEN 8/* These two values define the vendor name returned by the USB device. The name * must be given as a list of characters under single quotes. The characters * are interpreted as Unicode (UTF-16) entities. * If you don't want a vendor name string, undefine these macros. * ALWAYS define a vendor name containing your Internet domain name if you use * obdev's free shared VID/PID pair. See the file USBID-License.txt for * details. */#define USB_CFG_DEVICE_NAME     'T', 'e', 'm', 'p', 'l', 'a', 't', 'e'#define USB_CFG_DEVICE_NAME_LEN 8/* Same as above for the device name. If you don't want a device name, undefine * the macros. See the file USBID-License.txt before you assign a name if you * use a shared VID/PID. *//*#define USB_CFG_SERIAL_NUMBER   'N', 'o', 'n', 'e' *//*#define USB_CFG_SERIAL_NUMBER_LEN   0 *//* Same as above for the serial number. If you don't want a serial number, * undefine the macros. * It may be useful to provide the serial number through other means than at * compile time. See the section about descriptor properties below for how * to fine tune control over USB descriptors such as the string descriptor * for the serial number. */#define USB_CFG_DEVICE_CLASS        0xff    /* set to 0 if deferred to interface */#define USB_CFG_DEVICE_SUBCLASS     0/* See USB specification if you want to conform to an existing device class. * Class 0xff is "vendor specific". */#define USB_CFG_INTERFACE_CLASS     0   /* define class here if not at device level */#define USB_CFG_INTERFACE_SUBCLASS  0#define USB_CFG_INTERFACE_PROTOCOL  0/* See USB specification if you want to conform to an existing device class or * protocol. The following classes must be set at interface level: * HID class is 3, no subclass and protocol required (but may be useful!) * CDC class is 2, use subclass 2 and protocol 1 for ACM *//* #define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH    42 *//* Define this to the length of the HID report descriptor, if you implement * an HID device. Otherwise don't define it or define it to 0. * If you use this define, you must add a PROGMEM character array named * "usbHidReportDescriptor" to your code which contains the report descriptor. * Don't forget to keep the array and this define in sync! *//* #define USB_PUBLIC static *//* Use the define above if you #include usbdrv.c instead of linking against it. * This technique saves a couple of bytes in flash memory. *//* ------------------- Fine Control over USB Descriptors ------------------- *//* If you don't want to use the driver's default USB descriptors, you can * provide our own. These can be provided as (1) fixed length static data in * flash memory, (2) fixed length static data in RAM or (3) dynamically at * runtime in the function usbFunctionDescriptor(). See usbdrv.h for more * information about this function. * Descriptor handling is configured through the descriptor's properties. If * no properties are defined or if they are 0, the default descriptor is used. * Possible properties are: *   + USB_PROP_IS_DYNAMIC: The data for the descriptor should be fetched *     at runtime via usbFunctionDescriptor(). *   + USB_PROP_IS_RAM: The data returned by usbFunctionDescriptor() or found *     in static memory is in RAM, not in flash memory. *   + USB_PROP_LENGTH(len): If the data is in static memory (RAM or flash), *     the driver must know the descriptor's length. The descriptor itself is *     found at the address of a well known identifier (see below). * List of static descriptor names (must be declared PROGMEM if in flash): *   char usbDescriptorDevice[]; *   char usbDescriptorConfiguration[]; *   char usbDescriptorHidReport[]; *   char usbDescriptorString0[]; *   int usbDescriptorStringVendor[]; *   int usbDescriptorStringDevice[]; *   int usbDescriptorStringSerialNumber[]; * Other descriptors can't be provided statically, they must be provided * dynamically at runtime. * * Descriptor properties are or-ed or added together, e.g.: * #define USB_CFG_DESCR_PROPS_DEVICE   (USB_PROP_IS_RAM | USB_PROP_LENGTH(18)) * * The following descriptors are defined: *   USB_CFG_DESCR_PROPS_DEVICE *   USB_CFG_DESCR_PROPS_CONFIGURATION *   USB_CFG_DESCR_PROPS_STRINGS *   USB_CFG_DESCR_PROPS_STRING_0 *   USB_CFG_DESCR_PROPS_STRING_VENDOR *   USB_CFG_DESCR_PROPS_STRING_PRODUCT *   USB_CFG_DESCR_PROPS_STRING_SERIAL_NUMBER *   USB_CFG_DESCR_PROPS_HID *   USB_CFG_DESCR_PROPS_HID_REPORT *   USB_CFG_DESCR_PROPS_UNKNOWN (for all descriptors not handled by the driver) * */#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/* ----------------------- Optional MCU Description ------------------------ *//* The following configurations have working defaults in usbdrv.h. You * usually don't need to set them explicitly. Only if you want to run * the driver on a device which is not yet supported or with a compiler * which is not fully supported (such as IAR C) or if you use a differnt * interrupt than INT0, you may have to define some of these. *//* #define USB_INTR_CFG            MCUCR *//* #define USB_INTR_CFG_SET        ((1 << ISC00) | (1 << ISC01)) *//* #define USB_INTR_CFG_CLR        0 *//* #define USB_INTR_ENABLE         GIMSK *//* #define USB_INTR_ENABLE_BIT     INT0 *//* #define USB_INTR_PENDING        GIFR *//* #define USB_INTR_PENDING_BIT    INTF0 *//* #define USB_INTR_VECTOR         SIG_INTERRUPT0 */#endif /* __usbconfig_h_included__ */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产乱码久久久久久闺蜜| 蜜桃91丨九色丨蝌蚪91桃色| 五月天婷婷综合| 狠狠久久亚洲欧美| 欧美色成人综合| 国产精品免费av| 韩国欧美国产一区| 欧美日韩黄色影视| 亚洲精品国产a| 懂色av噜噜一区二区三区av| 精品伦理精品一区| 日韩高清不卡一区二区三区| 欧美在线视频你懂得| 国产精品另类一区| 国产一区二区调教| 正在播放亚洲一区| 偷偷要91色婷婷| 欧美日韩亚洲丝袜制服| 亚洲一区二区三区美女| 一本在线高清不卡dvd| 国产精品毛片久久久久久| 国产在线视频不卡二| 日韩免费性生活视频播放| 青青草原综合久久大伊人精品| 欧美日本一道本| 亚洲va韩国va欧美va精品 | 91精品中文字幕一区二区三区| 国产精品久久久久久久久图文区| 狠狠网亚洲精品| 精品国产网站在线观看| 国产自产2019最新不卡| 久久久一区二区| 国产真实乱子伦精品视频| 久久久久久97三级| 国产成人精品三级| 中文字幕国产一区二区| 99精品桃花视频在线观看| 国产精品白丝在线| 在线国产亚洲欧美| 婷婷中文字幕综合| 日韩欧美卡一卡二| 高清不卡一二三区| 中文幕一区二区三区久久蜜桃| 99久久精品免费看国产| 亚洲一区二区三区在线播放| 欧美日韩国产经典色站一区二区三区| 天堂久久一区二区三区| 日韩欧美国产电影| 成人天堂资源www在线| 亚洲另类在线视频| 7777精品伊人久久久大香线蕉超级流畅| 免费国产亚洲视频| 欧美精彩视频一区二区三区| 成人激情动漫在线观看| 亚洲一区二区三区四区五区中文 | av午夜精品一区二区三区| 亚洲男同性恋视频| 欧美日韩极品在线观看一区| 久久成人久久爱| 中文字幕亚洲电影| 欧美日韩欧美一区二区| 久久 天天综合| 亚洲美女免费在线| 日韩视频免费观看高清在线视频| 国产精品 欧美精品| 亚洲综合自拍偷拍| 久久免费国产精品| 在线观看区一区二| 国产精品1024| 亚洲成av人片在线观看无码| 久久精品一区蜜桃臀影院| 欧美午夜影院一区| 国产成人午夜高潮毛片| 亚洲第一搞黄网站| 国产精品免费看片| 日韩视频免费直播| 欧洲在线/亚洲| 懂色av一区二区夜夜嗨| 日韩中文字幕麻豆| 亚洲色图.com| 久久久久久电影| 欧美精品久久99久久在免费线| 国产黄色91视频| 免费高清在线一区| 亚洲欧美日韩中文播放| 久久久五月婷婷| 欧美一区二区三区视频在线| 日本精品视频一区二区| 成人一级片网址| 国内精品久久久久影院一蜜桃| 亚洲一区在线观看网站| 国产精品人人做人人爽人人添| 3d动漫精品啪啪| 欧美日韩三级一区二区| 99精品视频一区二区三区| 精品无人码麻豆乱码1区2区 | 国产99精品国产| 蜜臀久久99精品久久久画质超高清| 亚洲美女屁股眼交| 国产精品久久久久桃色tv| 久久夜色精品国产噜噜av| 91精品国产手机| 欧美剧在线免费观看网站| 在线亚洲免费视频| 色噜噜狠狠色综合中国| 99久久免费国产| www.亚洲精品| 91天堂素人约啪| 97se狠狠狠综合亚洲狠狠| eeuss鲁一区二区三区| 丰满岳乱妇一区二区三区| 国产大陆a不卡| 国产成人自拍网| 国产suv精品一区二区三区| 韩国成人精品a∨在线观看| 精品综合免费视频观看| 狠狠色丁香婷婷综合| 国产综合久久久久久久久久久久| 精品在线播放午夜| 国产在线国偷精品免费看| 国产精品69久久久久水密桃| 成人一区二区在线观看| 99精品视频中文字幕| 91福利资源站| 91麻豆精品国产91久久久| 日韩欧美一级精品久久| 久久日韩精品一区二区五区| 国产欧美精品一区二区色综合| 国产精品天干天干在观线| 亚洲精品免费电影| 日本不卡123| 国产91富婆露脸刺激对白| 国产成人99久久亚洲综合精品| 99热这里都是精品| 欧美日韩亚洲综合一区| 日韩精品一区二区三区蜜臀| 久久久www免费人成精品| 亚洲人成影院在线观看| 亚洲国产成人porn| 久久成人羞羞网站| 99久久99久久精品国产片果冻| 色综合久久88色综合天天| 欧美精品 日韩| 国产精品三级视频| 亚洲一区二区三区视频在线播放 | 国产精品麻豆一区二区| 夜夜夜精品看看| 玖玖九九国产精品| 97久久精品人人澡人人爽| 欧美一区二区播放| 成人免费一区二区三区在线观看 | 亚洲免费在线视频一区 二区| 亚洲国产日韩一区二区| 韩国av一区二区三区| 在线一区二区视频| 久久久亚洲精品一区二区三区| 一区二区三区日韩精品视频| 久久国产精品99久久久久久老狼| 一本一道综合狠狠老| 欧美精品一区二区久久久| 一区二区三区日韩欧美| 国产精一区二区三区| 欧美精品乱人伦久久久久久| 亚洲欧洲99久久| 精品一区二区精品| 欧美日韩成人综合在线一区二区| 欧美激情综合网| 久久精品理论片| 欧美日韩精品综合在线| 亚洲欧洲性图库| 国产老女人精品毛片久久| 欧美猛男男办公室激情| 亚洲女爱视频在线| 国产成人免费9x9x人网站视频| 欧美一二三区精品| 亚洲二区视频在线| 91久久国产最好的精华液| 国产精品国产三级国产三级人妇 | 国产精品一区在线观看乱码 | 久久99九九99精品| 欧美日韩三级一区二区| 亚洲免费观看高清完整版在线观看 | 欧美三日本三级三级在线播放| 国产精品区一区二区三区| 国产一区二区福利视频| 日韩一区二区中文字幕| 午夜免费久久看| 精品视频一区二区三区免费| 一区二区三区在线影院| 91美女精品福利| 亚洲男人的天堂在线aⅴ视频| 高清不卡一二三区| 国产精品少妇自拍| 成人激情小说网站| 亚洲欧洲日韩在线| 一本到不卡免费一区二区| 亚洲欧美一区二区三区极速播放 | 三级影片在线观看欧美日韩一区二区| 色婷婷久久99综合精品jk白丝 | 国产精品每日更新在线播放网址|