⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 freescale

📁 Freescale 系列单片机常用模块与综合系统设计
💻
字号:
/*************************************************************************
 * DISCLAIMER                                                            *
 * Services performed by FREESCALE in this matter are performed          *
 * AS IS and without any warranty. CUSTOMER retains the final decision   *
 * relative to the total design and functionality of the end product.    *
 * FREESCALE neither guarantees nor will be held liable by CUSTOMER      *
 * for the success of this project. FREESCALE disclaims all warranties,  *
 * express, implied or statutory including, but not limited to,          *
 * implied warranty of merchantability or fitness for a particular       *
 * purpose on any hardware, software ore advise supplied to the project  *
 * by FREESCALE, and or any product resulting from FREESCALE services.   *
 * In no event shall FREESCALE be liable for incidental or consequential *
 * damages arising out of this agreement. CUSTOMER agrees to hold        *
 * FREESCALE harmless against any and all claims demands or actions      *
 * by anyone on account of any damage, or injury, whether commercial,    *
 * contractual, or tortuous, rising directly or indirectly as a result   *
 * of the advise or assistance supplied CUSTOMER in connection with      *
 * product, services or goods supplied under this Agreement.             *
 *************************************************************************/
/*************************************************************************************************
 * File name   : Usb_Config.h
 *
 * Description : This file includes the USB configuration inforation
 *               
 *
 * History     :
 * 04/01/2007  : Initial Development
 * 
 *************************************************************************************************/

#ifndef _USBCFG_H
#define _USBCFG_H

/* Configuration Attributes */
#define _SELFPOWER       0x01<<6         /*Self-powered  */
#define _REMOTEWAKEUP    0x01<<5         /*Remote Wakeup */
#define _DEFAULT         0x01<<7         /*Default Value */

#define EP0_BUFF_SIZE           8   /* can be 8, 16, 32, or 64 for full speed*/
#define MAX_NUM_INTF            1   /* maximum interface number*/


#define CLASS_NULL              0
#define STANDARD_CLASS_ID       1
#define HID_CLASS_ID            2


/*USB state machine*/
#define POWERED_STATE           0
#define ATTACHED_STATE          1
#define DEFAULT_STATE           2
#define ADDR_PENDING_STATE      3
#define ADDRESS_STATE           4
#define CONFIGURED_STATE        5
#define USB_ENTER_SUSPEND       6
#define USB_SUSPEND             7


#endif 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -