_csl_reszgetattrs.c
来自「TI达芬奇dm644x各硬件模块测试代码」· C语言 代码 · 共 56 行
C
56 行
/* ==========================================================================
* Copyright (c) Texas Instruments Inc , 2004
*
* Use of this software is controlled by the terms and conditions found
* in the license agreement under which this software has been supplied
* priovided
* ==========================================================================
*/
/** @file _csl_reszGetAttrs.c
*
* @brief File for internal CSL API @a _CSL_reszGetAttrs()
*
* Description
* - The @a _CSL_reszGetAttrs() function definition
*
* Modification 1
* - Created on: 10/24/2004
* - Reason: created the sources
*
* @date 24th Oct, 2004
* @author Sandeep Tiwari
*/
#include <csl_resz.h>
#include <csl_resId.h>
#pragma CODE_SECTION (_CSL_reszGetAttrs, ".text:csl_section:init");
/** @brief Gets the unique identifier and resource allocation mask
* specified for the vfoc module. This is a CSL internal function.
*
*/
void _CSL_reszGetAttrs(
/* instance number of resz */
CSL_ReszNum reszNum,
/*Pointer to the object that holds reference to the
* instance of resz requested after the call */
CSL_ReszHandle hResz
)
{
/* get the resz base address into the handle */
hResz->regs = (CSL_ReszRegsOvly)_CSL_reszGetBaseAddr(reszNum);
switch (reszNum) {
case CSL_RESZ_0:
/* get the resz unique identifier & resource
* allocation mask into the handle */
hResz->xio = CSL_RESZ_0_XIO;
hResz->uid = CSL_RESZ_0_UID;
break;
}
/* get the resz instance number into the handle */
hResz->perNum = reszNum;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?