diff options
Diffstat (limited to 'os/kernel')
-rw-r--r-- | os/kernel/src/chheap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/os/kernel/src/chheap.c b/os/kernel/src/chheap.c index ede326b59..820f15362 100644 --- a/os/kernel/src/chheap.c +++ b/os/kernel/src/chheap.c @@ -41,6 +41,8 @@ #if CH_USE_HEAP
+#if !CH_USE_MALLOC_HEAP
+
/*
* Defaults on the best synchronization mechanism available.
*/
@@ -52,8 +54,6 @@ #define H_UNLOCK(h) chSemSignal(&(h)->h_sem)
#endif
-#if !CH_USE_MALLOC_HEAP
-
/**
* @brief Default heap descriptor.
*/
@@ -253,7 +253,7 @@ size_t chHeapStatus(MemoryHeap *heapp, size_t *sizep) { #if CH_USE_MUTEXES
#define H_LOCK() chMtxLock(&hmtx)
-#define H_UNLOCK() chMtxUnock()
+#define H_UNLOCK() chMtxUnlock()
static Mutex hmtx;
#elif CH_USE_SEMAPHORES
#define H_LOCK() chSemWait(&hsem)
|