analogdevicesinc / TMC-API

TRINAMIC's IC API
MIT License
198 stars 89 forks source link

Redefinition of ARRAY_SIZE macro #36

Closed dennismalcorps closed 1 year ago

dennismalcorps commented 1 year ago

Hello everyone,

while working on integrating the TMC2300 into one of our projects, we got a redefinition warning of the above mentioned macro, because our microcontroller sdk implements this too. After a quick glimpse into your code, it turns out there is a missing #ifndev...#endif around ARRAY_SIZE.

trinamic-ASU commented 1 year ago

Thank you for the suggestion and your valuable feedback. We have fixed this issue now.