first test for K15

This commit is contained in:
2024-05-16 00:51:50 +02:00
parent 4431f12c8f
commit 77a774e7dd
3 changed files with 27 additions and 2 deletions

View File

@@ -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 */
}