_csl_resource.h

来自「TI达芬奇dm644x各硬件模块测试代码」· C头文件 代码 · 共 71 行

H
71
字号
/*****************************************************\
 *  Copyright 2003, Texas Instruments Incorporated.  *
 *  All rights reserved.                             *
 *  Restricted rights to use, duplicate or disclose  *
 *  this   code   are  granted   through  contract.  *
 *                                                   *
 * "@(#) PSP/CSL  3.0.0.0  (2003-09-30)              *
\*****************************************************/

#ifndef __CSL_RESOURCE_H_
#define __CSL_RESOURCE_H_

#include <csl_types.h>
#include <csl.h>

typedef Uint16      CSL_CriticalSectionState;

CSL_CriticalSectionState
    _CSL_beginCriticalSection (
        void
);

void
    _CSL_endCriticalSection (
        CSL_CriticalSectionState
);

CSL_ResHandle
    _CSL_certifyOpen (
        CSL_ResHandle   rHandle,
        CSL_Status *    st
);

CSL_Status
    _CSL_certifyClose (
        CSL_ResHandle   rHandle
);

CSL_Test
    _CSL_resourceTest (
        CSL_Uid         resId
);

CSL_Test
    _CSL_xioTest (
        CSL_Xio         xio
);

void
    _CSL_xioSet (
        CSL_Xio         xio
);

void
    _CSL_resourceSet (
        CSL_Uid         resId
);

void
    _CSL_resourceClear (
        CSL_Uid         resId
);

void
    _CSL_xioClear (
        CSL_Xio         xio
);

#endif /* __CSL_RESOURCE_H_ */

⌨️ 快捷键说明

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