[riot-notifications] [RIOT-OS/RIOT] sys/net/application_layer: add telnet server module & example (#16723)

benpicco notifications at github.com
Tue Sep 7 12:27:19 CEST 2021


@benpicco commented on this pull request.



> +static inline void _init_fallback(void)
+{
+#if defined(STDIO_UART_DEV) && IS_USED(MODULE_PERIPH_UART)
+    uart_init(STDIO_UART_DEV, STDIO_UART_BAUDRATE, NULL, NULL);
+#endif
+}
+
+static inline int _write_fallback(const void* buffer, size_t len)
+{
+#if defined(STDIO_UART_DEV) && IS_USED(MODULE_PERIPH_UART)
+    uart_write(STDIO_UART_DEV, buffer, len);
+#else
+    (void)buffer;
+#endif
+
+    return len;
+}
+
+void stdio_init(void)
+{
+    _init_fallback();
+
+#if IS_USED(MODULE_VFS)
+    vfs_bind_stdio();
+#endif
+}

certainly!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16723#discussion_r703385675
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210907/1d5040cf/attachment.htm>


More information about the notifications mailing list