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

📄 reqcode.c

📁 USB固件驱动,ISP1581评估板的MPEG方案源码
💻 C
📖 第 1 页 / 共 2 页
字号:
//***********************************************************************
//									     								*
//                P H I L I P S   P R O P R I E T A R Y          		*
//                                                                      *
//          COPYRIGHT (c)   1999 BY PHILIPS SINGAPORE (APIC).    		*
//                    --  ALL RIGHTS RESERVED  --                 		*	
//                                                                      *
// 	File Name	:       RequestCode.c                                   *
// 	Author		:       Albert Goh					 					*
// 	Created		:      	3 March 2000                               		*
//                  	                                                *
//***********************************************************************
//***********************************************************************
//                                                                      *
// Debug.c file contain the location of the routine for debugging of    *
// the D14. It consist of PIO,USB,UDMA,MDMA,GDMA debugging location   	*
// It will branch to the respective routine via the UART or the CODE  	*
// definition                                                           *
//                                                                      *
//***********************************************************************
//***********************************************************************
//                                                                      *
//  Module History														*
//  **************														*
//																		*
//  Date   	Version			Author				Changes					*
//  ====	=======			======				=======					*
//  030300	  0.1 			Albert				Created    				*
//                                                                      *
//                                                                      *
 //***********************************************************************

//***********************************************************************
//*																		*
//*	                     Include Files Definition						*
//*																		*
//***********************************************************************

#include "standard.h"
#include "Usb.h"
#include "kernel.h"

//***********************************************************************
//*																		*
//*	                     Variable Definition 							*
//*																		*
//***********************************************************************


//***********************************************************************
//*																		*
//*	                     Routine Definition								*
//*																		*
//***********************************************************************


//***********************************************************************
//*										    							*
//*	Routine 	: Standard Device Descriptor                       		*
//*	Input		: None              									*
//*	Output		: None                                					*
//*	Function	: None                                      			*
//*																		*
//***********************************************************************

DEVICE_DESCRIPTOR				code  	FS_Device_Descriptor[] =
{
    
    sizeof(DEVICE_DESCRIPTOR),		//        length	 
    0x01,    						//  1.    bDescriptorType            
	SWAP(0x0200),   				//  2.-3. Version 1.1 USB spec Word  
	0x00,   	  					//  4.    Class                      
    0x00,    						//  5.    bDeviceSubClass            
	0x00,    						//  6.    bDeviceProtocol            
	0x40,							//  7.    bMaxPacketSize0            
	SWAP(0x0471),					// 8.-9.  idVendor                   
	SWAP(0x1552),   				// a.-b.  idProduct                  	
	SWAP(0x0001),   				// c.-d.  bcdDevice                  
	0x01,   						// e.	   iManufacturer             
	0x02,    						// f.	   iProduct				     
	0x00,    						// 10.    iSerialNumber              
	0x01     						// 11.    bNumConfigurations		 

};

//***********************************************************************
//*										    							*
//*	Routine 	: Standard Configuration Descriptor                		*
//*	Input		: None              									*
//*	Output		: None                                					*
//*	Function	: None                                      			*
//*																		*
//***********************************************************************

CONFIGURATION_DESCRIPTOR	code	FS_Config_Descriptor[] =
{

	sizeof(CONFIGURATION_DESCRIPTOR),	//Length of the configuration Descriptor
	0x02,							 	//Configuration Descriptor
	SWAP(FS_CONFIG_LENGTH),   			 	//Total length of the configurations,interface and class/endpoint
	0x01,							 	//No. of interface supported
	0x01,							 	//Configuration Value
	0x00,							 	//Index of string descriptor
	0x80,							 	//Configurations Characteristic
	0x32							 	//Maximun Power

};
//***********************************************************************
//*										    							*
//*	Routine 	: Standard Interface Descriptor(default setting)   		*
//*	Input		: None              									*
//*	Output		: None                                					*
//*	Function	: None                                      			*
//*																		*
//***********************************************************************
INTERFACE_DESCRIPTOR	code	Interface_Descriptor_Default[] =
{

	sizeof(INTERFACE_DESCRIPTOR),	//Length of standard interface descriptor
	0x04,								//Standard Interface Type
	0x00,								//No of Interface
	0x00,								//Alternate Setting Selector
	0x02,								//No of Endpoints
	0x00,								//Interface Class
	0x00,								//Interface Sub Class
	0x00,								//Interface Protocol
	0x00								//Index of interface string desriptor

};

//***********************************************************************
//*										    							*
//*	Routine 	: Standard Interface Descriptor(Alternate Setting) 		*
//*	Input		: None              									*
//*	Output		: None                                					*
//*	Function	: None                                      			*
//*																		*
//***********************************************************************
INTERFACE_DESCRIPTOR	code	Interface_Descriptor_Alternate1[] =
{

	sizeof(INTERFACE_DESCRIPTOR),	//Length of standard interface descriptor
	0x04,								//Standard Interface Type
	0x00,								//No of Interface
	0x01,								//Alternate Setting Selector
	0x02,								//No of Endpoints
	0x00,								//Interface Class
	0x00,								//Interface Sub Class
	0x00,								//Interface Protocol
	0x00								//Index of interface string desriptor


};

