📄 usb_extern.h
字号:
/*********************************************************************
(c) copyright Freescale Semiconductor Hong Kong Ltd 2004
ALL RIGHTS RESERVED
*********************************************************************
USB Driver Module for S12 MCUs
*********************************************************************
File: usb_extern.c
Description: Prototypes of global variable of USB Driver
Date: Jun. 2002
Author: Keny Chen
********************************************************************/
#include "FreescaleDef.h" // get my Constant & Type definitions.
//
// This is the header file of all the global variables for modules
// to include in. All the global variables allocation is done in
// file <usb_Data.c>.
//
#ifndef _H_USB_EXTRN_ // To avoid multiple defining
#define _H_USB_EXTRN_ // start of external variables definition
// --------------------------------------------------------------------
#pragma DATA_SEG DEFAULT
// *********************************************************************
//
// Global Variables of USB Driver
//
// *********************************************************************
//
#ifndef _USB_G_DECL_
#define _USB_G_DECL_ extern
#endif
_USB_G_DECL_ muint8 EP_Resource[2][7]; // Endpoint buffer location Table [Configuration][Endpoint]
_USB_G_DECL_ muint8 gUSBFullSpeed; // 0=HS, 1=FS
_USB_G_DECL_ muint16 gUSBPacketSize; //
_USB_G_DECL_ muint16 gUSBDebug;
// code is placed in the main code area.
#pragma CODE_SEG DEFAULT
//#pragma CODE_SEG CodeForceToPseudo_ROM2 //for testing
// *********************************************************************
//
// EXPORTED FUNCTIONS FOR OTHER MODULES
//
// (Can be called by other modules like Application, Drivers...etc)
//
// *********************************************************************
#endif _H_USB_EXTRN_ // end of my external variables definition
//
// The end of file usb_extern.h
// *********************************************************************************
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -