msdk icon indicating copy to clipboard operation
msdk copied to clipboard

MXC_SDHC_Get_Input_Clock_Freq() in sdhc_me10.c returns the wrong frequency

Open JordanAceto opened this issue 2 months ago • 0 comments

See below. The if condition is flipped so the frequency returned is the opposite of what you'd expect.

https://github.com/analogdevicesinc/msdk/blob/ef6c81dd7e5aa1c102e451b3ee7816198508b5ba/Libraries/PeriphDrivers/Source/SDHC/sdhc_me10.c#L87-L94

Image

It's also a little weird that the definition is called HIRC96_FREQ , since it's actually 120Mhz if I'm not wrong.

JordanAceto avatar Oct 23 '25 16:10 JordanAceto