Test: Correct delay function for FP interrupt test
Use osDelay instead of osDelayUntil, for osDelayUntil waits until
specified time which is not suitable for FP interrupt test.
Signed-off-by: Feder Liang <feder.liang@arm.com>
Change-Id: I6c96d17107a078963d952b397c9372118636f7f5
diff --git a/app/os_wrapper_cmsis_rtos_v2.c b/app/os_wrapper_cmsis_rtos_v2.c
index 1e188ab..f582b07 100755
--- a/app/os_wrapper_cmsis_rtos_v2.c
+++ b/app/os_wrapper_cmsis_rtos_v2.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2021, Arm Limited. All rights reserved.
+ * Copyright (c) 2017-2022, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
@@ -262,11 +262,11 @@
return OS_WRAPPER_ERROR;
}
-int32_t os_wrapper_delay_until(uint32_t ticks)
+int32_t os_wrapper_delay(uint32_t ticks)
{
osStatus_t status;
- status = osDelayUntil(ticks);
+ status = osDelay(ticks);
if (status == osOK) {
return OS_WRAPPER_SUCCESS;
}