[riot-notifications] [RIOT-OS/RIOT] cpu/cc26x0: implement uart_mode() (#11612)

Ben Postman notifications at github.com
Tue Jun 4 13:33:08 CEST 2019


ben-postman commented on this pull request.



> +#include <stdlib.h>
+
+#include "periph/uart.h"
+#include "xtimer.h"
+
+/* UART_DEV is always 0 since this test is for device with 1 UART */
+#define _UART_DEV (UART_DEV(0))
+
+
+static void _print_status(int8_t status, uart_data_bits_t data_bits,
+                          uart_parity_t parity, uart_stop_bits_t stop_bits) {
+    char mode[4];
+
+    /* If status < 0, print a header indicating an error */
+    if (status < 0) {
+        printf("Unsupported Mode: ");

Definitely, you mean if unsupported, right?

-- 
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/11612#discussion_r290251366
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190604/1e0d2e1e/attachment.html>


More information about the notifications mailing list