usb.c
来自「外挂硬盘和FLASH的MP3播放器解决方案」· C语言 代码 · 共 32 行
C
32 行
#define _USB_DEFINE
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "..\Inc\AT8xC51SND1.h"
#include "..\Inc\GLOBAL.h"
#include "..\Inc\CHIPSOURCE.h"
#include "..\Inc\COMMON.h"
#include "..\Inc\IDEIO.h"
#include "USB.h"
code void (*StandardRequest[])(void) = //标准请求调用表
{
USBGetStatus, //0x00 Get_Status
USBClearFeature, //0x01 Clear_Feature
USBReserved, //0x02 保留
USBReserved, //0x03 Set_Feature 不支持
USBReserved, //0x04 保留
USBSetAddress, //0x05 Set_Address
USBGetDescriptor, //0x06 Get_Descriptor
USBReserved, //0x07 Set_Descriptor 不支持
USBGetConfiguration, //0x08 Get_Configuration
USBSetConfiguration, //0x09 Set_Configuration
USBGetInterface, //0x0a Get_Interface
USBSetInterface, //0x0b Set_Interface
USBReserved, //0x0c Synch_Frame //不支持
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?