aboutsummaryrefslogtreecommitdiff
path: root/include/stm-uart.h
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2015-11-11 14:46:28 -0500
committerPaul Selkirk <paul@psgd.org>2015-11-11 14:46:28 -0500
commit4c6b056b8467bb6513224527ff3120ef905de397 (patch)
treebb2cc71ae6931dce7327af54b17f42591aa16f75 /include/stm-uart.h
parentdf8f45c0d06e64b3901f1cce4e74cbde038737f2 (diff)
Lots of cleanup.
Clean up and simplify(?) Makefile. Add copyrights as needed. Add include guard to stm-fmc.h. Move MX_USART2_UART_Init back to stm-init.c for possible copyright reasons. Move libc, src, and include files to top level.
Diffstat (limited to 'include/stm-uart.h')
-rw-r--r--include/stm-uart.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/stm-uart.h b/include/stm-uart.h
deleted file mode 100644
index c57afd5..0000000
--- a/include/stm-uart.h
+++ /dev/null
@@ -1,17 +0,0 @@
-#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_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);
-#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)
-
-#endif /* __STM32_DEV_BRIDGE_UART_H */