Using new I2S Driver

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Lemming
Posts: 6
Joined: Mon Apr 07, 2014 2:53 pm

Re: Using new I2S Driver

Post by Lemming »

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.
User avatar
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

Post by Giovanni »

Hi,

I think I found the problem, please update from the repository and try again.

Giovanni
Lemming
Posts: 6
Joined: Mon Apr 07, 2014 2:53 pm

Re: Using new I2S Driver

Post by Lemming »

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!
Post Reply