RTEMS | bsps/arm/stm32f4: Make printk() independent of the console driver. (!1518)
Catalin Miron (@catalin)
gitlab at rtems.org
Thu Oct 1 16:24:20 UTC 2026
Catalin Miron commented on a discussion on bsps/arm/stm32f4/console/console-config.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1518#note_160441
> +
> +static int stm32f4_poll_char(void)
> +{
> + if (PORT_COUNT == 0) {
> + return -1;
> + }
> + return stm32f4_usart_read_polled((int) Console_Port_Minor);
> }
> +BSP_output_char_function_type BSP_output_char = stm32f4_output_char_init_early;
>
> -BSP_output_char_function_type BSP_output_char = output_char;
> +BSP_polling_getchar_function_type BSP_poll_char = stm32f4_poll_char;
>
> -BSP_polling_getchar_function_type BSP_poll_char = NULL;
> +RTEMS_SYSINIT_ITEM(
> + stm32f4_output_char_init,
STM32H7 bsp does the same here: rtems/bsps/arm/stm32h7/console/printk-support.c
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1518#note_160441
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/namespace/49/sent_notifications/5-3pgrh3qief0a67ywmy0jvtpxm-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20261001/e696a0ef/attachment-0001.htm>
More information about the bugs
mailing list