aboutsummaryrefslogtreecommitdiffstats
path: root/os/lib/include/chmemheaps.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-03-22 08:25:37 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-03-22 08:25:37 +0000
commitef83e007f110af0c1c9dd3874fc0b84f982960c9 (patch)
tree21878527850578ba7eba81b60d4ba4767045bdca /os/lib/include/chmemheaps.h
parenta28b3e44ca453a85740bd9bdb23b95bd3d4c4f6b (diff)
downloadChibiOS-ef83e007f110af0c1c9dd3874fc0b84f982960c9.tar.gz
ChibiOS-ef83e007f110af0c1c9dd3874fc0b84f982960c9.tar.bz2
ChibiOS-ef83e007f110af0c1c9dd3874fc0b84f982960c9.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11834 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/lib/include/chmemheaps.h')
-rw-r--r--os/lib/include/chmemheaps.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/lib/include/chmemheaps.h b/os/lib/include/chmemheaps.h
index 59248a89e..c0ebcbb99 100644
--- a/os/lib/include/chmemheaps.h
+++ b/os/lib/include/chmemheaps.h
@@ -97,7 +97,7 @@ struct memory_heap {
memgetfunc2_t provider; /**< @brief Memory blocks provider for
this heap. */
heap_header_t header; /**< @brief Free blocks list header. */
-#if CH_CFG_USE_MUTEXES == TRUE
+#if (CH_CFG_USE_MUTEXES == TRUE) || defined(__DOXYGEN__)
mutex_t mtx; /**< @brief Heap access mutex. */
#else
semaphore_t sem; /**< @brief Heap access semaphore. */