Infineon / XMC-for-Arduino

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

- fixed implementation of transfer(buf, count) to match standard Ardu… #249

Closed RudolphRiedel closed 11 months ago

RudolphRiedel commented 1 year ago

…ino implementation

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 ---

Description This fixes the implementation of transfer(buf, count) from void transfer(uint8_t buf, uint8_t count) to void transfer(void buf, size_t count)

As the latter is what is used by the standard Arduino API, see https://github.com/arduino/ArduinoCore-API/blob/master/api/HardwareSPI.h

On top it also removes the limitation in length to 256 bytes while not using an extra buffer anymore that is allocated from the stack.