[riot-notifications] [RIOT-OS/RIOT] cpu/rp2040: port RIOT to the Raspberry Pi RP2040 MCU (#16609)

Marian Buschsieweke notifications at github.com
Mon Jul 5 14:24:58 CEST 2021


@maribu commented on this pull request.



> +    ctx[uart].arg = arg;
+
+    uart_poweron(uart);
+    _set_symbolrate(uart, baud);
+
+    if (uart_mode(uart, UART_DATA_BITS_8, UART_PARITY_NONE, UART_STOP_BITS_1) != UART_OK) {
+        return UART_NOMODE;
+    }
+
+    /* enable UART */
+    io_reg_atomic_set(&dev->UARTCR.reg, UART0_UARTCR_UARTEN_Msk
+                                        | UART0_UARTCR_RXE_Msk
+                                        | UART0_UARTCR_TXE_Msk);
+    uart_init_pins(uart);
+
+    _irq_enable(uart);

Done

-- 
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/16609#discussion_r663890522
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210705/b2accbbf/attachment.htm>


More information about the notifications mailing list