diff options
| author | github-classroom[bot] <66690702+github-classroom[bot]@users.noreply.github.com> | 2025-08-26 17:03:24 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-26 17:03:24 +0000 |
| commit | 0f2ea7deaf0cba2f0ca07f6611c5a9e87d531f5b (patch) | |
| tree | 66b32e47da7602942f1bf4b7d343367ac408cd5a /project_starter_files/Core/Inc/UART.h | |
| download | 340-repo-Sowgro-0f2ea7deaf0cba2f0ca07f6611c5a9e87d531f5b.tar.gz 340-repo-Sowgro-0f2ea7deaf0cba2f0ca07f6611c5a9e87d531f5b.tar.bz2 340-repo-Sowgro-0f2ea7deaf0cba2f0ca07f6611c5a9e87d531f5b.zip | |
Initial commit
Diffstat (limited to 'project_starter_files/Core/Inc/UART.h')
| -rw-r--r-- | project_starter_files/Core/Inc/UART.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/project_starter_files/Core/Inc/UART.h b/project_starter_files/Core/Inc/UART.h new file mode 100644 index 0000000..e9c0f33 --- /dev/null +++ b/project_starter_files/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 */ |
