Status code definitions for erros

Hello,

I’m wondering if RIOT has got Status error code definitions? It would be useful when using I2C or any communication protocol.

Best,

Baptiste

Hi Baptiste, for the network stack I used the negative errno definitions as return values provided by newlib (or clib on native or avr-clib on arduino or msb430-clib on msb-430 ;-)) and afaik this is the consensus.

Best, Martine

Thank you. Do you know what I should use for the SAMR21 Xplained pro board? I will have a look on which lib to use.

Best,

Baptiste

Hi,

Thanks a lot for your answer, that’s good to know! I think someone should add it to the programming rules in the wiki.

Best,

Baptiste

Hi Baptiste

I think someone should add it to the programming rules in the wiki.

Good idea! Please feel free to do it yourself if you want to. The wiki should be editable by every Github user.

Cheers, Oleg