example_init.h

来自「dsp tms320c6486的csl例程」· C头文件 代码 · 共 61 行

H
61
字号
/*  ============================================================================
 *   Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005, 2006
 *
 *   Use of this software is controlled by the terms and conditions found
 *   in the license agreement under which this software has been supplied.
 *  ============================================================================
 */
/** ============================================================================
 *
 *   @file  example_init.h
 *
 *   @path  $(CSLPATH)\example\c6486\hpi\inc
 *
 *   @desc  Example initialization function.
 *
 *******************************************************************************
 */
/* =============================================================================
 *  Revision History
 *  ===============
 *  03-Nov-2006 NG Created
 * =============================================================================
 */
#ifndef _example_init_h_
#define _example_init_h_

/* Constant Definitions   */
/* No. of Iterations to run each payload back to back */
#define NO_OF_ITERATIONS (1)

/* No. of various payloads that will be tested */
#define NO_OF_PAYLOADS   (1)

/* This should match the number of entries in data_incr.h */
#define MAX_BUFF_SIZE    (1024)

/* The difference between visual inspection and the TB latency is compensated */
#define TB_READ_LATENCY_CPU_CYCLES  (886)
#define TB_WRITE_LATENCY_CPU_CYCLES (1166)


/* Data Declarations                */
#pragma DATA_SECTION(dsp_src_buff, "l2_src_buff")
#pragma DATA_ALIGN(dsp_src_buff, 8)
Uint32  dsp_src_buff[MAX_BUFF_SIZE]; // =  
//#include <data_incr.h>

#pragma DATA_SECTION(dsp_dst_buff, "l2_dst_buff")
#pragma DATA_ALIGN(dsp_dst_buff, 8)
Uint32  dsp_dst_buff[MAX_BUFF_SIZE];// = 
//#include <data_incr.h>

//  Declare payload 
Uint32 payLoad[NO_OF_PAYLOADS] = {256};


#endif
/*****************************************************************************\
* End of test_init.h
\*****************************************************************************/

⌨️ 快捷键说明

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