Infineon / XMC-for-Arduino

Integration of Infineon's XMC microcontrollers into the Arduino IDE.
Other
106 stars 67 forks source link

fix RingBuffer initialization #273

Closed LinjingZhang closed 4 months ago

LinjingZhang commented 5 months ago

By creating this pull request you agree to the terms in CONTRIBUTING.md. https://github.com/Infineon/.github/blob/master/CONTRIBUTING.md --- DO NOT DELETE ANYTHING ABOVE THIS LINE ---

CONTRIBUTING.md also tells you what to expect in the PR process.

Description solve the I2S serial port print problem refer to Arduino Core API: https://github.com/arduino/ArduinoCore-API/tree/master

Related Issue DESMAKERS-3603

Context I'm not good at c++ and I'm really not sure why new operator is not working here. It allocate dynamic memory and looks the same to me with or without the change... but the microphone example is not working using new. And also the ArduinoCore is using memset (why?