📄 prd.h
字号:
/*
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -