📄 usb_global.h
字号:
#ifndef USB_GLOBAL_INCLUDE /* To prevent inadvertently including a header twice */#define USB_GLOBAL_INCLUDE #ifdef __cplusplus /* allow #include in a C++ file (only put this in .h files) */extern "C" {#endif/************** HEADER FILE INCLUDES ******************************************/#include "su_basictypes.h"/******************************************************************************//* Copyright 2008 Freescale Semiconductor, Inc. All Rights Reserved.This file contains copyrighted material. Use of this file isrestricted by the provisions of a Freescale Software LicenseAgreement, which has either been electronically accepted byyou or has been expressly executed between the parties. DESCRIPTION: This file contains the extern references and typedefs associated with all global variables shared by other files. ************** REVISION HISTORY ***********************************************//************** CONSTANTS *****************************************************//* Default device address */#define USB_DEFAULT_ADDR 0x00#ifndef NULL#define NULL 0#endif/************** STRUCTURES, ENUMS, AND TYPEDEFS *******************************/typedef enum { USB_DEFAULT_STATE, USB_ADDRESSED_STATE, USB_CONFIGURED_STATE, USB_SUSPENDED_STATE } USB_DEVICE_STATE_T;/************** FUNCTION PROTOTYPES *******************************************//************** CLASS DEFINITIONS *********************************************//************** GLOBAL VARIABLES **********************************************/#ifdef __cplusplus /* allow #include in a C++ file (only put this in .h files) */}#endif#endif /* end of - prevent inadvertently including a header file twice */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -