Skip to content

06_drivers_gpio_uart: Why is PanicUart initialized after map_pl011_uart() in panic_console_out()? #85

Discussion options

You must be logged in to vote

Got it!

Yes, in this case, the order is not important from the software point-of-view.
map_pl011_uart(_) ensures that the UART TX and RX signals are mapped to the respective pins on your Pi.
The init() if the UART ensures it will be functional.

You'll need both in the end, but there is no requirement that the pins are mapped first and then the UART is set up, or vice versa.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by andre-richter
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #85 on December 09, 2020 07:33.