2525#include "debug.h"
2626
2727#ifdef RP2350_USE_RISCV
28- #include "xh3irq.h"
28+ # include "xh3irq.h"
2929#endif
3030
3131#include "board.h"
@@ -42,6 +42,7 @@ void _irq_enable(uart_t uart)
4242{
4343 UART0_Type * dev = uart_config [uart ].dev ;
4444 /* We set the UART Receive Interrupt Mask (Bit 4) [See p979 UART 12.1]*/
45+ <<<<<<< HEAD
4546 dev -> UARTIMSC = UART_UARTIMSC_RXIM_BITS ;
4647 /* Enable the IRQ */
4748 rp_irq_enable (uart_config [uart ].irqn );
@@ -69,6 +70,15 @@ void _set_symbolrate(uart_t uart, uint32_t baud)
6970
7071 dev -> UARTIBRD = baud_ibrd ;
7172 dev -> UARTFBRD = baud_fbrd ;
73+ = == == ==
74+ dev -> UARTIMSC = UART0_UARTIMSC_RXIM_Msk ;
75+ /* Enable the IRQ in the NVIC */
76+ #ifdef RP2350_USE_RISCV
77+ xh3irq_enable_irq (uart_config [uart ].irqn );
78+ #else
79+ NVIC_EnableIRQ (uart_config [uart ].irqn );
80+ #endif
81+ >>>>>>> a64ab76543 (Apply suggestions from code review )
7282}
7383
7484int uart_mode (uart_t uart , uart_data_bits_t data_bits , uart_parity_t parity ,
@@ -203,7 +213,7 @@ void uart_write(uart_t uart, const uint8_t *data, size_t len)
203213
204214void uart_poweron (uart_t uart ) {
205215 assert ((unsigned )uart < UART_NUMOF );
206- /* Get into a save state where we know whats up */
216+ /* Get into a save state where we know what's up */
207217 _reset_uart (uart );
208218 UART0_Type * dev = uart_config [uart ].dev ;
209219 /* Restore config from registers */
0 commit comments