06_drivers_gpio_uart: Why is PanicUart initialized after map_pl011_uart() in panic_console_out()? #85
-
I am new to Raspberry Pi and operating system, so I don’t know much about circuits and software. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi, I am not sure I understand. In |
Beta Was this translation helpful? Give feedback.
-
In |
Beta Was this translation helpful? Give feedback.
-
Got it! Yes, in this case, the order is not important from the software point-of-view. 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. |
Beta Was this translation helpful? Give feedback.
-
thanks, i got it |
Beta Was this translation helpful? Give feedback.
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.