Yes, I'm pointing i2sPtr at the head of the i2s_rx_buf array for the half event and halfway into the array for the full event. If you'd rather, you can just change the memory compares to "memcmp(i2s_rx_buf, pattern, I2S_HALF_BUF*sizeof(int16_t))" for the half and "memcmp(&i2s_rx_buf[I2S_HALF_BUF], pattern, I2S_HALF_BUF*sizeof(int16_t))" for the full event.
Thanks, I appreciate the help.
Using new I2S Driver
Moderator: RoccoMarco
- Giovanni
- Site Admin
- Posts: 14892
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: Using new I2S Driver
Hi,
I think I found the problem, please update from the repository and try again.
Giovanni
I think I found the problem, please update from the repository and try again.
Giovanni
Re: Using new I2S Driver
Now I'm seeing a good sample, followed by a zero. This looks correct for stereo sound, but since I have mono input, this is probably a configuration issue on my end. Funny that the only issue was forgetting to set the word size on the peripheral end.
Thanks, Giovanni!
Thanks, Giovanni!