Skip to content

Commit 1c2c023

Browse files
committed
Corrected osDelayUntil implementation (#10)
1 parent e5bf8e2 commit 1c2c023

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

ARM.CMSIS-FreeRTOS.pdsc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
<license>License/license.txt</license>
99

1010
<releases>
11-
<release version="10.0.1-rc0" date="2018-02-20">
11+
<release version="10.0.2-dev0">
12+
CMSIS:RTOS2:FreeRTOS update:
13+
- Corrected osDelayUntil execution duration
14+
</release>
15+
<release version="10.0.1" date="2018-02-20">
1216
FreeRTOS 10.0.0
1317
Maintenance for CMSIS 5.3.0:
1418
- Added queue registry support to CMSIS:RTOS2:FreeRTOS component.
@@ -325,7 +329,7 @@
325329
</component>
326330

327331
<!-- CMSIS-RTOS2 FreeRTOS component -->
328-
<component Cclass="CMSIS" Cgroup="RTOS2" Csub="FreeRTOS" Cversion="10.0.1" Capiversion="2.1.2" condition="FreeRTOS RTOS2 CortexM">
332+
<component Cclass="CMSIS" Cgroup="RTOS2" Csub="FreeRTOS" Cversion="10.0.2" Capiversion="2.1.2" condition="FreeRTOS RTOS2 CortexM">
329333
<description>CMSIS-RTOS2 implementation for Cortex-M based on FreeRTOS</description>
330334
<RTE_Components_h>
331335
#define RTE_CMSIS_RTOS2 /* CMSIS-RTOS2 */
@@ -342,7 +346,7 @@
342346
</files>
343347
</component>
344348

345-
<component Cclass="CMSIS" Cgroup="RTOS2" Csub="FreeRTOS" Cversion="10.0.1" Capiversion="2.1.2" condition="FreeRTOS RTOS2 CortexA">
349+
<component Cclass="CMSIS" Cgroup="RTOS2" Csub="FreeRTOS" Cversion="10.0.2" Capiversion="2.1.2" condition="FreeRTOS RTOS2 CortexA">
346350
<description>CMSIS-RTOS2 implementation for Cortex-A based on FreeRTOS</description>
347351
<RTE_Components_h>
348352
#define RTE_CMSIS_RTOS2 /* CMSIS-RTOS2 */

CMSIS/RTOS2/FreeRTOS/Source/cmsis_os2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* --------------------------------------------------------------------------
2-
* Copyright (c) 2013-2017 Arm Limited. All rights reserved.
2+
* Copyright (c) 2013-2018 Arm Limited. All rights reserved.
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -813,7 +813,7 @@ osStatus_t osDelayUntil (uint32_t ticks) {
813813
stat = osOK;
814814
tcnt = xTaskGetTickCount();
815815

816-
vTaskDelayUntil (&tcnt, (TickType_t)ticks);
816+
vTaskDelayUntil (&tcnt, (TickType_t)(ticks - tcnt));
817817
}
818818

819819
return (stat);

0 commit comments

Comments
 (0)