亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? main.c

?? 這是C6416片上支持庫(CSL)的所有例程
?? C
?? 第 1 頁 / 共 2 頁
字號(hào):
/****************************************************************************\
 *           Copyright (C) 2001 Texas Instruments Incorporated.             *
 *                           All Rights Reserved                            *
 ****************************************************************************
 * VcpProcessing_BIOS.pjt                                                   *
 *                                                                          *
 
 * The purpose of this project is to demonstrate how to use the Viterbi Co- *
 * Processor (VCP) using the Chip Support Library (CSL) and BIOS modules.   *
 *                                                                          *
 * User data, residing in the tcpuserx.asm files included with this project *
 * is processed through the VCP. The VCP is configured based on the channel *
 * parameters set in vcp_parameters.h. This software handles the VCP, EDMA, *
 * and interrupt configuration necessary to process each user channel.      *
 * LOG module generates messages via a specific window :                    *
 *                    DSP/BIOS -> Message Log                               *
 * Run Project in Real Time Mode - Debug ->Real-Time Mode                   *  
 * Set Breakpoint at line 144   SEM_post(&semVcpFree);                      *                                                    *
 *                                                                          *
\****************************************************************************/

#include <csl.h>
#include <csl_irq.h>
#include <csl_vcp.h>
#include <csl_edma.h>

/* Include files for DSP/BIOS */
#include <std.h>
#include <log.h>
#include <swi.h>
#include <sem.h>
#include <clk.h>
#include <sts.h>          
#include <rtdx.h>  
#include <tsk.h>   
#include <mem.h>
#include <hwi.h>

#include <VcpProcessingcfg.h>

/* Other includes */
#include "vcp_parameters.h"

/* Prototype declarations */
void intConfig(void);
Int32 checkResults(Uint32 *actual, Uint32 *reference, Uint32 size);
void hwiEdma(void);
void submitEdma(VCP_UserData *userData, VCP_Params *vcpParameters,
                Uint32 **decisions, Uint32 **outParms,
                VCP_ConfigIc **configIc, Uint32 *numDec);

/* Global variable declarations */
extern Uint32 ISRAM;             /* Memory space used for buffer allocation */

/* Global variable declarations */
int tcc = -1;                    /* Transfer completion code used by EDMA   */
EDMA_Handle hEdmaRevt,           /* EDMA channel used for Hard Decisions    */
            hEdmaXevt,           /* EDMA channel used for IC Values         */
            hEdmaBrMet,          /* EDMA channel used for Branch Metrics    */
                                 /*      data                               */
            hEdmaOutPar,         /* EDMA channel used for Output Parameters */
            hEdmaNull;           /* EDMA NULL channel used for termination  */


/****************************************************************************\
 * main function                                                            *
\****************************************************************************/
void
main(void)
{
    /* Announce beginning of program */
    LOG_printf(&trace, "DSP/BIOS program started");

    /* Initialize the EDMA interrupt */
    intConfig();
    
    /* "Free" the VCP to the system */
    SEM_post(&semVcpFree);
    
    /* Following main() the system will drop into the task manager */
    return;

} /* end main() */


/****************************************************************************\
 * tskUserChannel: The user channel task. This is the task software used by *
 * each of the user channels to obtain the VCP, establish memory buffers,   *
 * program the EDMA, and process the user channel data.                     *
\****************************************************************************/
void
tskUserChannel(Uint32 channelNum)
{
volatile Uint32 error = 0;
Uint32 *decisions, *outParms, numDec;
VCP_ConfigIc *configIc;
Uint32 iteration = 0;

  while(1){                /* Repeat processing of the user channel forever */

    /* Announce beginning of channel processing */
    LOG_printf(&trace, "Starting Channel %d. Iteration %d",
               channelNum, iteration++);
    
    /* Wait for VCP coprocessor to be available */   
    LOG_printf(&trace, "Channel %d waiting for VCP", channelNum);
    SEM_pend(&semVcpFree, SYS_FOREVER);       /* Pend on available hardware */
    SEM_reset(&semVcpFree, 0);                /* Lock out other tasks       */
    
    /* Program EDMA to service User Channel */
    submitEdma(userData[channelNum], &vcpParameters[channelNum], &decisions,
                                               &outParms, &configIc, &numDec);

    /* Announce that the VCP is being used to process the channel data      */
    LOG_printf(&trace, "Channel %d using the VCP", channelNum);
    
    /* Start the VCP to begin the EDMA transfers */
    VCP_start();

    /* Wait on viterbi decode to complete. The task pends on a semaphore  */
    /* that is set in the EDMA interrupt service routine.                 */
    LOG_printf(&trace, "Channel %d awaiting VCP completion", channelNum);
    SEM_pend(&semVcpDone, SYS_FOREVER);     /* Pend on completion semaphore */
    SEM_reset(&semVcpDone, 0);              /* Clear the semaphore          */
    LOG_printf(&trace, "Channel %d decode complete", channelNum);
          
    /* Verify the coprocessing results by comparing received decisions and*/
    /* output parameters to programmed reference data. A value of "0"     */
    /* indicates that no error was present. A non-zero value indicates an */
    /* error occurred.                                                    */
    error = checkResults(decisions, referenceDec[channelNum],
                           vcpParameters[channelNum].frameLen);
    /* Report the error status */
    LOG_printf(&trace, "User channel %d completed with %d error(s)",
               channelNum, error);
    
    /* Free memory spaces back to the system */
    MEM_free(ISRAM, decisions, numDec     * sizeof(Uint32));
    MEM_free(ISRAM, outParms , VCP_NUM_OP * sizeof(Uint32));
    MEM_free(ISRAM, configIc , VCP_NUM_IC * sizeof(Uint32));
    
    /* Reset VCP available semaphore to allow another channel to use it */
    SEM_post(&semVcpFree);
  } /* end while(1) */
    
} /* end main */ 


