QXDDM642_UART_Config UartConfig ={
0x00,/*寄存器IER*/
0x5f,/*寄存器FCR*/
0x03,/*寄存器LCR*/
0x01,/*寄存器MCR*/
};
void tskProcess()
{
int i;
ScomMessage *pMsgBuf;
void *inBuf[3];
void *outBuf[3];
int jpg_size;
int k;
//Uint16 iValue;
int framenum=0;
CHAN_Handle chanHandle;
SCOM_Handle fromInputtoProc,fromProctoInput;
SCOM_Handle fromOuttoProc,fromProctoOut;
SCOM_Handle fromUarttoProc,fromProctoUart;
QXDuartHandleA = QXDDM642_UART_open(QXDDM642_UARTA,
QXDDM642_UART_BAUD9600,
&UartConfig);
buffer=0x35;
while(1)
{
checkMsg();
framenum++;
QXDDM642_UART_putChar(QXDuartHandleA, (buffer & 0xff));
......
......
......
}
PC电脑上输出的是错误的,但不是乱码。
|