LPC546xx - CLOCK_GetFlexCommClkFreq - Error report

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC546xx - CLOCK_GetFlexCommClkFreq - Error report

1,390件の閲覧回数
guillaume-b
Contributor I

I would like to report an error in "CLOCK_GetFlexCommClkFreq function" of "fsl_clock.c" for LPC546xx.

Below my correction :

/* Get FLEXCOMM Clk */
uint32_t CLOCK_GetFlexCommClkFreq(uint32_t id)
{
    return (SYSCON->FCLKSEL[id] == 0U) ? CLOCK_GetFro12MFreq() :
           (SYSCON->FCLKSEL[id] == 1U) ? CLOCK_GetFroHfFreq() :
           //(SYSCON->FCLKSEL[id] == 2U) ? CLOCK_GetPllOutFreq()  : // original error !!!
           //(SYSCON->FCLKSEL[id] == 3U) ? CLOCK_GetI2SMClkFreq() : // original error !!!
           (SYSCON->FCLKSEL[id] == 2U) ? CLOCK_GetAudioPllOutFreq() : // my correction
           (SYSCON->FCLKSEL[id] == 3U) ? CLOCK_GetMclkClkFreq() : // my correction
           (SYSCON->FCLKSEL[id] == 4U) ? CLOCK_GetFreq(kCLOCK_Frg) : 0U;
}

Reference : UM10912 -> 7.5.37 Flexcomm Interface clock source select registers

タグ(1)
0 件の賞賛
返信
1 返信

1,174件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi BOSSARD Guillaume,

Thank you for your interest in NXP Semiconductor products and 
for the opportunity to serve you.

Thanks for your reporting, and I'll transfer it to SDK software team.
Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信