spi: Use self-contained mutex

Update #2843.
This commit is contained in:
Sebastian Huber
2017-12-08 15:56:26 +01:00
parent dc158ad4ec
commit 36304f3d7a
2 changed files with 9 additions and 32 deletions

View File

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