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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? main.c

?? evmDM642的經典例程(ccs),初學者必備
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*
 *  Copyright 2003 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  
 */
/* "@(#) DSP/BIOS 4.90.270 06-11-03 (barracuda-m10)" */
/****************************************************************************\
 *           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() */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产91精品一区二区麻豆网站 | 蜜臀av国产精品久久久久| 国产乱码精品一区二区三| 久久久99精品久久| 不卡av在线网| 亚洲柠檬福利资源导航| 欧美精品一级二级| 国产精品一线二线三线| 免费人成在线不卡| 亚洲国产日韩a在线播放性色| 狠狠色狠狠色综合日日91app| 欧美综合一区二区| 中文字幕精品一区二区三区精品 | 欧美日韩极品在线观看一区| 中文一区二区完整视频在线观看| 免费av网站大全久久| 欧美亚洲精品一区| 一级女性全黄久久生活片免费| 国产盗摄视频一区二区三区| 日韩欧美精品在线| 婷婷六月综合亚洲| 欧美视频一区二区在线观看| 亚洲美女视频一区| 一道本成人在线| 亚洲欧洲成人精品av97| 国产成人午夜视频| 久久久精品日韩欧美| 国产麻豆91精品| 国产女人18毛片水真多成人如厕 | 国产精品大尺度| 国产91露脸合集magnet| 国产欧美精品一区aⅴ影院 | 懂色一区二区三区免费观看| 久久精品视频一区二区三区| 国产乱对白刺激视频不卡| 久久久国产精华| 国产凹凸在线观看一区二区| 国产亚洲短视频| 成人精品小蝌蚪| 亚洲色图另类专区| 欧美日韩国产精选| 日本 国产 欧美色综合| 日韩免费视频一区二区| 国产精品系列在线观看| 亚洲国产岛国毛片在线| 色欧美片视频在线观看在线视频| 久久成人免费电影| 亚洲一区在线免费观看| 99精品热视频| 精品日韩av一区二区| 精品国产乱码久久久久久图片| 国产欧美日韩视频在线观看| 欧美国产日韩一二三区| 亚洲一区二区欧美激情| 老司机免费视频一区二区三区| 国产毛片精品一区| 欧美久久久久久蜜桃| 欧美日韩中文字幕精品| 欧美激情艳妇裸体舞| eeuss鲁片一区二区三区| 一区二区三区中文字幕| 欧美精品v国产精品v日韩精品| 美国十次了思思久久精品导航| 国产日韩成人精品| 欧美网站大全在线观看| 精品一区二区精品| 亚洲图片欧美激情| 欧美成人官网二区| 色综合久久久久网| 日本欧美一区二区在线观看| 国产色产综合色产在线视频| 欧洲av在线精品| 七七婷婷婷婷精品国产| 国产精品美日韩| 欧美一级片在线| 99久久er热在这里只有精品66| 不卡一区在线观看| 亚洲一区二区三区四区在线免费观看| 日韩亚洲国产中文字幕欧美| 天堂资源在线中文精品| 91麻豆精品国产91| 久久欧美一区二区| 久久99久久精品| 国产亚洲欧美中文| 91理论电影在线观看| 五月天中文字幕一区二区| 国产欧美视频在线观看| 欧美视频中文一区二区三区在线观看| 精彩视频一区二区| 亚洲福中文字幕伊人影院| 国产欧美精品在线观看| 4438x成人网最大色成网站| 成人性生交大片免费看视频在线 | 26uuu成人网一区二区三区| 色噜噜狠狠成人网p站| 国产精品综合网| 日本伊人午夜精品| 亚洲午夜日本在线观看| 精品视频一区三区九区| 免费观看久久久4p| |精品福利一区二区三区| 26uuu久久天堂性欧美| 国产一区二区在线免费观看| 久久久久久亚洲综合影院红桃| 国产精品中文字幕日韩精品| 日韩女同互慰一区二区| 国产成人午夜99999| 久久久五月婷婷| 大桥未久av一区二区三区中文| 国产精品午夜春色av| 亚洲精品国久久99热| 欧美亚洲综合另类| 成人激情小说乱人伦| 国产一区二区免费视频| 日韩精品亚洲专区| 午夜精品久久久久久久99樱桃| 国产精品国产精品国产专区不片| 国产日韩欧美高清| 日韩精品自拍偷拍| 精品日韩在线观看| 欧美一区二区在线播放| 日韩欧美一级在线播放| 欧美精品v日韩精品v韩国精品v| 欧美久久久久免费| 欧美性极品少妇| 6080午夜不卡| 91在线免费播放| 色婷婷精品大视频在线蜜桃视频| 欧美亚一区二区| 在线精品国精品国产尤物884a| 欧美日韩精品三区| 欧美日韩国产首页| 久久综合999| 国产亚洲精品久| 亚洲人成精品久久久久久| 亚洲精品一区二区三区影院| 国产色产综合产在线视频| 日本一区二区三区四区在线视频 | 中文字幕亚洲不卡| 亚洲欧美日韩国产手机在线| 亚洲欧美欧美一区二区三区| 午夜在线电影亚洲一区| 亚洲最大成人综合| 日韩二区三区四区| 天天亚洲美女在线视频| 久久草av在线| www.成人网.com| 91浏览器打开| 欧美成人aa大片| 一区二区三区高清不卡| 久久这里只有精品6| 亚洲免费资源在线播放| 亚洲精品综合在线| 亚洲图片欧美视频| 麻豆久久久久久| 在线视频国内自拍亚洲视频| 欧美欧美欧美欧美首页| 欧美亚洲国产一卡| 日韩欧美激情四射| 亚洲激情网站免费观看| 亚洲国产毛片aaaaa无费看| 成人免费视频免费观看| 色素色在线综合| 不卡视频在线观看| 欧美一级片在线看| 亚洲欧美自拍偷拍| 亚洲电影你懂得| 成人av在线一区二区三区| 色就色 综合激情| 国产午夜精品久久| 亚洲mv在线观看| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 337p粉嫩大胆噜噜噜噜噜91av | 一本久久a久久精品亚洲| 欧美老肥妇做.爰bbww| 久久亚洲春色中文字幕久久久| 一区二区三区视频在线看| 麻豆久久久久久久| 欧美日韩国产电影| 国产欧美日韩在线| 黄色精品一二区| 91麻豆精品一区二区三区| 日本一区二区三区国色天香| 久久久一区二区三区| 日韩av不卡在线观看| 欧美在线色视频| 中文字幕欧美国产| 国产成人精品亚洲午夜麻豆| 91精品一区二区三区久久久久久 | 色呦呦日韩精品| 国产欧美一区二区三区网站| 午夜精品成人在线视频| 欧美视频你懂的| 亚洲欧美视频在线观看| 99久久综合99久久综合网站| 欧美一区二区三区在线看| 午夜电影网亚洲视频| 不卡一区二区三区四区| 国产天堂亚洲国产碰碰| 风间由美一区二区三区在线观看|