changeset 344:c51d6b3748c3

OSL: os_SuspendTask() done
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 03 May 2014 19:20:05 +0000
parents e3a2e6e875de
children 460ed6748e4c
files gsm-fw/gpf/osl/os_pro_ir.c
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/gpf/osl/os_pro_ir.c	Sat May 03 17:46:36 2014 +0000
+++ b/gsm-fw/gpf/osl/os_pro_ir.c	Sat May 03 19:20:05 2014 +0000
@@ -18,9 +18,22 @@
 
 extern VOID *TCD_Current_Thread;
 extern T_OS_TASK_TABLE_ENTRY TaskTable[];
+extern unsigned os_time_to_tick_multiplier;
 
 VOID
 os_TaskEntry(UNSIGNED TaskHandle, VOID *argv)
 {
 	TaskTable[TaskHandle].TaskEntry(TaskHandle, 0);
 }
+
+GLOBAL LONG
+os_SuspendTask(OS_HANDLE Caller, ULONG Time)
+{
+	UNSIGNED SuspendTicks;
+
+	SuspendTicks = TIME_TO_SYSTEM_TICKS(Time);
+	if (!SuspendTicks)
+		SuspendTicks = 1;
+	NU_Sleep(SuspendTicks);
+	return (OS_OK);
+}