usb_extern.h
来自「微机+CF卡+SD卡+USB的开发示例希望大家能用」· C头文件 代码 · 共 72 行
H
72 行
/*********************************************************************
(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 + =
减小字号Ctrl + -
显示快捷键?