diff options
| author | sowgro <tpoke.ferrari@gmail.com> | 2025-09-02 14:45:40 -0400 |
|---|---|---|
| committer | sowgro <tpoke.ferrari@gmail.com> | 2025-09-02 14:45:40 -0400 |
| commit | e3a880051ccf1ba9a16fd9cf031b7386b2533bf1 (patch) | |
| tree | 96a096b2a668bf7b7929385ebb54c1a3cbd1b9d2 /project/Core/Inc/Devices/UART.h | |
| parent | 0ff718e7cd7159c30636aa323a666ac1af684f63 (diff) | |
| download | 340-repo-Sowgro-e3a880051ccf1ba9a16fd9cf031b7386b2533bf1.tar.gz 340-repo-Sowgro-e3a880051ccf1ba9a16fd9cf031b7386b2533bf1.tar.bz2 340-repo-Sowgro-e3a880051ccf1ba9a16fd9cf031b7386b2533bf1.zip | |
Organized project
Diffstat (limited to 'project/Core/Inc/Devices/UART.h')
| -rw-r--r-- | project/Core/Inc/Devices/UART.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/project/Core/Inc/Devices/UART.h b/project/Core/Inc/Devices/UART.h new file mode 100644 index 0000000..e9c0f33 --- /dev/null +++ b/project/Core/Inc/Devices/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 */ |
