_csl_ccdcsetsdroffset.c

来自「ccs下对dm6446的测试程序」· C语言 代码 · 共 39 行

C
39
字号
/** @file _csl_ccdcSetSdrOffset.c
 *
 *  @brief    File for functional layer of CSL API @a CSL_ccdcSetSdrOffset()
 *
 *  Description
 *    - The @a CSL_ccdcSetSdrOffset() function definition & it's associated
 *      functions
 *
 *  @date 4th May, 2005
 *  @author Jesse Villarreal.
 */

#include <csl_ccdc_aux.h>

#pragma CODE_SECTION (CSL_ccdcSetSdrOffset, ".text:csl_section:ccdc");

/** @brief Sets the sdram output line offset
 *	
 */
CSL_Status  CSL_ccdcSetSdrOffset(
    /** Pointer to the object that holds reference to the
     *  instance of CCDC requested after the call 
	 */
    CSL_CcdcHandle                         hCcdc,
    /** Sets the sdram output line offset
	 */
    Uint16 								   offset
	){

	/*  Setup the configuration parameters in the Line offset for sdram output Register */
	hCcdc->regs->HSIZE_OFF = CSL_FMK(CCDC_HSIZE_OFF_LNOFST, offset);

	if(offset%32)
		return (CSL_ESYS_INVPARAMS);
	else
		return (CSL_SOK);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?