📄 timedelays.c
字号:
/******************************************************************************
**
** 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: timedelays.c
**
** PURPOSE: This file contains time delays functions.
**
** LAST MODIFIED: $Modtime: 7/17/03 1:01p $
******************************************************************************/
/*
*******************************************************************************
* HEADER FILES
*******************************************************************************
*/
#include "systypes.h"
#include "XsOstDCS.h"
#include "XsOst.h"
/*
*******************************************************************************
*
* FUNCTION: DM_WaitUs
*
* DESCRIPTION: Calls OS Timer function to spin wait.
*
* INPUT PARAMETERS: int - number of microseconds
*
* RETURNS: Void
*
* GLOBAL EFFECTS: None
*
* ASSUMPTIONS: None
*
* CALLS: OSTWaitUs
*
* CALLED BY: Anyone
*
* PROTOTYPE: void DM_WaitUs(int usVal);
*
*******************************************************************************
*/
void DM_WaitUs(int usVal)
{
OSTWaitUs((UINT32) usVal);
}
/*
*******************************************************************************
*
* FUNCTION: DM_WaitMs
*
* DESCRIPTION: Calls OS Timer function to spin wait.
*
* INPUT PARAMETERS: int - number of Milliseconds
*
* RETURNS: Void
*
* GLOBAL EFFECTS: None
*
* ASSUMPTIONS: None
*
* CALLS: OSTWaitMs
*
* CALLED BY: Anyone
*
* PROTOTYPE: void DM_WaitMs(int msVal);
*
*******************************************************************************
*/
void DM_WaitMs(int msVal)
{
OSTWaitMs((UINT32)msVal);
}
/*
*******************************************************************************
*
* FUNCTION: DM_WaitS
*
* DESCRIPTION: Calls OS Timer function to spin wait.
*
* INPUT PARAMETERS: int - number of seconds
*
* RETURNS: Void
*
* GLOBAL EFFECTS: None
*
* ASSUMPTIONS: None
*
* CALLS: OSTWaitS
*
* CALLED BY: Anyone
*
* PROTOTYPE: void DM_WaitS(int sVal);
*
*******************************************************************************
*/
void DM_WaitS(int sVal)
{
OSTWaitS((UINT32)sVal);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -