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

📄 xsostapi.h

📁 优龙YLP270开发板 光盘自带的BIOS和实验例程源码 强烈推荐
💻 H
字号:
/******************************************************************************
**
**  COPYRIGHT (C) 2000, 2001 Intel Corporation.
**
**  This software as well as the software described in it is furnished under 
**  license and may only be used or copied in accordance with the terms of the 
**  license. The information in this file is furnished for informational use 
**  only, is subject to change without notice, and should not be construed as 
**  a commitment by Intel Corporation. Intel Corporation assumes no 
**  responsibility or liability for any errors or inaccuracies that may appear 
**  in this document or any software that may be provided in association with 
**  this document. 
**  Except as permitted by such license, no part of this document may be 
**  reproduced, stored in a retrieval system, or transmitted in any form or by 
**  any means without the express written consent of Intel Corporation. 
**
**  FILENAME:       XsOstApi.h
**
**  PURPOSE:        Contains the exposed interface to the Operating System 
**                  Timer Functions.
**
**  LAST MODIFIED:  $Modtime: 7/17/03 1:01p $
******************************************************************************/
#ifndef _xsostapi_h_
#define _xsostapi_h_


/*
************************************************************************************
* FUNCTION PROTOTYPES 
************************************************************************************
*/
VOID XsOstSWInitX (OSTContextT *ctxP);
VOID XsOstSWInit(VOID);

extern UINT32 OSTWaitUs (UINT32 usecs);
extern UINT32 OSTWaitMs(UINT32 msecs);
extern UINT32 OSTWaitS(UINT32 secs);
extern UINT32 XsOstGetFreeChannel(void);
extern UINT32 XsOstEnableInterrupt(UINT channel);
extern UINT32 XsOstDisableInterrupt(UINT channel);
extern UINT32 XsOstSetMatchRegister (UINT reg, UINT32 value);
extern UINT32 XsOstSetupTimer(OSTCallBackFnPT callback, PVOID param);
extern UINT32 XsOstCallTimer(UINT32 msecs, OSTCallBackFnPT callback, PVOID param);
extern void XsOstFreeChannel(UINT32 channel);
extern void XsOstInterruptHandler(void);
extern UINT32 XsOstCleanupTimer(void);
extern UINT32 XsOstComputeTicks(UINT32 usecs);

extern void XsOstOnceTest(PVOID, PCHAR);
extern void XsOstMultipleTest(PVOID, PCHAR);
extern void XsOstContinuousTest(PVOID, PCHAR);

#endif //_xsostapi_h_ 

⌨️ 快捷键说明

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