//***********************************************************************
//*										    							*
//*	Routine 	: Standard Interface Descriptor(Alternate Setting) 		*
//*	Input		: None              									*
//*	Output		: None                                					*
//*	Function	: None                                      			*
//*																		*
//***********************************************************************
INTERFACE_DESCRIPTOR	code	Interface_Descriptor_Alternate2[] =
{

	sizeof(INTERFACE_DESCRIPTOR),	//Length of standard interface descriptor
	0x04,								//Standard Interface Type
	0x00,								//No of Interface
	0x02,								//Alternate Setting Selector
	0x02,								//No of Endpoints
	0x00,								//Interface Class
	0x00,								//Interface Sub Class
	0x00,								//Interface Protocol
	0x00								//Index of interface string desriptor


};


//***********************************************************************
//*										    							*
//*	Routine 	: 			High-Speed Device Descriptor                       		*
//*	Input		: None              									*
//*	Output		: None                                					*
//*	Function	: None                                      			*
//*																		*
//***********************************************************************

DEVICE_DESCRIPTOR	code 	HS_Device_Descriptor[] =
{
    
    sizeof(DEVICE_DESCRIPTOR),		//        length	 
    0x01,    						//  1.    bDescriptorType            
	SWAP(0x0200),   				//  2.-3. Version 2.0 USB spec Word  
	0x00,   	  					//  4.    Class                      
    0x00,    						//  5.    bDeviceSubClass            
	0x00,    						//  6.    bDeviceProtocol            
	0x40,							//  7.    bMaxPacketSize0            
	SWAP(0x0471),					// 8.-9.  idVendor                   
	SWAP(0x1552),   				// a.-b.  idProduct                  	
	SWAP(0x0001),   				// c.-d.  bcdDevice                  
	0x01,   						// e.	   iManufacturer             
	0x02,    						// f.	   iProduct				     
	0x00,    						// 10.    iSerialNumber              
	0x01     						// 11.    bNumConfigurations		 

};
//***********************************************************************
//*										    							*
//*	Routine 	: Standard Configuration Descriptor                		*
//*	Input		: None              									*
//*	Output		: None                                					*
//*	Function	: None                                      			*
//*																		*
//***********************************************************************

CONFIGURATION_DESCRIPTOR	code	HS_Config_Descriptor[] =
{

	sizeof(CONFIGURATION_DESCRIPTOR),	//Length of the configuration Descriptor
	0x02,							 	//Configuration Descriptor
	SWAP(HS_CONFIG_LENGTH),			 	//Total length of the configurations,interface and class/endpoint
	0x01,							 	//No. of interface supported
	0x01,							 	//Configuration Value
	0x00,							 	//Index of string descriptor
	0x80,							 	//Configurations Characteristic
	0x32							 	//Maximun Power

};

//***********************************************************************
//*										    							*
//*	Routine 	: High-speed Interface Descriptor(default Setting) 		*
//*	Input		: None              									*
//*	Output		: None                                					*
//*	Function	: None                                      			*
//*																		*
//***********************************************************************

INTERFACE_DESCRIPTOR	code	HS_Interface_Descriptor_Default[] =
{
	sizeof(INTERFACE_DESCRIPTOR),	//Length of standard interface descriptor
	0x04,								//Standard Interface Type
	0x00,								//No of Interface
	0x00,								//Alternate Setting Selector
	0x02,								//No of Endpoints
	0x00,								//Interface Class
	0x00,								//Interface Sub Class
	0x00,								//Interface Protocol
	0x00								//Index of interface string desriptor


};
//***********************************************************************
//*										    							*
//*	Routine 	: High-speed Interface Descriptor(Alternate Setting1)	*
//*	Input		: None              									*
//*	Output		: None                                					*
//*	Function	: None                                      			*
//*																		*
//***********************************************************************
INTERFACE_DESCRIPTOR	code	HS_Interface_Descriptor_Alternate1[] =
{
	sizeof(INTERFACE_DESCRIPTOR),	//Length of standard interface descriptor
	0x04,								//Standard Interface Type
	0x00,								//No of Interface
	0x01,								//Alternate Setting Selector
	0x02,								//No of Endpoints
	0x00,								//Interface Class
	0x00,								//Interface Sub Class
	0x00,								//Interface Protocol
	0x00								//Index of interface string desriptor


};
//***********************************************************************
//*										    							*
//*	Routine 	: High-speed Interface Descriptor(Alternate Setting2)   *
//*	Input		: None              									*
//*	Output		: None                                					*
//*	Function	: None                                      			*
//*																		*
//***********************************************************************
INTERFACE_DESCRIPTOR	code	HS_Interface_Descriptor_Alternate2[] =
{
	sizeof(INTERFACE_DESCRIPTOR),	//Length of standard interface descriptor
	0x04,								//Standard Interface Type
	0x00,								//No of Interface
	0x02,								//Alternate Setting Selector
	0x02,								//No of Endpoints
	0x00,								//Interface Class
	0x00,								//Interface Sub Class
	0x00,								//Interface Protocol
	0x00								//Index of interface string desriptor


};
//***********************************************************************
//*										    							*
//*	Routine 	: High-speed Interface Descriptor(Alternate Setting 3)	*
//*	Input		: None              									*
//*	Output		: None                                					*
//*	Function	: None                                      			*
//*																		*
//***********************************************************************
INTERFACE_DESCRIPTOR	code	HS_Interface_Descriptor_Alternate3[] =
{
	sizeof(INTERFACE_DESCRIPTOR),	//Length of standard interface descriptor
	0x04,								//Standard Interface Type
	0x00,								//No of Interface
	0x03,								//Alternate Setting Selector
	0x02,								//No of Endpoints
	0x00,								//Interface Class
	0x00,								//Interface Sub Class
	0x00,								//Interface Protocol
	0x00								//Index of interface string desriptor


};

⌨️ 快捷键说明

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