#include "data.h"
//#if   MODULE_B8_B9
u16 bufPos;
u8  wbuf_select,wbuf0_Stat,wbuf1_Stat;
u8  wavBuf0[2048];
u8  wavBuf1[2048];                   			//用来控制喇叭的全局变量
u32 gWavFlashAddr = 0;
u32 gTempWavFlashAddr = 0;
u32 gWavLen = 0;
u8  gWavFlag = 0;
u8  gWavState = 0;
u8  gWavType = 0;
u8  gWavOpen = 0;
u16  gWavLast = 0;
//#endif

UINT8 gWavOpenDelay_Count = 0;

UINT8 gWavAddrFull_Flag = 0;
UINT8 gWavFinish_Flag = 0;

UINT16 gWavDMA_Len_buf0 = 2048;
UINT16 gWavDMA_Len_buf1 = 2048;

u8  gRxFlag = 0;                   			 //USART是否有数据进来标志
u8  busyflag = 0;                   		 //忙标志，表示正在处理其它事件，可接收USART发送过来的数据，但不处理串口发送过来的数据，并给上位机发送忙标志
USART_RX_INFO gUsartRx;                  //用来存储接收结果的结构体
												
TP_INFO gTpInfo;//触摸屏所需相关参数
TP_TEST gTptest;
TP_xfac gTpxfac;
TP_xoff gTpxoff;
TP_yfac gTpyfac;
TP_yoff gTpyoff;

u16 gControlDuty;

u8 Update_Flag=0;
UINT8 First_press=0;
UINT16 First_pressX,First_pressY;