Skip to content

simulating hello_world #960

Answered by stnolting
Sam-Vervaeck asked this question in Q&A
Jul 22, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hey @Sam-Vervaeck.

Question 1: I was going through the main.c code of the hello_world file and saw the "neorv32_uart0_setup(BAUD_RATE, 0)" function call. However, when looking through neorv32_uart.h I don't find that function defined? Only the more general neorv32_uart_setup() seems to be defined but requires a uart pointer argument? Where is the more specific neorv32_uart0_setup) defined?

These are wrappers for the two UARTs that use the same "core" functions. The pointer you are mentioning is the actual "hardware handle" (a pointer to the according UART's memory-mapped interface register struct).

They are define in neorv32_legacy.h:

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Sam-Vervaeck
Comment options

@stnolting
Comment options

Answer selected by Sam-Vervaeck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants