prd.h

来自「SEED的VPM642测试程序-板级支持库」· C头文件 代码 · 共 52 行

H
52
字号
/*
 *  Copyright 2003 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  
 */
/* "@(#) DSP/BIOS 4.90.270 12-18-03 (barracuda-o04)" */
/*
 *  ======== prd.h ========
 *
 */

#ifndef PRD_
#define PRD_

#include <fxn.h>
#include <sts.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef struct PRD_Obj {
    Uns		status;
    Uns		kount;
    Uns		period;
    Uns		nticks;
    FXN_Obj	fxnobj;
    STS_Obj     *sts;
#if (defined(_54_) && defined(_FAR_MODE))
    Uns		pad;
#endif
} PRD_Obj;

typedef struct PRD_Obj *PRD_Handle;

extern Uns PRD_D_tick; /* low 16bits of PRD tick counter - used by SPOX */
		       /* SEM_pend() to record how long to pend for     */
		       /* acquiring semaphore before calling timeout    */

extern LgUns PRD_getticks(Void);
extern Void PRD_tick(Void);
extern Void PRD_start(PRD_Handle prd);
extern Void PRD_stop(PRD_Handle prd);

#ifdef __cplusplus
}
#endif /* extern "C" */

#endif	/* PRD_ */

⌨️ 快捷键说明

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