aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/src
diff options
context:
space:
mode:
authorecarusi <ecarusi@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-07-05 17:47:44 +0000
committerecarusi <ecarusi@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-07-05 17:47:44 +0000
commite3a5e25315231a31932e865d3f6be9c1cd1f159b (patch)
tree9bca9bb66b20fc3f2b2f73212f0c0cf585c4164d /os/kernel/src
parentf03a012a2d196dd26b0c8ae38bcd397956346352 (diff)
downloadChibiOS-e3a5e25315231a31932e865d3f6be9c1cd1f159b.tar.gz
ChibiOS-e3a5e25315231a31932e865d3f6be9c1cd1f159b.tar.bz2
ChibiOS-e3a5e25315231a31932e865d3f6be9c1cd1f159b.zip
CH_USE_MALLOC_HEAP and H_(UN)LOCK redefinition fix
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2055 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/src')
-rw-r--r--os/kernel/src/chheap.c6
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)