csl_pscclose.c
来自「TI达芬奇dm644x各硬件模块测试代码」· C语言 代码 · 共 54 行
C
54 行
/* ==========================================================================
* Copyright (c) Texas Instruments Inc , 2005
*
* Use of this software is controlled by the terms and conditions found
* in the license agreement under which this software has been supplied
* provided
* ==========================================================================
*/
/** @file csl_pscClose.c
*
* @brief File for functional layer of CSL API @a CSL_pscClose()
*
* Description
* - The @a CSL_pscClose() function definition & it's associated functions
*
* @date 5-June-2005
* @author Lawrence Ronk
*/
#include <csl_psc.h>
#pragma CODE_SECTION (CSL_pscClose, ".text:csl_section:psc");
/**
\brief Close PSC module
\param hPsc Pointer to the object that holds reference to the instance
of PSC requested
\return if success, \c CSL_SOK, else error code
\see
*/
CSL_Status CSL_pscClose ( CSL_PscHandle hPsc ) {
CSL_Status status;
if (hPsc != NULL) {
hPsc->regs = (CSL_PscRegsOvly)NULL;
hPsc->perNum = (CSL_InstNum)-1;
status = CSL_SOK;
}
else {
status = CSL_ESYS_BADHANDLE;
}
return status;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?