main.h

来自「这是个TI公司的TMS320VC5502的专门用的usb通讯程序」· C头文件 代码 · 共 54 行

H
54
字号

#ifndef main_h
#define main_h
#include "type.h"

#define decintreg  0x2
#define USBINT 0x10

#define SYSSTAT1 (*(volatile int *)(0x280004))
#define SYSSTAT0 (*(volatile int *)(0x280003))
#define SYSCNTL2 (*(volatile int *)(0x280001))
#define SYSCNTL1 (*(volatile int *)(0x280000))
#define WDOG     (*(volatile int *)(0x280010))

/* external variables */
 char desctbl[];

/* global variables */
 BYTE irqValue;			/* interrupt register value */
 BYTE setupBuff[8];		/* setup transaction buffer */
 BOOL sx2Ready;			/* status byte for POST */ 
 BOOL sx2BusActivity;		/* status byte for suspend */ 
 BOOL sx2EnumOK;			/* status byte for enumeration complete */
 BOOL sx2EP0Buf;			/* status for endpoint 0 buffer */
 BOOL sx2Setup;			/* setup flag set in Int0() ISR */
 BOOL readFlag;
 BOOL FLAGS_READ;         /* FIFO的状态读请求*/
 BOOL buffer_halffull;
 BOOL buffer_full;
/* global variables specific to this test firmware */
extern unsigned char keepAliveCnt;	/* counter of Timer0 interrupts */
HANDLE codec_command;
HANDLE codec_data;
 unsigned int FifoWriteCnt;
 unsigned int epdatar[512];
 unsigned int epdataw[512];
 unsigned int epdataw1[256];
/* MCBSP接收缓冲区 */
 unsigned int codecdat[0x400];

/* DMA变量声明 */
BOOL buffer_halffull = False;
BOOL buffer_full = False;
BOOL buffer_halffull1 = False;
BOOL buffer_full1 = False;
unsigned int dma_count = 0;
unsigned int dma_count1 = 0;

#endif

//******************************************************************************//
//	No more
//******************************************************************************//

⌨️ 快捷键说明

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