Missing functions in fsl_clock for LPC845

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

Missing functions in fsl_clock for LPC845

863 Views
1234567890
Contributor IV

There exist functions like

uint32_t CLOCK_GetUart0ClkFreq(void);

in the actual fsl_clock driver, but not for e.g. SPI or I2C.

Also register definitions for UARTxCLKSEL, I2CxCLKSEL and SPIxCLKSEL are not present (I would assume in LPC845.h).

By the way: There is a c&P-error in UM11029, 8.6.26:

pastedImage_1.png

It must be B0 instead of AC.

Labels (1)
0 Kudos
Reply
1 Reply

819 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi  12345 67890,

Thank you for your comments!

I will check if the functions that you pointed out will be included on the upcoming SDK release for the LPC845, if not I will report it.

Also register definitions for UARTxCLKSEL, I2CxCLKSEL and SPIxCLKSEL are not present (I would assume in LPC845.h).

In this case, their register definitions are not made explicitly, however  they are accessible through the FCLKSEL array.

 __IO uint32_t FCLKSEL[11];                      

/**< peripheral clock source select register. FCLK0SEL~FCLK4SEL are for UART0~UART4 clock source select register. FCLK5SEL~FCLK8SEL are for I2C0~I2C3 clock source select register. FCLK9SEL~FCLK10SEL are for SPI0~SPI1 clock source select register., array offset: 0x90, array step: 0x4 */

By the way: There is a c&P-error in UM11029, 8.6.26:

I have reported this copy and paste error.

Thank you!

Regards,

Diego.

0 Kudos
Reply