Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
usb_init.h
00001 /******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** 00002 * File Name : usb_init.h 00003 * Author : MCD Application Team 00004 * Version : V3.2.1 00005 * Date : 07/05/2010 00006 * Description : Initialization routines & global variables 00007 ******************************************************************************** 00008 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 00009 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. 00010 * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, 00011 * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE 00012 * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING 00013 * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 00014 *******************************************************************************/ 00015 00016 /* Define to prevent recursive inclusion -------------------------------------*/ 00017 #ifndef __USB_INIT_H 00018 #define __USB_INIT_H 00019 00020 /* Includes ------------------------------------------------------------------*/ 00021 /* Exported types ------------------------------------------------------------*/ 00022 /* Exported constants --------------------------------------------------------*/ 00023 /* Exported macro ------------------------------------------------------------*/ 00024 /* Exported functions ------------------------------------------------------- */ 00025 void USB_Init(void); 00026 00027 /* External variables --------------------------------------------------------*/ 00028 /* The number of current endpoint, it will be used to specify an endpoint */ 00029 extern uint8_t EPindex; 00030 /* The number of current device, it is an index to the Device_Table */ 00031 /*extern uint8_t Device_no; */ 00032 /* Points to the DEVICE_INFO structure of current device */ 00033 /* The purpose of this register is to speed up the execution */ 00034 extern DEVICE_INFO* pInformation; 00035 /* Points to the DEVICE_PROP structure of current device */ 00036 /* The purpose of this register is to speed up the execution */ 00037 extern DEVICE_PROP* pProperty; 00038 /* Temporary save the state of Rx & Tx status. */ 00039 /* Whenever the Rx or Tx state is changed, its value is saved */ 00040 /* in this variable first and will be set to the EPRB or EPRA */ 00041 /* at the end of interrupt process */ 00042 extern USER_STANDARD_REQUESTS *pUser_Standard_Requests; 00043 00044 extern uint16_t SaveState ; 00045 extern uint16_t wInterrupt_Mask; 00046 00047 #endif /* __USB_INIT_H */ 00048 00049 /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
Generated on Tue Jul 12 2022 20:45:32 by
 1.7.2
 1.7.2