📄 _csl_ccdcsetsdraddr.c
字号:
/** @file _csl_ccdcSetSdrAddr.c
*
* @brief File for functional layer of CSL API @a CSL_ccdcSetSdrAddr()
*
* Description
* - The @a CSL_ccdcSetSdrAddr() function definition & it's associated
* functions
*
* @date 4th May, 2005
* @author Jesse Villarreal.
*/
#include <csl_ccdc_aux.h>
#pragma CODE_SECTION (CSL_ccdcSetSdrAddr, ".text:csl_section:ccdc");
/** @brief Sets the output address
*
*/
CSL_Status CSL_ccdcSetSdrAddr(
/** Pointer to the object that holds reference to the
* instance of CCDC requested after the call
*/
CSL_CcdcHandle hCcdc,
/** Sets the output address in SDRAM
*/
Uint32 *addr
){
/* Setup the configuration parameters in the write address to SDRAM Register */
hCcdc->regs->SDR_ADDR = CSL_FMK(CCDC_SDR_ADDR_SDR_ADDR, (Uint32)addr);
if(((Uint32)addr)%32)
return (CSL_ESYS_INVPARAMS);
else
return (CSL_SOK);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -