CPU为5728使用pdk_am57xx_1_0_16 uart设置如下
UART_Params_init(&uartParams);
uartParams.writeDataMode=UART_DATA_BINARY;
uartParams.readDataMode=UART_DATA_BINARY;
uartParams.readCallback = UART_callback;
uartParams.readMode = UART_MODE_CALLBACK;
uartParams.writeCallback = UART_callback;
uartParams.writeMode = UART_MODE_CALLBACK;
uartParams.readTimeout=0;
uartParams.parityType = UART_PAR_EVEN;
uart[i] = UART_open(uartNum[i],&uartParams);
发现接到的数据中0x0a后面的数据均为0,无论0x0a在什么位置;请高人予以解答?
Nancy Wang:
请问具体是参考的哪个例程?