MCUxpresso SDK for KL43 question

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

MCUxpresso SDK for KL43 question

745 次查看
allenyu
Contributor II

Dear All,

Regarding SDK for KL43 project inside the driver_examples,
No matter which example, there are assert (config) in the code,
Will the structure of this data variable or the value, how do I know what is stored inside what?
Or is it a file that is archived somewhere?

For example:

C:..\download\devices\MKL43Z4\drivers\fsl_lpuart.c and contents line 235assert(config);

    assert(config->baudRate_Bps);

#if defined(FSL_FEATURE_LPUART_HAS_FIFO) && FSL_FEATURE_LPUART_HAS_FIFO

    assert(FSL_FEATURE_LPUART_FIFO_SIZEn(base) >= config->txFifoWatermark);

    assert(FSL_FEATURE_LPUART_FIFO_SIZEn(base) >= config->rxFifoWatermark);

#endif

0 项奖励
回复
1 回复

604 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Allen,

As to your example , the "config->baudRate_Bps" is configured by yourself .

Please check the driver example lpsci , configure it at the mian() function :

pastedImage_1.png

Hope it helps


Have a great day,
TIC

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

0 项奖励
回复