cpu/sam0_common: Updated i2c_release()
This commit is contained in:
parent
b604934189
commit
dd56b3bb71
@ -22,6 +22,7 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
@ -164,11 +165,10 @@ int i2c_acquire(i2c_t dev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int i2c_release(i2c_t dev)
|
void i2c_release(i2c_t dev)
|
||||||
{
|
{
|
||||||
assert(dev < I2C_NUMOF);
|
assert(dev < I2C_NUMOF);
|
||||||
mutex_unlock(&locks[dev]);
|
mutex_unlock(&locks[dev]);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int i2c_read_bytes(i2c_t dev, uint16_t addr,
|
int i2c_read_bytes(i2c_t dev, uint16_t addr,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user