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
master
ecarusi 2010-07-05 17:47:44 +00:00
parent f03a012a2d
commit e3a5e25315
1 changed files with 3 additions and 3 deletions

View File

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