summaryrefslogtreecommitdiff
path: root/project/Core/Inc/UART.h
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2025-08-31 13:25:35 -0400
committersowgro <tpoke.ferrari@gmail.com>2025-08-31 13:25:35 -0400
commit0ff718e7cd7159c30636aa323a666ac1af684f63 (patch)
tree247e13a76a15d3f826ba949a5a4d82b79a35e652 /project/Core/Inc/UART.h
parent0f2ea7deaf0cba2f0ca07f6611c5a9e87d531f5b (diff)
download340-repo-Sowgro-0ff718e7cd7159c30636aa323a666ac1af684f63.tar.gz
340-repo-Sowgro-0ff718e7cd7159c30636aa323a666ac1af684f63.tar.bz2
340-repo-Sowgro-0ff718e7cd7159c30636aa323a666ac1af684f63.zip
Setup project
Diffstat (limited to 'project/Core/Inc/UART.h')
-rw-r--r--project/Core/Inc/UART.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/project/Core/Inc/UART.h b/project/Core/Inc/UART.h
new file mode 100644
index 0000000..e9c0f33
--- /dev/null
+++ b/project/Core/Inc/UART.h
@@ -0,0 +1,18 @@
+#ifndef __NUCLEO476_UART_H
+#define __NUCLEO476_UART_H
+
+#include "stm32l476xx.h"
+
+#define BUFFER_SIZE (32)
+
+void UART2_Init(void);
+void UART2_GPIO_Init(void);
+void USART1_IRQHandler(void);
+void USART2_IRQHandler(void);
+void USART_Init(USART_TypeDef * USARTx);
+void USART_Write(USART_TypeDef * USARTx, uint8_t *buffer, uint32_t nBytes);
+uint8_t USART_Read(USART_TypeDef * USARTx);
+void USART_Delay(uint32_t us);
+void USART_IRQHandler(USART_TypeDef * USARTx, uint8_t *buffer, uint32_t * pRx_counter);
+
+#endif /* __NUCLEO476_UART_H */