📄 _csl_prevgetattrs.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
* provided
* ==========================================================================
*/
/** @file _csl_prevGetAttrs.c
*
* @brief File for internal CSL API @a _CSL_prevGetAttrs()
*
* Description
* - The @a _CSL_emifGetAttrs() function definition
*
* @date 20th October, 2004
* @author Vignesh LA
*/
#include <csl_prev.h>
#pragma CODE_SECTION (_CSL_prevGetAttrs, ".text:csl_section:init");
/** @brief Gets the unique identifier and resource allocation mask
* specified for the PREV module. This is a CSL internal function.
*
*/
void _CSL_prevGetAttrs(
/* instance number of PREV */
CSL_PrevNum prevNum,
/*Pointer to the object that holds reference to the
* instance of MS requested after the call */
CSL_PrevHandle hPrev
)
{
/* get the EMIF base address into the handle */
hPrev->regs = (CSL_PrevRegsOvly) _CSL_prevGetBaseAddr(prevNum);
switch (prevNum) {
case CSL_PREV_0:
/* get the PREV unique identifier & resource
* allocation mask into the handle */
hPrev->xio = CSL_PREV_0_XIO;
hPrev->uid = CSL_PREV_0_UID;
break;
}
/* get the PREV instance number into the handle */
hPrev->perNum = prevNum;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -