⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 i_hwinit.c

📁 Freescale ARM11系列CPU MX31的WINCE 5.0下的BSP
💻 C
字号:
/*---------------------------------------------------------------------------
* Copyright (C) 2005-2006, Freescale Semiconductor, Inc. All Rights Reserved.
* THIS SOURCE CODE, AND ITS USE AND DISTRIBUTION, IS SUBJECT TO THE TERMS
* AND CONDITIONS OF THE APPLICABLE LICENSE AGREEMENT 
*--------------------------------------------------------------------------*/


//
//  File:  i_hwinit.c
//  This file is linked to hwinit.c in the USBH Common
//
//

#define USB_HOST_MODE 1             // OTG high speed
#include <..\common\hwinit.c>

#ifdef DEBUG
//-----------------------------------------------------------------------------
//
//  Function: GetUSBPortType
//  This function is to return the USB port in string format.
//
//  Parameters:
//     NULL
//     
//  Returns:
//     Pointer to the USB Port in string format
//
//-----------------------------------------------------------------------------
const TCHAR *GetUSBPortType(void)
{
    static const TCHAR* cszDeviceType = TEXT("OTG High Speed");
    return cszDeviceType;    
}
#endif

//-----------------------------------------------------------------------------
//
//  Function: BSPGetUSBControllerType
//
//  This function is to return the USB Core Controller type in WORD format.
//  This is called by CSP public code when accessing the type of controller it
//  is using.
//
//  Parameters:
//     NULL
//     
//  Returns:
//     USB_SEL_OTG
//
//-----------------------------------------------------------------------------

WORD BSPGetUSBControllerType(void)
{
    return USB_SEL_OTG;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -