From 3282a756679019fd723346cc3bc584cc582eb669 Mon Sep 17 00:00:00 2001 From: Oxore Date: Tue, 7 Mar 2023 19:10:25 +0300 Subject: Begin implementing serial descriptors --- app/platform/stm32f0-gcc/uart.cpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 app/platform/stm32f0-gcc/uart.cpp (limited to 'app/platform/stm32f0-gcc/uart.cpp') diff --git a/app/platform/stm32f0-gcc/uart.cpp b/app/platform/stm32f0-gcc/uart.cpp new file mode 100644 index 0000000..0fa6527 --- /dev/null +++ b/app/platform/stm32f0-gcc/uart.cpp @@ -0,0 +1,33 @@ +#include "uart.h" + +size_t UARTWrite(USART_TypeDef* uart, const void *data, size_t nbytes) +{ + if (uart == nullptr) return 0; + (void) data; + (void) nbytes; + return 0; +} + +size_t UARTWriteDirect(USART_TypeDef* uart, const void *data, size_t nbytes) +{ + if (uart == nullptr) return 0; + (void) data; + (void) nbytes; + return 0; +} + +size_t UARTRead(USART_TypeDef* uart, void *data, size_t nbytes) +{ + if (uart == nullptr) return 0; + (void) data; + (void) nbytes; + return 0; +} + +size_t UARTReadDirect(USART_TypeDef* uart, void *data, size_t nbytes) +{ + if (uart == nullptr) return 0; + (void) data; + (void) nbytes; + return 0; +} -- cgit v1.2.3