Should SPI_LDD.h macros be using SPI_S_REG instead of SPI_SR_REG for KL processors?

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

Should SPI_LDD.h macros be using SPI_S_REG instead of SPI_SR_REG for KL processors?

Jump to solution
514 Views
tomdaugherty
Contributor II

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?

Labels (1)
0 Kudos
1 Solution
414 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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

View solution in original post

0 Kudos
2 Replies
415 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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

0 Kudos
414 Views
tomdaugherty
Contributor II

Thanks. I hadn't realized that the PE project view only listed SUPPORTED PDD macros. This has definitely saved me some time.

0 Kudos