This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我希望我的UART收到一包数据,只调用一次回调函数,而不是一个字节调用一次,DMA的这一段要怎么配置?
uartConfig.configured = TRUE; uartConfig.baudRate = HAL_UART_BR_38400; uartConfig.flowControl = FALSE; uartConfig.flowControlThreshold = 128; uartConfig.rx.maxBufSize = 128; uartConfig.tx.maxBufSize = 128; uartConfig.idleTimeout = 6; uartConfig.intEnable = TRUE; uartConfig.callBackFunc = UserUartBack
Are you using TI BLE version 1.3.x ?
The above setting do not affect the UART packet receive. It just set the UART setting itself. By using DMA, it will receive a packet in the 128 bytes buffer and waiting for applicaiton to process.
Generally, if you are using TI BLE code, just define HAL_UART and DMA_PM=0. The UART will configure in DMA automatically.