/****************************************************************************\
 * intConfig: Configure the CPU interrupt controller to receive interrupts  *
 * from the EDMA.                                                           *
\****************************************************************************/
void
intConfig(void)
{
    IRQ_enable(IRQ_EVT_EDMAINT);          /* Enable EDMA -> CPU interrupt   */
    IRQ_nmiEnable();                      /* Enable non-maskable interrupt  */
    IRQ_globalEnable();                   /* Globally enable all interrupts */

} /* end intConfig() */


/****************************************************************************\
 * checkResults: Verify that the hard decisions and output parameters sent  *
 * by the VCP are correct. If the hard decisions are not correct, the index *
 * of the first incorrect value is returned. If the output parameters (the  *
 * number of iterations) is not correct, then a -1 is returned. If all      *
 * values are correct then a 0 is returned.                                 *
\****************************************************************************/
Int32
checkResults(Uint32 *actual ,Uint32 *reference, Uint32 size) 
{
Uint32 i;
Uint32 mismatch=0;
Uint32 numWords = size>>5;
    
    /* Directly compare received values to reference values for 32 valid    */
    /* bits.                                                                */
    for (i=0; i<numWords; i++) {
      if (actual[i]!=reference[i]) {
        mismatch++;
        break;
      } /* end if actual != reference */
    } /* end for i */
    
    /* Compare last halfword. */
    if ((!mismatch) && (size & 1)) {    
      if ((short)actual[i] != (short)reference[i]) mismatch++;
    } /* end if */

    if (mismatch) return(i+1); /* return index for 1st error that occured. */
                               /* Index will range from 1 to framelength   */
    else return(0);            /* no error */
    
} /* end checkResults() */


