diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-12-08 15:47:09 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-02-02 15:01:21 +0100 |
commit | dc158ad4ec9546a826d2a4ea3ec09dcbdaa594f2 (patch) | |
tree | 94c92883cbd889d19092fe42dcf8efec30735efb /cpukit/include/dev | |
parent | termios: Use self-contained objects (diff) | |
download | rtems-dc158ad4ec9546a826d2a4ea3ec09dcbdaa594f2.tar.bz2 |
i2c: Use self-contained mutex
Update #2843.
Diffstat (limited to 'cpukit/include/dev')
-rw-r--r-- | cpukit/include/dev/i2c/i2c.h | 5 |
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. |