⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 csl_vpsshwsetup.c

📁 ccs下对dm6446的测试程序
💻 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
 *   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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -