userdefndconst.h

来自「dsp DM642 pci 详细的开发例程」· C头文件 代码 · 共 77 行

H
77
字号
// Dm642App.h
//////////////////////////////////////////////////////////////////////////////
////
////  Copyright (c) 2003, Valley Technologies, Inc.
////  All rights reserved.
////
//////////////////////////////////////////////////////////////////////////////
////
////  $Header $
////
////  $ReleaseClass: src $
////
////  Original Author                 : ebersole
////  Most Recent Contributing $Author: ebersole $
////
//////////////////////////////////////////////////////////////////////////////
////
////  This file contains the user-defined constants used by the Exhibit #2
////  Application.  The constants can be set and changed by the user/pgmr
////  either here, in this file, or via the compiler command-line.  Note
////  that the compiler's command-line takes precedence over this file.
////
////  The constants defined in this file control various conditional-
////  compilation clauses throughout the Exhibit #2 program.
////
//////////////////////////////////////////////////////////////////////////////


//############################################################################


#ifndef _USERDEFNDCONST_H_
#define _USERDEFNDCONST_H_


//############################################################################
//                               Constants
//############################################################################


//------------------------------------------------------------------
// The size of the buffer to transfer between the host and the DSP
//------------------------------------------------------------------
#ifndef BUFSIZE
#   define BUFSIZE        (256)
#endif

//---------------------------------------------------------------------
// The number of times to loop thru the tests.  Each test involves
//   transferring a buffer 2x --> host-to-DSP and DSP-to-host.
//   Each test also involves verifying the transfers.
//
// If NLOOPS == 0, then the tests will loop forever.
//---------------------------------------------------------------------
#ifndef NLOOPS
#   define NLOOPS         (0)
#endif

//----------------------------------------------------------------------------
// Flag to indicate whether to use Windows Events (and WaitForSingleObject)
//   to wait for DSP-to-host transfers.  The alternative is to use busy-wait
//   loops.
//----------------------------------------------------------------------------
#ifndef _USE_WINEVENTS
#   define _USE_WINEVENTS_ 1
#endif


//############################################################################


#endif


//############################################################################
//                             End-Of-File
//############################################################################\

⌨️ 快捷键说明

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