summaryrefslogtreecommitdiff
path: root/app/platform/stm32f0-gcc/uart.cpp
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-03-07 19:10:25 +0300
committerOxore <oxore@protonmail.com>2023-03-07 19:10:25 +0300
commit3282a756679019fd723346cc3bc584cc582eb669 (patch)
treea1992e7851fee8ca07929bb8c9f0877a7401d70c /app/platform/stm32f0-gcc/uart.cpp
parentac69a640ba9dde383b9c3ddca59c3d6d14ea5b2e (diff)
Begin implementing serial descriptors
Diffstat (limited to 'app/platform/stm32f0-gcc/uart.cpp')
-rw-r--r--app/platform/stm32f0-gcc/uart.cpp33
1 files changed, 33 insertions, 0 deletions
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;
+}