aboutsummaryrefslogtreecommitdiff
path: root/stm-uart.h
diff options
context:
space:
mode:
Diffstat (limited to 'stm-uart.h')
-rw-r--r--stm-uart.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/stm-uart.h b/stm-uart.h
index 2330c8b..21f3701 100644
--- a/stm-uart.h
+++ b/stm-uart.h
@@ -37,8 +37,8 @@
#include "stm32f4xx_hal.h"
-#define USART_MGMT_BAUD_RATE 9600
-#define USART_USER_BAUD_RATE 9600
+#define USART_MGMT_BAUD_RATE 115200
+#define USART_USER_BAUD_RATE 115200
enum stm_uart_port {
STM_UART_USER,
@@ -61,6 +61,7 @@ extern HAL_StatusTypeDef uart_send_string2(enum stm_uart_port port, const char *
extern HAL_StatusTypeDef uart_send_number2(enum stm_uart_port port, uint32_t num, uint8_t digits, uint8_t radix);
extern HAL_StatusTypeDef uart_send_bytes(enum stm_uart_port port, uint8_t *buf, size_t len);
+extern HAL_StatusTypeDef uart_receive_bytes(enum stm_uart_port port, uint8_t *buf, size_t len, uint32_t timeout);
#define uart_send_binary(num, bits) uart_send_number(num, bits, 2)
#define uart_send_integer(num, digits) uart_send_number(num, digits, 10)