[riot-notifications] [RIOT-OS/RIOT] boot: Moved stdio_init() into periph_init() (#10806)

kenrabold notifications at github.com
Sun Feb 24 00:29:26 CET 2019

@maribu For this PR to work on HiFive1, this change is needed in the HiFive1 board_init() function:

void board_init(void)
    /* Initialize CPU and clocks */

The board_init_clock() call must happen before the cpu_init().  Because periph_init() is now called by cpu_init(), and that periph_init() will call down into stdio_init() which then calls uart_init(), the UART on the HiFive1 is configured based on the power on clock, and then that gets changed by board_init_clock(). That results in the divisor for the UART not being correct and the text going to serial output is all messed up.

So, just update the board.c for the HiFive1 to be like the code above and this PR will work.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190223/2fed6a61/attachment.html>

More information about the notifications mailing list