csl_vpsshwsetup.c

来自「TI达芬奇dm644x各硬件模块测试代码」· C语言 代码 · 共 47 行

C
47
字号
/*   ==========================================================================
 *   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_vpssHwSetup.c
 *
 *  @brief    File for functional layer of CSL API @a CSL_vpssHwSetup()
 *
 *  Description
 *   - The @a CSL_vpssHwSetup() function definition & it's associated functions
 *
 *  @date 25th October, 2004
 *  @author Vignesh LA
 */

#include <csl_vpss.h>

#pragma CODE_SECTION (CSL_vpssHwSetup, ".text:csl_section:vpss");

/**

    \brief Setup VPSS module for operation

    \param hVpss Pointer to the object that holds reference to the instance
                 of VPSS requested
    \param setup  Pointer to setup structure which contains the information 
                  to program VPSS to a useful state		  
    \return if success, \c CSL_SOK, else error code 

    \see 
*/

CSL_Status CSL_vpssHwSetup ( CSL_VpssHandle hVpss,
                             CSL_VpssHwSetup *setup ) {
                             
        CSL_FINS(hVpss->regs->PCR, VPSS_PCR_DMA_PRI, setup->dmaPriority);
        CSL_FINS(hVpss->regs->SDR_REQ_EXP, VPSS_SDR_REQ_EXP_PRV_EXP, setup->prevRdExp);
        CSL_FINS(hVpss->regs->SDR_REQ_EXP, VPSS_SDR_REQ_EXP_RESZ_EXP, (setup->reszRdExp>>5));
        CSL_FINS(hVpss->regs->SDR_REQ_EXP, VPSS_SDR_REQ_EXP_HIST_EXP, setup->histRdExp);

  return CSL_SOK;
}

⌨️ 快捷键说明

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