Currently I'm trying to run 2 different slaves on the same SSI (SSI2). The problem is that they require different clock speeds. I can not use different SSI because the slaves are on the same chip thus sharing the CLK, MISO, MOSI, DC.
I have used this function to set the clocks at 400kHz and 16MHz
ROM_SSIConfigSetExpClk (SSI2_BASE, ROM_SysCtlClockGet (),SSI_FRF_MOTO_MODE_0, SSI_MODE_MASTER, 400000, 8);
ROM_SSIConfigSetExpClk (SSI2_BASE, ROM_SysCtlClockGet (), SSI_FRF_MOTO_MODE_0, SSI_MODE_MASTER, 16000000, 8);
Is there a function to switch between these two clocks?
As an added note, which I don't know whether it's relevant or not but will be embedded into a freeRtos program.