Other Parts Discussed in Thread: CC2650, CC2541, CC2640, SYSBIOS, CC1310
Hi again e2e.
I've taken a bit of a different approach after finding some useful info in the TRM + digging thru doxygen.
Before I go into new code details, I have a high level question:
Question 1a: How do the settings for WCLK and the peripheral differ when you are using a single Microphone? 1b: Does that mean that BCLK = MCLK?
I would think you want an idle or disabled WCLK, since you are not multiplexing any audio with a single Mic.
I am also guessing that we should be using PRCMAudioClockConfigSetOverride, to have direct access to WCLK settings,
since the driver is expecting multiple audio channels.
In any case, section 22.9.1 of the TRM - "Start-up Sequence", gives a lot of detail on the order of operations for setting this up.
Question 2: When setting up the PRCM clock, after calling PRCMLoadSet(), should we be waiting on PRCMLoadGet() before proceeding?
The latest code is below, now using driverlib APIs instead of direct HWREG calls, in most cases.
I have omitted steps 5-8 because I am not yet certain steps 1-4 are properly implemented.
Once I can get the clocking set up properly, I can start actually tuning the I2S module settings to get the data into the cc2650.
// 1. Set up and configure required ADx and clock pins
