用cc1310打印数组时,一直打印不出来,请帮我看一下哪边有问题
初始化代码:
void DebugUartInit(void) {UART_Params uartParams;/* Create a UART with data processing off. */UART_Params_init(&uartParams);uartParams.baudRate= 115200;//uartParams.writeMode= UART_MODE_CALLBACK;uartParams.writeDataMode = UART_DATA_BINARY;//uartParams.writeCallback = writeCallback;uartParams.readMode= UART_MODE_CALLBACK;uartParams.readDataMode = UART_DATA_BINARY;uartParams.readCallback = readCallback;DebugUart = UART_open(Board_UART0, &uartParams); } void USART_Printf(uint8_t *pBuffer,uint16_t len)//串口发送数组 {UART_write(DebugUart, pBuffer, len); }
调用:
USART_Printf(data,lbtPacket.len);
Viki Shi:
请参考这边的academy:dev.ti.com/…/node
user6340973:
回复 Viki Shi:
我想打印的是数组,不是字符串
Viki Shi:
回复 user6340973:
请参考这边的类似问题: e2e.ti.com/…/2918283