diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-15 11:49:26 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-15 11:49:26 +0000 |
commit | d603586e3302704a9a80e52ad382abcadd6d34a8 (patch) | |
tree | 6be9571e069218a0ea214e7eb901d7e253144b7f | |
parent | fe3507eb99e7c411fb12c94ac38f3b689fcb7caa (diff) | |
download | ChibiOS-d603586e3302704a9a80e52ad382abcadd6d34a8.tar.gz ChibiOS-d603586e3302704a9a80e52ad382abcadd6d34a8.tar.bz2 ChibiOS-d603586e3302704a9a80e52ad382abcadd6d34a8.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10826 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/common/abstractions/cmsis_os/cmsis_os.c | 4 | ||||
-rw-r--r-- | os/common/abstractions/nasa_cfe/osal/src/osapi.c | 8 | ||||
-rw-r--r-- | readme.txt | 4 |
3 files changed, 10 insertions, 6 deletions
diff --git a/os/common/abstractions/cmsis_os/cmsis_os.c b/os/common/abstractions/cmsis_os/cmsis_os.c index 3af580ee0..a871b761f 100644 --- a/os/common/abstractions/cmsis_os/cmsis_os.c +++ b/os/common/abstractions/cmsis_os/cmsis_os.c @@ -510,7 +510,7 @@ osStatus osMessagePut(osMessageQId queue_id, chSysUnlockFromISR();
}
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;
}
@@ -541,7 +541,7 @@ osEvent osMessageGet(osMessageQId queue_id, chSysUnlockFromISR();
}
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.*/
diff --git a/os/common/abstractions/nasa_cfe/osal/src/osapi.c b/os/common/abstractions/nasa_cfe/osal/src/osapi.c index 28088165e..5107b6f79 100644 --- a/os/common/abstractions/nasa_cfe/osal/src/osapi.c +++ b/os/common/abstractions/nasa_cfe/osal/src/osapi.c @@ -819,21 +819,21 @@ int32 OS_QueueGet(uint32 queue_id, void *data, uint32 size, /* Special time handling.*/
if (timeout == OS_PEND) {
- msgsts = chMBFetch(&oqp->mb, &msg, TIME_INFINITE);
+ msgsts = chMBFetchTimeout(&oqp->mb, &msg, TIME_INFINITE);
if (msgsts < MSG_OK) {
*size_copied = 0;
return OS_ERROR;
}
}
else if (timeout == OS_CHECK) {
- msgsts = chMBFetch(&oqp->mb, &msg, TIME_IMMEDIATE);
+ msgsts = chMBFetchTimeout(&oqp->mb, &msg, TIME_IMMEDIATE);
if (msgsts < MSG_OK) {
*size_copied = 0;
return OS_QUEUE_EMPTY;
}
}
else {
- msgsts = chMBFetch(&oqp->mb, &msg, (systime_t)timeout);
+ msgsts = chMBFetchTimeout(&oqp->mb, &msg, (systime_t)timeout);
if (msgsts < MSG_OK) {
*size_copied = 0;
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);
/* 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) {
return OS_ERROR;
}
diff --git a/readme.txt b/readme.txt index c46aabcf5..a9ed0edb6 100644 --- a/readme.txt +++ b/readme.txt @@ -89,6 +89,10 @@ *****************************************************************************
*** 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: The chconf.h configuration files now are tagged with the version
number for safety. The system rejects obsolete files during
|