⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.h

📁 black-fin DSP处理器单帧图像获取程序
💻 H
字号:
/*    Copyright (c) 1990-1994,1997-2000,2001,2002 Analog Devices Inc.,                  All Rights ReservedThis material is considered highly CONFIDENTIAL and SENSITIVEbackground Interlectual Property of Analog Devices Inc. Its recipientis required to adhear to the LICENSE agreement.This software is being provided to you, the LICENSEE, by AnalogDevices Inc (ADI) under the following license.  The following softwareis proprietary background Intellectual Property of Analog Devices andcan not be used by its LICENSEE without written consent from ADI.By obtaining, using and/or copying this software, you agree that youhave read, understood, and will comply with these terms andconditions:1. You may not, copy, modify or distribute, this software with out a   written agreement from Analog Devices.THIS SOFTWARE IS PROVIDED "AS IS", AND ADI MAKES NO REPRESENTATIONSOR WARRANTIES, EXPRESS OR IMPLIED.  By way of example, but notlimitation, ADI MAKES NO REPRESENTATIONS OR WARRANTIES OFMERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USEOF THE LICENSED SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRDPARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.*/#ifndef _CONFIG_H_#define _CONFIG_H_#define MAX_CHANNELS 4#define MAX_CHANNELS_CORE 2/* GCC or VDSP #ifndef __GNUC__#define VDSP#endif*/#define CENV#include "config.inc"/* typedefs */typedef unsigned char  ubyte;typedef unsigned short uword;typedef unsigned long  ulong;/* performance monitor */#define CNTR0 *(unsigned long volatile *)0xffe08100#define CNTR1 *(unsigned long volatile *)0xffe08104#define PFC   *(long volatile *)0xffe08000#define CONFIG_PFC(ev1,ev0) PFC=((((ev1)<<16)|0x8000)|((ev0)<<5|0x11))/* enable/disable B-frame debugging */#define BFRMDBG 0/* create section names from mappings in config.inc */#define dsect(name, alignment, attr) __attribute__((aligned(alignment))) __attribute__((section (xstr(name) ## "_" ## #attr ## "_data")))#define csect(name, alignment)       __attribute__((section (xstr(name))))/* used to hardwire a var to a registers */#ifndef VDSP#define HWREG(x) asm(x)#else#define HWREG(x)#endif/* stringification */#define xstr(s) str(s)#define str(s) #s/* declare a buffer of known size and section in asm */#define DECLASMBUF(x, y, z)        \   asm (".section " xstr(z) ";"    \        ".align 4;"                \        ".global " #x ", _" #x ";" \        "_" #x ":"                 \        #x ":"                     \        ".byte __" #x "["#y"];");  \   extern unsigned char *x/* declare a label of known section in asm */#define DECLASMLAB(x, y)           \   asm(".section " xstr(y) ";"     \       ".align 4;"                 \       ".global _" #x ";"          \       "_" #x ":")    /* enable/disable CPLBs */#ifndef VDSP#define MEMOFF(state) \   asm ("p0.h=0xffe0; p0.l=4; r0=[p0]; %0=r0; bitclr(r0,1); [p0]=r0;" : "=d" (state) : : "R0","P0")#define MEMON(state) \   asm ("p0.h=0xffe0; p0.l=4; [p0]=%0;" : : "d" (state) : "P0")#define MEMCHKING_OFF(BLOCK)  do { \    int _state;                    \    MEMOFF(_state);                \    BLOCK                          \    MEMON(_state);                 \  } while (0)#else#define MEMOFF(state)#define MEMON(state)#define MEMCHKING_OFF(X) X#endif#define BZERO(buf,n) asm ("r0=0; %1=%1>>2; lsetup (bz0,bz0) lc0=%1; bz0: [%0++]=r0;" \                           :  : "a" (buf), "a" (n) : "R0")#endif

⌨️ 快捷键说明

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