----- Am 26. Mrz 2019 um 16:17 schrieb joel j...@rtems.org: > On Tue, Mar 26, 2019 at 9:36 AM Sebastian Huber < > sebastian.hu...@embedded-brains.de> wrote: > >> On 26/03/2019 14:56, Lou Woods wrote: >> > From: Lou Woods <lou.wo...@oarcorp.com> >> > >> > I discovered that I was not able to turn off interrupt-based console >> mode on the >> > Xilinx Zynq BSP under Qemu via the configure command. The fix simply >> exchanges >> > #ifdef XXX_CONSOLE_USE_INTERRUPTS for >> > #if XXX_CONSOLE_USE_INTERRUPTS for the BSP specific console code. >> >> You can disable it via the configure command line, just use >> >> XXX_CONSOLE_USE_INTERRUPTS= >> >> I have never seen setting it to nothing ever documented anywhere in > the RTEMS pantheon of material. All examples I have ever seen set > these to a value > > >> These feature defines are not uniformly used, some use #if other use >> #ifdef. >> > > Changing these ifdef CONSOLE_USE to #if ensures they work if the value > is set to nothing or 0. I don't see how this isn't an improvement.
I just wanted to point out that this patch changes something that works into something else that works also. The change is somewhat arbitrary. It should be accompanied with a recommendation in the BSP developer documentation. There should be also a ticket for this to change everything from #ifdef XYZ to #if XYZ, if we agree that this is actually better. Only for BSP options, for stuff which is available via <bsp.h>, or does it stop, when we change all the #if defined(RTEMS_SMP) to #if RTEMS_SMP? For example BSP_FDT_IS_SUPPORTED is also used in libbsd: rtemsbsd/include/rtems/bsd/local/opt_platform.h Some BSPs use a define in <bsp.h> another uses a BSP option. _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel