diff options
Diffstat (limited to 'cpukit/include/dev/i2c/i2c.h')
-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. |