Okay, I'll bite.
Using PE, if I add an fsl_debug_console component to my project, where do I find my UART's base address so I can use the UART_HAL_IsRxDataRegFull(uint32_t baseAddr) function in the inherited fsl_uart_hal component?
- Audi
Solved! Go to Solution.
Hello Audi:
Two places I can think of:
1) Directly from the device header file. e.g for K64:
2) From the global array g_uartBaseAddr[], declared as extern in fsl_uart_driver.h, just provide the UART instance number as the array index (see this post):
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Audi:
Two places I can think of:
1) Directly from the device header file. e.g for K64:
2) From the global array g_uartBaseAddr[], declared as extern in fsl_uart_driver.h, just provide the UART instance number as the array index (see this post):
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hmm. So what you're saying is -- it takes experience.
I'm searching through my project's generated code and folders looking for something (I don't even know what), when it's actually buried in the libraries.
Okay. Experience gained.
Thanks for the reply!
- Audi