📄 vdk.h
字号:
/* =============================================================================
*
* Description: This VDK Configuration file is automatically generated
* by the VisualDSP++ IDDE and should not be modified.
*
* ===========================================================================*/
#ifndef VDK_H_
#define VDK_H_
#ifdef __ECC__
#pragma no_implicit_inclusion
#ifndef _ADI_THREADS
#warning "VDK projects should be compiled with -threads option"
#endif
#endif
/* Define which optional VDK features are to be used in this build. */
/**
* Semaphores are used in this project
*/
#define VDK_INCLUDE_SEMAPHORES_
#define VDK_BOOT_SEMAPHORES_
/**
* MemoryPools are used in this project
*/
//#define VDK_INCLUDE_MEMORYPOOLS_
//#define VDK_BOOT_MEMORYPOOLS_
/**
* DeviceFlags are used in this project
*/
//#define VDK_INCLUDE_DEVICE_FLAGS_
//#define VDK_BOOT_DEVICE_FLAGS_
/**
* IO templates are used in this project
*/
//#define VDK_INCLUDE_IO_
//#define VDK_BOOT_OBJECTS_IO_
/*
* There are heaps specified
*/
#define VDK_MULTIPLE_HEAPS_
/**
* Messages are used in this project
*/
//#define VDK_INCLUDE_MESSAGES_
/**
* Multiprocessor messaging is used in this project
*/
//#define VDK_MULTIPROCESSOR_MESSAGING_
/**
* RoutingThreads are defined in this project
*/
//#define VDK_INCLUDE_ROUTING_THREADS_
/**
* Routing Nodes are defined in this project
*/
//#define VDK_INCLUDE_ROUTING_NODES_
/**
* Marshalled Message Types are defined in this project
*/
//#define VDK_INCLUDE_MARSHALLED_MESSAGES_
/**
* Events and EventBits are used in this project
*/
#define VDK_INCLUDE_EVENTS_
/**
* Enhanced API error checking and runtime Instrumentation is included
*/
#define VDK_INSTRUMENTATION_LEVEL_ 2
#ifndef VDK_LDF_
#include <defTS201.h>
/**
* ALL of the following enums are generated in format suitable for C/C++
* and a format suitable for assembly inclusion
*/
/*************************************************************************
* ThreadType
*
* These are used in calls to VDK::CreateThread().
*/
#ifdef __ECC__ // for C/C++ access
enum ThreadType
{
kDynamicThreadType = -1,
kPhilosopherThread
};
#else // for asm access
#define kDynamicThreadType -1
#define kPhilosopherThread 0 // enum
#endif // __ECC__
/*************************************************************************
* ThreadID
*
* These are used in calls to VDK::CreateThread().
*/
#ifdef __ECC__ // for C/C++ access
enum ThreadID
{
kIdleThread=0,
kPhilosopher1=1,
kPhilosopher2=2,
kPhilosopher3=3,
kPhilosopher4=4,
kPhilosopher5=5
};
#else // for asm access
#define kIdleThread 0
#define kPhilosopher1 1 // enum
#define kPhilosopher2 2 // enum
#define kPhilosopher3 3 // enum
#define kPhilosopher4 4 // enum
#define kPhilosopher5 5 // enum
#endif // __ECC__
/*************************************************************************
* SemaphoreID
*
* Used in all semaphore APIs
*
*/
#ifdef __ECC__ // for C/C++ access
enum SemaphoreID
{
kChopStick1,
kChopStick2,
kChopStick3,
kChopStick4,
kChopStick5,
kAllDone,
last_semaphore__3VDK=-1
};
#else // for asm access
#define kChopStick1 0 // enum
#define kChopStick2 1 // enum
#define kChopStick3 2 // enum
#define kChopStick4 3 // enum
#define kChopStick5 4 // enum
#define kAllDone 5 // enum
#endif // __ECC__
/*************************************************************************
* MemoryPoolID
*
* Used in all Memory Pool APIs
*
*/
#ifdef __ECC__ // for C/C++ access
enum PoolID
{
last_mempool__3VDK=-1
};
#else // for asm access
#endif // __ECC__
/*************************************************************************
* EventID
*
* Used in Event(...) APIs.
*
* There cannot be more than NATURAL_WORD_SIZE
* EventIDs.
*/
#ifdef __ECC__ // for C/C++ access
enum EventID
{
kAllPhilosophersFull,
last_event__3VDK=-1
};
#else // for asm access
#define kAllPhilosophersFull 0 // enum
#endif // __ECC__
/*************************************************************************
* EventBitID
*
* Used in EventBit(...) APIs
*
* There cannot be more than NATURAL_WORD_SIZE
* EventBitIDs.
*/
#ifdef __ECC__ // for C/C++ access
enum EventBitID
{
kPhilosopher1Full,
kPhilosopher2Full,
kPhilosopher3Full,
kPhilosopher4Full,
kPhilosopher5Full,
last_eventbit__3VDK=-1
};
#else // for asm access
#define kPhilosopher1Full 0 // enum
#define kPhilosopher2Full 1 // enum
#define kPhilosopher3Full 2 // enum
#define kPhilosopher4Full 3 // enum
#define kPhilosopher5Full 4 // enum
#endif // __ECC__
/*************************************************************************
* DeviceID
*
* Used in Device Drivers
*
*/
#ifdef __ECC__ // for C/C++ access
enum IOID
{
last_bootdevice__3VDK=-1
};
#else // for asm access
#endif // __ECC__
/*************************************************************************
* IO template IDs
*
* Used in Device Drivers
*
*/
#ifdef __ECC__ // for C/C++ access
enum IOTemplateID
{
last_iotemplate__3VDK=-1
};
#else // for asm access
#endif // __ECC__
/*************************************************************************
* DeviceFlagID
*
* Used in Device Drivers
*
*/
#ifdef __ECC__ // for C/C++ access
enum DeviceFlagID
{
last_deviceflag__3VDK=-1
};
#else // for asm access
#endif // __ECC__
#ifdef __ECC__ // for C/C++ access
enum MessageID
{
last_message__3VDK=-1
};
#endif // __ECC__
#ifdef VDK_MULTIPLE_HEAPS_
#ifdef __ECC__ // for C/C++ access
enum HeapID {
ksystem_heap0,
ksystem_heap1
};
#else // for asm access
#define ksystem_heap0 0 // enum
#define ksystem_heap1 1 // enum
#endif // __ECC__
#endif
#ifdef VDK_MULTIPROCESSOR_MESSAGING_
#ifdef __ECC__ // for C/C++ access
enum RoutingNodeID {
};
#else // for asm access
#endif // __ECC__
#ifdef VDK_INCLUDE_MARSHALLED_MESSAGES_
#ifdef __ECC__ // for C/C++ access
enum MarshalledTypeID {
};
#else // for asm access
#endif // __ECC__
#endif // VDK_INCLUDE_MARSHALLED_MESSAGES_
#endif
// include the VisualDSP Kernel API and library
#include <VDK_Public.h>
#endif // VDK_LDF_
#endif // VDK_CONFIG_H_
/* ========================================================================== */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -