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
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 :
Hope it helps
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------