Fixed bug 3184139.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_2.2.x@2745 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
gdisirio 2011-02-20 07:43:14 +00:00
parent c33b36c8ff
commit 5e7184bcdd
3 changed files with 3 additions and 2 deletions

View File

@ -77,7 +77,7 @@ typedef struct {
* @param[in] taken the semaphore initial state
*/
#define _BSEMAPHORE_DATA(name, taken) \
{_SEMAPHORE_DATA(name.bs_sem), ((taken) ? 0 : 1)}
{_SEMAPHORE_DATA(name.bs_sem, ((taken) ? 0 : 1))}
/**
* @brief Static semaphore initializer.

View File

@ -70,6 +70,7 @@
*** 2.2.1 ***
- FIX: Fixed missing e200z test report (bug 3182611).
- FIX: Fixed error in _BSEMAPHORE_DATA macro (bug 3184139).
- FIX: Error in MAC driver (bug 3179783).
- FIX: Fixed wrong serial driver macros (bug 3173336).

View File

@ -257,7 +257,7 @@ static msg_t thread4(void *p) {
}
static void sem4_execute(void) {
BinarySemaphore bsem;
BSEMAPHORE_DECL(bsem, TRUE);
/* Creates a taken binary semaphore.*/
chBSemInit(&bsem, TRUE);