In the Init_I2S PE module:
If you set transmit configuration->word flag configuration to 1, this is the comment and code generated (I2S1.c):
/* I2S0_RCR3: RCE=0,WDFL=0 */
I2S0_RCR3 &= (uint32_t)~(uint32_t)((I2S_RCR3_RCE(0x03) | I2S_RCR3_WDFL(0x1F)));
seems the comment is correct, code not so much?
(K20F120M project)
已解决! 转到解答。
Hi,
Please note that RCR register is for receiver, not transmitter. I don't see any issues in the code, it's just maybe little bit difficult to read (uses 1 masks and then inverts them using ~ operator...)
Best regards
Petr Hradsky
Processor Expert Support Team
Hi,
Please note that RCR register is for receiver, not transmitter. I don't see any issues in the code, it's just maybe little bit difficult to read (uses 1 masks and then inverts them using ~ operator...)
Best regards
Petr Hradsky
Processor Expert Support Team