git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10826 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
fe3507eb99
commit
d603586e33
|
@ -510,7 +510,7 @@ osStatus osMessagePut(osMessageQId queue_id,
|
||||||
chSysUnlockFromISR();
|
chSysUnlockFromISR();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
msg = chMBPost((mailbox_t *)queue_id, (msg_t)info, timeout);
|
msg = chMBPostTimeout((mailbox_t *)queue_id, (msg_t)info, timeout);
|
||||||
|
|
||||||
return msg == MSG_OK ? osOK : osEventTimeout;
|
return msg == MSG_OK ? osOK : osEventTimeout;
|
||||||
}
|
}
|
||||||
|
@ -541,7 +541,7 @@ osEvent osMessageGet(osMessageQId queue_id,
|
||||||
chSysUnlockFromISR();
|
chSysUnlockFromISR();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
msg = chMBFetch((mailbox_t *)queue_id, (msg_t*)&event.value.v, timeout);
|
msg = chMBFetchTimeout((mailbox_t *)queue_id, (msg_t*)&event.value.v, timeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Returned event type.*/
|
/* Returned event type.*/
|
||||||
|
|
|
@ -819,21 +819,21 @@ int32 OS_QueueGet(uint32 queue_id, void *data, uint32 size,
|
||||||
|
|
||||||
/* Special time handling.*/
|
/* Special time handling.*/
|
||||||
if (timeout == OS_PEND) {
|
if (timeout == OS_PEND) {
|
||||||
msgsts = chMBFetch(&oqp->mb, &msg, TIME_INFINITE);
|
msgsts = chMBFetchTimeout(&oqp->mb, &msg, TIME_INFINITE);
|
||||||
if (msgsts < MSG_OK) {
|
if (msgsts < MSG_OK) {
|
||||||
*size_copied = 0;
|
*size_copied = 0;
|
||||||
return OS_ERROR;
|
return OS_ERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (timeout == OS_CHECK) {
|
else if (timeout == OS_CHECK) {
|
||||||
msgsts = chMBFetch(&oqp->mb, &msg, TIME_IMMEDIATE);
|
msgsts = chMBFetchTimeout(&oqp->mb, &msg, TIME_IMMEDIATE);
|
||||||
if (msgsts < MSG_OK) {
|
if (msgsts < MSG_OK) {
|
||||||
*size_copied = 0;
|
*size_copied = 0;
|
||||||
return OS_QUEUE_EMPTY;
|
return OS_QUEUE_EMPTY;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
msgsts = chMBFetch(&oqp->mb, &msg, (systime_t)timeout);
|
msgsts = chMBFetchTimeout(&oqp->mb, &msg, (systime_t)timeout);
|
||||||
if (msgsts < MSG_OK) {
|
if (msgsts < MSG_OK) {
|
||||||
*size_copied = 0;
|
*size_copied = 0;
|
||||||
return OS_QUEUE_TIMEOUT;
|
return OS_QUEUE_TIMEOUT;
|
||||||
|
@ -901,7 +901,7 @@ int32 OS_QueuePut(uint32 queue_id, void *data, uint32 size, uint32 flags) {
|
||||||
memcpy(omsg->buf, data, size);
|
memcpy(omsg->buf, data, size);
|
||||||
|
|
||||||
/* Posting the message.*/
|
/* Posting the message.*/
|
||||||
msgsts = chMBPost(&oqp->mb, (msg_t)omsg, TIME_INFINITE);
|
msgsts = chMBPostTimeout(&oqp->mb, (msg_t)omsg, TIME_INFINITE);
|
||||||
if (msgsts < MSG_OK) {
|
if (msgsts < MSG_OK) {
|
||||||
return OS_ERROR;
|
return OS_ERROR;
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,6 +89,10 @@
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
|
|
||||||
*** Next ***
|
*** Next ***
|
||||||
|
- NEW: Updated STM32F1xx headers to 1.6, STM32F3xx to 1.9, STM32L0xx to 1.10,
|
||||||
|
STM32L4xx to 1.9, STM32H7xx to 1.1.
|
||||||
|
- NEW: Updated CMSIS to 5.1.1, changed directories organization under
|
||||||
|
/os/ext/ARM/CMSIS to match the one in CMSIS, removed /os/ext/CMSIS.
|
||||||
- NEW: Integrated lwIP 2.0.3 and improved lwIP bindings.
|
- NEW: Integrated lwIP 2.0.3 and improved lwIP bindings.
|
||||||
- NEW: The chconf.h configuration files now are tagged with the version
|
- NEW: The chconf.h configuration files now are tagged with the version
|
||||||
number for safety. The system rejects obsolete files during
|
number for safety. The system rejects obsolete files during
|
||||||
|
|
Loading…
Reference in New Issue