From 26f12903dab2fafeaaefb02349763618ce96d070 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Mon, 26 Oct 2015 15:18:58 -0400 Subject: Based on user/ft/stm32-dev-bridge, without the project-specific build directories (and duplicated code). --- include/stm-uart.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/stm-uart.h (limited to 'include/stm-uart.h') diff --git a/include/stm-uart.h b/include/stm-uart.h new file mode 100644 index 0000000..43df882 --- /dev/null +++ b/include/stm-uart.h @@ -0,0 +1,18 @@ +#ifndef __STM32_DEV_BRIDGE_UART_H +#define __STM32_DEV_BRIDGE_UART_H + +#include "stm32f4xx_hal.h" + +#define USART2_BAUD_RATE 115200 + +#if 0 /* XXX moved [back] to stm-init.c */ +extern void MX_USART2_UART_Init(void); +#endif + +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 */ -- cgit v1.2.3