RTEMS | bsps/raspberrypi: Specify an initial baud rate for libio to use during startup (!494)

Heinz Junkes (@junkes) gitlab at rtems.org
Thu Jun 5 16:48:54 UTC 2025




Heinz Junkes commented: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/494#note_123158


can set breakpoint to `arm_pl011_write_polled`
list file shows :
```
426	int arm_pl011_read_polled(rtems_termios_device_context *base)
427	{
428	  volatile arm_pl011_uart *regs = arm_pl011_get_regs(base);
429
430	  if (arm_pl011_is_rxfifo_empty(&regs->base)) {
431	    return -1;
432	  } else {
433	    return arm_pl011_read_char(&regs->base);
434	  }
435	}
436
437	void arm_pl011_write_polled(rtems_termios_device_context *base, char c)
438	{
439	  volatile arm_pl011_uart *regs = arm_pl011_get_regs(base);
440
441	  /* Wait until TXFIFO has space */
442	  while (arm_pl011_is_txfifo_full(&regs->base)) {
443	    /* Wait */
444	  }
445
446	  arm_pl011_write_char(&regs->base, c);
447	}
```

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/494#note_123158
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250605/a2166711/attachment.htm>


More information about the bugs mailing list