cpu/nrf51: Updated i2c_release()
This commit is contained in:
parent
a4810f3276
commit
01f77433a8
@ -28,6 +28,7 @@
|
|||||||
*
|
*
|
||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "mutex.h"
|
#include "mutex.h"
|
||||||
@ -139,12 +140,11 @@ 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 address, void *data, size_t length,
|
int i2c_read_bytes(i2c_t dev, uint16_t address, void *data, size_t length,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user