diff options
| author | Konstantin Kirik (snegovick) <snegovick@uprojects.org> | 2026-01-04 03:47:29 +0300 |
|---|---|---|
| committer | Konstantin Kirik (snegovick) <snegovick@uprojects.org> | 2026-01-04 03:47:29 +0300 |
| commit | e4bd4c86db02d68bcfde2278bf6f2abc6dc80b62 (patch) | |
| tree | a09dc20438ae326c012744205ffd4658aac92960 /os/drivers/uart/stm32f7_uart.h | |
| parent | 9ac2c83df259804fa3f3c492311ea68a9545eef8 (diff) | |
Add basic UART/USART driver for stm32f769
* Currently only probably capable of init and output by polling
Diffstat (limited to 'os/drivers/uart/stm32f7_uart.h')
| -rw-r--r-- | os/drivers/uart/stm32f7_uart.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/os/drivers/uart/stm32f7_uart.h b/os/drivers/uart/stm32f7_uart.h new file mode 100644 index 00000000..224f20ea --- /dev/null +++ b/os/drivers/uart/stm32f7_uart.h @@ -0,0 +1,12 @@ +#ifndef __STM32F7_UART_H__ +#define __STM32F7_UART_H__ + +#include <drivers/include/device.h> + +int stm32f7_uart_init(struct device *dev); +int stm32f7_uart_deinit(struct device *dev); +void stm32f7_uart_poll_out8(const struct device *dev, unsigned char ch); +void stm32f7_uart_tx_buffer(const struct device *dev, char *buffer, unsigned int len); +void stm32f7_uart_tx(const struct device *dev, char *buffer); + +#endif/*__STM32F7_UART_H__*/ |
