diff options
author | Fredrik Thulin <fredrik@thulin.net> | 2015-12-10 21:23:45 +0100 |
---|---|---|
committer | Fredrik Thulin <fredrik@thulin.net> | 2015-12-10 21:23:45 +0100 |
commit | e8c6f2b8aa1bd65bfe8d431ecf7358f12f5bf981 (patch) | |
tree | 7b8c55969fa9c9fdef92f49edb69819225e55e79 /src/rtc-test/include/stm-uart.h | |
parent | af155a47288686f9577a2eb642dfe204ab0b5ef7 (diff) |
init, code testing the RTC on the dev-bridge board
Diffstat (limited to 'src/rtc-test/include/stm-uart.h')
-rw-r--r-- | src/rtc-test/include/stm-uart.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/rtc-test/include/stm-uart.h b/src/rtc-test/include/stm-uart.h new file mode 100644 index 0000000..53682ac --- /dev/null +++ b/src/rtc-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 921600 + +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 void uart_send_hexbyte(const uint32_t data); +extern void uart_send_hexdump(const uint8_t *buf, const uint8_t start_offset, const uint8_t end_offset); + +extern UART_HandleTypeDef huart2; + +#endif /* __STM32_DEV_BRIDGE_UART_H */ |