Fixed bug 3184139.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2746 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
11af394fec
commit
25832577af
|
@ -70,7 +70,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.
|
||||
|
|
|
@ -71,6 +71,8 @@
|
|||
*** 2.3.0 ***
|
||||
- FIX: Stack overflow in CM0 port when nearing interrupts saturation (bug
|
||||
3187105)(backported to 2.2.1).
|
||||
- FIX: Fixed error in _BSEMAPHORE_DATA macro (bug 3184139)(backported to
|
||||
2.2.1).
|
||||
- FIX: Error in MAC driver (bug 3179783)(backported to 2.2.1).
|
||||
- FIX: Fixed wrong serial driver macros (bug 3173336)(backported to 2.2.1).
|
||||
- NEW: Added experimental generic USB driver, it will evolve in next
|
||||
|
|
|
@ -250,7 +250,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);
|
||||
|
|
Loading…
Reference in New Issue