diff options
author | Paul Selkirk <paul@psgd.org> | 2015-10-29 15:42:29 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2015-10-29 15:42:29 -0400 |
commit | 9278e9bafd96105b64f9946eb94f5618f01649d3 (patch) | |
tree | 2aca37b1edebc9eb717456179f85927929c98cbb /include | |
parent | fb73e2d75b4e99a29c28bbbaf754222010c273b7 (diff) |
add libhal tests, some cleanup (some mess-making)
Diffstat (limited to 'include')
-rw-r--r-- | include/stm-fmc.h | 7 | ||||
-rw-r--r-- | include/stm-uart.h | 8 |
2 files changed, 4 insertions, 11 deletions
diff --git a/include/stm-fmc.h b/include/stm-fmc.h index 196d65e..cf9b77e 100644 --- a/include/stm-fmc.h +++ b/include/stm-fmc.h @@ -2,12 +2,7 @@ // stm-fmc.h //------------------------------------------------------------------------------ - -//------------------------------------------------------------------------------ -// Headers -//------------------------------------------------------------------------------ -#include "stm32f4xx_hal.h" - +#include <stdint.h> //------------------------------------------------------------------------------ // Prototypes diff --git a/include/stm-uart.h b/include/stm-uart.h index 43df882..62b2efd 100644 --- a/include/stm-uart.h +++ b/include/stm-uart.h @@ -5,14 +5,12 @@ #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_char(uint8_t ch); extern void uart_send_string(char *s); +extern void uart_send_binary(uint32_t num, uint8_t bits); extern void uart_send_integer(uint32_t data, uint32_t mag); - -extern UART_HandleTypeDef huart2; +extern void uart_send_hex(uint32_t num, uint8_t digits); #endif /* __STM32_DEV_BRIDGE_UART_H */ |