summaryrefslogtreecommitdiffstats
path: root/cpukit/include/dev
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-12-08 15:47:09 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-02-02 15:01:21 +0100
commitdc158ad4ec9546a826d2a4ea3ec09dcbdaa594f2 (patch)
tree94c92883cbd889d19092fe42dcf8efec30735efb /cpukit/include/dev
parenttermios: Use self-contained objects (diff)
downloadrtems-dc158ad4ec9546a826d2a4ea3ec09dcbdaa594f2.tar.bz2
i2c: Use self-contained mutex
Update #2843.
Diffstat (limited to 'cpukit/include/dev')
-rw-r--r--cpukit/include/dev/i2c/i2c.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/include/dev/i2c/i2c.h b/cpukit/include/dev/i2c/i2c.h
index 2ace4fcf64..5f6caf699e 100644
--- a/cpukit/include/dev/i2c/i2c.h
+++ b/cpukit/include/dev/i2c/i2c.h
@@ -7,7 +7,7 @@
*/
/*
- * Copyright (c) 2014 embedded brains GmbH. All rights reserved.
+ * Copyright (c) 2014, 2017 embedded brains GmbH. All rights reserved.
*
* embedded brains GmbH
* Dornierstr. 4
@@ -28,6 +28,7 @@
#include <rtems.h>
#include <rtems/seterr.h>
+#include <rtems/thread.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
@@ -139,7 +140,7 @@ struct i2c_bus {
/**
* @brief Mutex to protect the bus access.
*/
- rtems_id mutex;
+ rtems_recursive_mutex mutex;
/**
* @brief Default slave device address.