Skip to content

Commit 5e12342

Browse files
committed
fixup! cpu/rp2350_riscv: move to shared rp2350_common
1 parent 63efe66 commit 5e12342

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

cpu/rp2350_common/periph/uart.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,10 @@ void isr_handler(uint8_t num)
225225

226226
if (status & UART_UARTMIS_RXMIS_BITS) {
227227
uint32_t data = dev->UARTDR;
228+
if (data != 0) {
229+
printf("UART%u: Received data: 0x%02lx ('%c')\n", num, data,
230+
(data >= 32 && data <= 126) ? (char)data : '.');
231+
}
228232
ctx[num].rx_cb(ctx[num].arg, (uint8_t)data);
229233
}
230234
}

cpu/rp2350_riscv/cpu.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
*/
3232
void cpu_init(void)
3333
{
34-
/* initialize the RISC-V core */
35-
riscv_init();
36-
34+
/* rp2350 common startup routine */
3735
rp2350_init();
36+
/* initialize the RISC-V core (Interrupts, FPU, etc) */
37+
riscv_init();
3838
}

0 commit comments

Comments
 (0)