There appears to be several macros in the KDS 1.1.1 generated SPI_LDD.h that use SPI_SR_REG instead of SPI_S_REG for KL processors. For example, SPI_PDD_ClearInterruptFlags() uses SPI_SR_REG. However, there are a couple of macros that use a #if defined to use the correct SPI_S_REG register such as SPI_PDD_ReadStatusReg(). Is this a known problem?
Solved! Go to Solution.
Hello Tom,
Thank you for your interest in Freescale's kinetis product!
1) This macro is not visible in the list of PDD macros , (although it under the file of SPI_LDD.h) , we'd better use the components that under the Processor Expert project view.
2) From the L series reference manual (e.g. KL25) , the SPIx_S register , the flags are cleared by read that bit , only the " SPMF" nee write to "a " to clear the flag ,while it not interrupt flag.
So, in the L series product ,the SPI_PDD_ClearInterruptFlags() doesn't need .
when you create project use processeor expert , only use the component have .
Best Regards!
ALice
------------------------------------------------------------------------------------------
If this post answers your question, please click the Correct Answer
Hello Tom,
Thank you for your interest in Freescale's kinetis product!
1) This macro is not visible in the list of PDD macros , (although it under the file of SPI_LDD.h) , we'd better use the components that under the Processor Expert project view.
2) From the L series reference manual (e.g. KL25) , the SPIx_S register , the flags are cleared by read that bit , only the " SPMF" nee write to "a " to clear the flag ,while it not interrupt flag.
So, in the L series product ,the SPI_PDD_ClearInterruptFlags() doesn't need .
when you create project use processeor expert , only use the component have .
Best Regards!
ALice
------------------------------------------------------------------------------------------
If this post answers your question, please click the Correct Answer
Thanks. I hadn't realized that the PE project view only listed SUPPORTED PDD macros. This has definitely saved me some time.