aboutsummaryrefslogtreecommitdiff
path: root/stm-uart.h
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2016-03-16 10:18:50 -0400
committerPaul Selkirk <paul@psgd.org>2016-03-16 10:18:50 -0400
commit533898d765397abb07be72d7c394a8908157ad8c (patch)
treef5e88b52f52f0f1896c887c4445e152767269aec /stm-uart.h
parentc77986dcefbf2123caea6c2fb0573eb81226348c (diff)
Added uart_recv_char() to support RPC.
Moved hal_io_fmc.c to libhal repo.
Diffstat (limited to 'stm-uart.h')
-rw-r--r--stm-uart.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/stm-uart.h b/stm-uart.h
index 7019a48..67e9d75 100644
--- a/stm-uart.h
+++ b/stm-uart.h
@@ -39,9 +39,10 @@
#define USART2_BAUD_RATE 115200
-extern void uart_send_char(uint8_t ch);
-extern void uart_send_string(char *s);
-extern void uart_send_number(uint32_t num, uint8_t digits, uint8_t radix);
+extern HAL_StatusTypeDef uart_send_char(uint8_t ch);
+extern HAL_StatusTypeDef uart_recv_char(uint8_t *cp);
+extern HAL_StatusTypeDef uart_send_string(char *s);
+extern HAL_StatusTypeDef uart_send_number(uint32_t num, uint8_t digits, uint8_t radix);
#define uart_send_binary(num, bits) uart_send_number(num, bits, 2)
#define uart_send_integer(num, digits) uart_send_number(num, digits, 10)
#define uart_send_hex(num, digits) uart_send_number(num, digits, 16)