first test for K15
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
|
||||
#include "AsyncComm.h"
|
||||
|
||||
#include "string.h"
|
||||
|
||||
#include "stm32h7xx_ll_dma.h"
|
||||
#include "stm32h7xx_ll_usart.h"
|
||||
|
||||
@@ -210,7 +212,7 @@ void usart_send_data(const uart_desc_t* uart, const void* data, size_t len) {
|
||||
* \param[in] str: String to send
|
||||
*/
|
||||
void usart_send_string(const uart_desc_t* uart, const char* str) {
|
||||
lwrb_write(&uart->data->tx_rb, str, strnlen(str, 255)); /* Write data to TX buffer for loopback */
|
||||
lwrb_write(&uart->data->tx_rb, str, strlen(str)); /* Write data to TX buffer for loopback */
|
||||
usart_start_tx_dma_transfer(uart); /* Then try to start transfer */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user