[riot-notifications] [RIOT-OS/RIOT] periph/i2c: return values of i2c_aquire and i2c_release (#10673)
notifications at github.com
Thu Jan 24 13:22:00 CET 2019
I think I like removing the return value so `void acquire(i2c_t dev)` and `void release(i2c_t dev)` and adding asserts along with an optional `static inline int i2c_is_dev_valid(i2c_t dev) return (dev < I2C_NUMOF);`
It can be the smallest footprint and allows for the most versatility.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications