📄 usb.h
字号:
#ifndef _ATLAS_USB_H_
#define _ATLAS_USB_H_
//follwing are from usb spec
#define USB_GET_STATUS 0x00
#define USB_CLEAR_FEATURE 0x01
#define USB_SET_FEATURE 0x03
#define USB_SET_ADDR 0x05
#define USB_GET_DESCRIPTOR 0x06
#define USB_SET_DESCRIPTOR 0x07
#define USB_GET_CONFIG 0x08
#define USB_SET_CONFIG 0x09
#define USB_GET_INTERFACE 0x0a
#define USB_SET_INTERFACE 0x0b
#define USB_SYNCH_FRAME 0x0c
#define USB_GET_REPORT 0x01
#define USB_GET_IDLE 0x02
#define USB_SET_REPORT 0x09
#define USB_SET_IDLE 0x0a
void USB_Init(void);
void USB_Process(void);
void USB_OutputString(const char *p);
char * USB_GetInstruction(void);
#endif//#ifndef _ATLAS_USB_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -