RTEMS | Backport 6.2: bsps/noelv: Fix using console in polled mode (#5283)
Matteo Concas (@matteo.concas)
gitlab at rtems.org
Fri Jun 27 07:40:59 UTC 2025
Matteo Concas created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5283
## Summary
bsps/noelv: Fix using console in polled mode
The console driver needs `BSP_CONSOLE_USE_INTERRUPTS` to be defined or it does not build. The intent was to use polled mode if the macro was equal to zero but not using interrupt means the macro won't be defined instead.
This is the faulty code:
```c
if (BSP_CONSOLE_USE_INTERRUPTS) {
handler = &apbuart_handler_interrupt;
}
```
In `bsps/riscv/noel/console/console-config.c` .
## Steps to reproduce
Create a INI with the following contents:
```ini
[riscv/noel64imafd_polling]
INHERIT = noel64imafd
RTEMS_SMP = True
BSP_CONSOLE_USE_INTERRUPTS = 0
```
Build the RTEMS kernel, it will fail to build due to `BSP_CONSOLE_USE_INTERRUPTS` being undefined.
## Expected behaviour
BSP should build successfully.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5283
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/20250627/bfdc4f81/attachment.htm>
More information about the bugs
mailing list