diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-12-08 15:56:26 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-02-02 15:01:21 +0100 |
commit | 36304f3d7a32fc4e7573fa6f3db2efb437416639 (patch) | |
tree | a04e2caef8ad8365d13236ab487aa37ee408c79e /cpukit/include/dev/spi | |
parent | i2c: Use self-contained mutex (diff) | |
download | rtems-36304f3d7a32fc4e7573fa6f3db2efb437416639.tar.bz2 |
spi: Use self-contained mutex
Update #2843.
Diffstat (limited to 'cpukit/include/dev/spi')
-rw-r--r-- | cpukit/include/dev/spi/spi.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/include/dev/spi/spi.h b/cpukit/include/dev/spi/spi.h index 66bbac2427..f0f84f1461 100644 --- a/cpukit/include/dev/spi/spi.h +++ b/cpukit/include/dev/spi/spi.h @@ -7,7 +7,7 @@ */ /* - * Copyright (c) 2016 embedded brains GmbH. All rights reserved. + * Copyright (c) 2016, 2017 embedded brains GmbH. All rights reserved. * * embedded brains GmbH * Dornierstr. 4 @@ -27,6 +27,7 @@ #include <rtems.h> #include <rtems/seterr.h> +#include <rtems/thread.h> #ifdef __cplusplus extern "C" { @@ -96,7 +97,7 @@ struct spi_bus { /** * @brief Mutex to protect the bus access. */ - rtems_id mutex; + rtems_recursive_mutex mutex; /** * @brief Maximum Speed in Hz |