⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _csl_reszgetattrs.c

📁 TI达芬奇dm644x各硬件模块测试代码
💻 C
字号:
/*   ==========================================================================
 *   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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -