cpu/nrf51: Updated i2c_release()

This commit is contained in:
Marian Buschsieweke 2019-08-22 11:54:43 +02:00
parent a4810f3276
commit 01f77433a8
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -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,