/****************************************************************************\
 * edmaIsr: EDMA interrupt service routine. The vcpDone flag is set to one  *

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩亚洲欧美一区二区三区| 日本一区二区三区免费乱视频| 国产一区二区三区视频在线播放| 午夜电影久久久| 亚洲午夜私人影院| 中文字幕中文字幕在线一区| 国产精品免费视频网站| 国产精品理论片| 日产欧产美韩系列久久99| 亚洲午夜av在线| 午夜伦理一区二区| 精品一区二区三区香蕉蜜桃| 麻豆成人久久精品二区三区红| 美脚の诱脚舐め脚责91| 久久99精品久久久| 国产美女主播视频一区| 成人黄色小视频在线观看| 成人va在线观看| 91久久香蕉国产日韩欧美9色| 欧美在线一二三四区| 91精品国产综合久久久久| 日韩欧美三级在线| 中文字幕高清一区| 亚洲狠狠丁香婷婷综合久久久| 亚洲电影一区二区| 久久成人精品无人区| 成人精品视频一区| 欧美日韩一区在线观看| 精品美女一区二区三区| 中文字幕精品一区二区三区精品| 中文幕一区二区三区久久蜜桃| 亚洲视频一区二区在线观看| 亚洲mv在线观看| 国产成人亚洲综合a∨婷婷图片| 99在线精品观看| 91精品国产91综合久久蜜臀| 中文字幕精品一区二区三区精品| 亚洲午夜影视影院在线观看| 国产在线看一区| 在线一区二区三区做爰视频网站| 日韩午夜激情视频| 亚洲你懂的在线视频| 国内精品久久久久影院一蜜桃| 91免费小视频| 欧美xingq一区二区| 一区二区欧美视频| 从欧美一区二区三区| 91精品视频网| 一区二区激情小说| 成人性生交大片免费| 日韩午夜在线播放| 亚洲国产cao| 99视频在线观看一区三区| 日韩欧美综合在线| 亚洲国产毛片aaaaa无费看| www.日韩在线| 欧美精品一区二区三区蜜桃| 亚洲不卡一区二区三区| 92国产精品观看| 日本一区二区三区视频视频| 精油按摩中文字幕久久| 91精品国产色综合久久ai换脸 | www国产亚洲精品久久麻豆| 亚洲一卡二卡三卡四卡| 国产电影一区在线| xvideos.蜜桃一区二区| 久久草av在线| 日韩一区二区中文字幕| 日本 国产 欧美色综合| 欧美人体做爰大胆视频| 亚洲图片欧美色图| 在线观看国产精品网站| 亚洲精品视频在线观看网站| 成人av影视在线观看| 国产欧美一二三区| 成人一级视频在线观看| 国产视频一区二区在线观看| 日韩电影在线观看一区| 亚洲一区中文日韩| 国产精品2024| 欧美xingq一区二区| 精品亚洲免费视频| 亚洲精品在线一区二区| 韩国成人在线视频| 久久精品视频一区| 粉嫩aⅴ一区二区三区四区| 国产午夜精品久久久久久免费视| www.亚洲激情.com| 国产精品第五页| 色呦呦国产精品| 亚洲二区在线视频| 91精品国产色综合久久| 麻豆精品视频在线| 91免费观看视频| 亚洲国产成人porn| 欧美电影影音先锋| 精油按摩中文字幕久久| 国产日韩欧美激情| 91网站黄www| 日本网站在线观看一区二区三区 | 1024精品合集| 欧美日韩在线三级| 韩国女主播一区二区三区| 国产精品美女久久久久久2018 | 免费高清视频精品| 国产亚洲综合在线| 在线观看亚洲专区| 蜜桃视频第一区免费观看| 久久精品一区二区三区四区| 色呦呦国产精品| 国产在线播放一区三区四| 中文字幕一区二区三区在线不卡| 欧美综合久久久| 国内不卡的二区三区中文字幕| 中文一区二区完整视频在线观看| 欧美亚洲国产一区二区三区| 精品中文字幕一区二区| 亚洲精品国产a| 久久蜜桃av一区二区天堂 | 亚洲国产日韩一级| 国产偷国产偷精品高清尤物| 在线观看欧美日本| 成人免费视频网站在线观看| 天天色天天爱天天射综合| 精品成人私密视频| 欧美色精品天天在线观看视频| 韩日av一区二区| 午夜免费欧美电影| 最新高清无码专区| 国产色爱av资源综合区| 欧美一级片在线看| 在线观看网站黄不卡| 国产精品一区二区黑丝 | 欧美高清精品3d| 色综合天天综合网天天狠天天| 国产伦理精品不卡| 麻豆精品国产传媒mv男同| 亚洲午夜久久久久久久久电影网| 国产日韩欧美综合一区| 精品欧美乱码久久久久久1区2区| 91福利在线播放| 99精品久久只有精品| 国产成人福利片| 国产精一区二区三区| 久久91精品国产91久久小草| 日韩专区欧美专区| 日日摸夜夜添夜夜添国产精品 | 亚洲乱码国产乱码精品精的特点| 日韩一级二级三级精品视频| 欧美专区日韩专区| 成人免费毛片a| 床上的激情91.| 粉嫩13p一区二区三区| 国产69精品一区二区亚洲孕妇| 麻豆精品久久精品色综合| 蜜桃在线一区二区三区| 蜜桃在线一区二区三区| 久久国产日韩欧美精品| 美女性感视频久久| 狠狠色狠狠色合久久伊人| 久久精品噜噜噜成人88aⅴ| 理论电影国产精品| 激情综合色综合久久| 韩国成人福利片在线播放| 久久超碰97人人做人人爱| 国产麻豆91精品| 成人黄动漫网站免费app| 99免费精品视频| 欧美在线观看视频一区二区三区| 色伊人久久综合中文字幕| 欧美主播一区二区三区美女| 欧美乱妇23p| 精品国产乱码久久久久久1区2区| 日韩午夜在线观看| 中文成人av在线| 一区二区三区日韩欧美| 日本不卡高清视频| 国产成人久久精品77777最新版本| 成人黄色电影在线| 欧美日韩专区在线| 欧美精品一区二| 亚洲欧美在线aaa| 日韩综合一区二区| 国产91精品露脸国语对白| 欧美婷婷六月丁香综合色| 日韩欧美精品在线视频| 国产精品国产三级国产aⅴ中文| 亚洲一区二区三区三| 激情综合网激情| 色哟哟国产精品| 久久久精品国产99久久精品芒果| 综合网在线视频| 精品一区二区在线视频| 色婷婷久久久亚洲一区二区三区| 日韩一区二区电影| 亚洲精品免费在线| 国产不卡在线视频| 欧美一区二区三区在线| 最新国产成人在线观看| 国产一区啦啦啦在线观看|