i_hwinit.c

来自「freescale i.mx31 BSP CE5.0全部源码」· C语言 代码 · 共 53 行

C
53
字号
/*------------------------------------------------------------------------------
 * Copyright (C) 2005-2006, Freescale Semiconductor, Inc. All Rights Reserved.
 * THIS SOURCE CODE IS CONFIDENTIAL AND PROPRIETARY AND MAY NOT
 * BE USED OR DISTRIBUTED WITHOUT THE WRITTEN PERMISSION OF
 * Freescale Semiconductor, Inc.
 *----------------------------------------------------------------------------*/ 
//
//  File:  i_hwinit.c
//  This file is linked to hwinit.c in the USBH Common
//
//
#define USB_HOST_MODE 4   // Host 2 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("H2 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_H2
//
//-----------------------------------------------------------------------------
WORD BSPGetUSBControllerType(void)
{
    return USB_SEL_H2;
}

⌨️ 快捷键说明

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