summaryrefslogtreecommitdiff
path: root/src/fmc-test/include/stm-uart.h
diff options
context:
space:
mode:
authorFredrik Thulin <fredrik@thulin.net>2015-09-10 10:47:08 +0200
committerFredrik Thulin <fredrik@thulin.net>2015-09-10 10:47:08 +0200
commitb5f7b6b8ed23eccc15415776b6d2fa05e10b9c7d (patch)
tree090598d1c4a421c049267e2ba3d9069a68262480 /src/fmc-test/include/stm-uart.h
parentf194c02df057411c0b4b4bb86a629a931901e80f (diff)
Implement UART outputing of results
Diffstat (limited to 'src/fmc-test/include/stm-uart.h')
-rw-r--r--src/fmc-test/include/stm-uart.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/fmc-test/include/stm-uart.h b/src/fmc-test/include/stm-uart.h
new file mode 100644
index 0000000..c106d76
--- /dev/null
+++ b/src/fmc-test/include/stm-uart.h
@@ -0,0 +1,16 @@
+#ifndef __STM32_DEV_BRIDGE_UART_H
+#define __STM32_DEV_BRIDGE_UART_H
+
+#include "stm32f4xx_hal.h"
+
+#define USART2_BAUD_RATE 115200
+
+extern void MX_USART2_UART_Init(void);
+
+extern void uart_send_binary(uint32_t num, uint8_t bits);
+extern void uart_send_string(char *s);
+extern void uart_send_integer(uint32_t data, uint32_t mag);
+
+extern UART_HandleTypeDef huart2;
+
+#endif /* __STM32_DEV_BRIDGE_UART_H */