usb_init.h
来自「STR912的usb例程」· C头文件 代码 · 共 45 行
H
45 行
/******************** (C) COPYRIGHT 2006 STMicroelectronics ********************
* File Name : usb_init.h
* Author : MCD Application Team
* Date First Issued : 2/6/2006
* Description : initialization routines & global variables
********************************************************************************
* History:
* 2/6/2006: Beta Version V0.1
********************************************************************************
* THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH
* CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS
* A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT
* OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT
* OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION
* CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*******************************************************************************/
/* Save token on endpoint 0 */
extern BYTE EP0_Token ;
/* Interrupt flags.*/
/* Each bit represents an interrupt is coming to that endpoint */
extern WORD Token_Event ;
/* The number of current endpoint, it will be used to specify an endpoint */
extern BYTE EPindex;
/* Points to the DEVICE_INFO structure of current device */
/* The purpose of this register is to speed up the execution */
extern DEVICE_INFO* pInformation;
/* Points to the DEVICE_PROP structure of current device */
/* The purpose of this register is to speed up the execution */
extern DEVICE_PROP* pProperty;
/* Temporary save the state of Rx & Tx status. */
/* Whenever the Rx or Tx state is changed, its value is saved */
/* in this variable first and will be set to the EPRB or EPRA */
/* at the end of interrupt process */
extern WORD SaveState ;
extern WORD wInterrupt_Mask;
void USB_Init(void);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?