cpu/sam0_common: Updated i2c_release()

This commit is contained in:
Marian Buschsieweke 2019-08-22 11:57:29 +02:00
parent b604934189
commit dd56b3bb71
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -22,6 +22,7 @@
* @}
*/
#include <assert.h>
#include <stdint.h>
#include <errno.h>
@ -164,11 +165,10 @@ int i2c_acquire(i2c_t dev)
return 0;
}
int i2c_release(i2c_t dev)
void i2c_release(i2c_t dev)
{
assert(dev < I2C_NUMOF);
mutex_unlock(&locks[dev]);
return 0;
}
int i2c_read_bytes(i2c_t dev, uint16_t addr,