📄 _csl_prevsetreadaddr.c
字号:
/** @file _csl_prevSetReadAddr.c
*
* @brief File for functional layer of CSL API @a CSL_prevSetReadAddr()
*
* Description
* - The @a CSL_prevSetReadAddr() function definition & it's associated
* functions
*
* @date 20th October, 2004
* @author Vignesh LA.
*/
#include <csl_prev_aux.h>
#pragma CODE_SECTION (CSL_prevSetReadAddr, ".text:csl_section:prev");
/** @brief Sets the Read address
*/
CSL_Status CSL_prevSetReadAddr(
/** Pointer to the object that holds reference to the
* instance of PREV requested after the call
*/
CSL_PrevHandle hPrev,
/** Read address
*/
Uint32 *addr
){
/* Setup the configuration parameters in the Read address from SDRAM Register */
hPrev->regs->RSDR_ADDR = CSL_FMK(PREV_RSDR_ADDR_RADR, (Uint32)addr);
if(((Uint32)addr)%32)
return (CSL_ESYS_INVPARAMS);
else
return (CSL_SOK);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -