MCUxpresso SDK for KL43 question

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCUxpresso SDK for KL43 question

541 Views
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 Kudos
1 Reply

400 Views
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 Kudos