UART_HAL_IsRxDataRegFull

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

UART_HAL_IsRxDataRegFull

跳至解决方案
1,282 次查看
audi_mcavoy
Contributor IV

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

标签 (1)
0 项奖励
回复
1 解答
1,156 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Audi:

Two places I can think of:

1) Directly from the device header file. e.g for K64:

pastedImage_2.png

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):

pastedImage_12.png


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,157 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Audi:

Two places I can think of:

1) Directly from the device header file. e.g for K64:

pastedImage_2.png

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):

pastedImage_12.png


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,156 次查看
audi_mcavoy
Contributor IV

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

0 项奖励
回复