msdk
msdk copied to clipboard
MXC_SDHC_Get_Input_Clock_Freq() in sdhc_me10.c returns the wrong frequency
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
It's also a little weird that the definition is called HIRC96_FREQ , since it's actually 120Mhz if I'm not wrong.