pxa25xufnlib.cpp

来自「pxa25x library for windows ce」· C++ 代码 · 共 91 行

CPP
91
字号
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
#include <_pxa255_ufnlib.h>

// This is just a stub version of the library.

DWORD Pxa25xLibInit(
    LPCTSTR pszActiveKey,
    PVOID *ppvLibContext
    ) 
{
    ASSERT(pszActiveKey);
    PREFAST_ASSERT(ppvLibContext);
    DEBUGMSG(ZONE_INIT, (TEXT("Pxa25x::UsbFn: Using standard library\r\n")));
    *ppvLibContext = NULL;
    return ERROR_SUCCESS;
}


DWORD Pxa25xLibStart(
    PVOID pvLibContext
    )
{
    return ERROR_SUCCESS;
}


VOID Pxa25xLibStop(
    PVOID pvLibContext
    )
{
}


VOID Pxa25xLibDeinit(
    PVOID pvLibContext
    )
{
}


ATTACH_DETACH_INTERRUPT Pxa25xLibCheckAttachDetach(
    PVOID pvLibContext
    )
{
    return ADI_NONE;
}


VOID Pxa25xLibClearAttachDetach(
    PVOID pvLibContext,
    ATTACH_DETACH_INTERRUPT adi
    )
{
    ASSERT(IS_VALID_ATTACH_DETACH_INTERRUPT(adi));
    ASSERT(adi != ADI_NONE);
    
    // Place any steps necessary to clear Bus Attach Intertupts here.
    
    // Nothing to do. Resetting this interrupt is handled inside the ISR
    // itself. See intxsc1.c in platform dir.
}

VOID Pxa25xLibPowerDown(
    PVOID pvLibContext
    )
{ ;
}

VOID Pxa25xLibPowerUp(
    PVOID pvLibContext
    )
{ ;
}

VOID Pxa25xLibSetPowerState(
    PVOID pvLibContext,
    CEDEVICE_POWER_STATE    cpsNew
    )
{ ;
}

⌨️ 快捷键说明

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