SPI001_Configure() return value SPI001_ERROR is not an error?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User5581
Level 3
Level 3
When using SPI001 [1.0.18] with the XMC4500, I find that the return value of a successful call to SPI001_Configure() returns SPI001_ERROR and an unsuccessful call results in SPI001_INVALID_PARAM.

There is no value in the SPI001_StatusType enum like SPI001_OK or similar name. It seems to me like a successfully completed function call should not return the enum value for an error. I'd like to suggest that the App developers address this in future versions of SPI001.
0 Likes
1 Reply
Not applicable
Hi zoompig,

Thank you very much for the feedback. The return value of a successful call to SPI001_Configure() [Status = (uint32_t)DAVEApp_SUCCESS] is missing in SPI001.c. The change request has been submitted [eTicket 55765629]. We will inform you once fixed.

Best regards,
Sophia
0 Likes