Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
689c8d9e
Commit
689c8d9e
authored
May 09, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sutl_sleep added
parent
97c40278
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
ssabox/lib/ssabox/src/ssabox_ssabutil.c
ssabox/lib/ssabox/src/ssabox_ssabutil.c
+22
-1
ssabox/lib/ssabox/src/ssabox_ssabutil.h
ssabox/lib/ssabox/src/ssabox_ssabutil.h
+2
-1
No files found.
ssabox/lib/ssabox/src/ssabox_ssabutil.c
View file @
689c8d9e
/*
* Proview $Id: ssabox_ssabutil.c,v 1.
2 2006-01-13 06:38:27
claes Exp $
* Proview $Id: ssabox_ssabutil.c,v 1.
3 2007-05-09 14:00:08
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -42,6 +42,7 @@
#include "pwr.h"
#include "rt_gdh.h"
#include "ssabox_ssabutil.h"
#include "co_time.h"
/* Nice functions */
#define ODD(a) (((int)(a) & 1) != 0)
...
...
@@ -190,3 +191,23 @@ pwr_tInt32 ssabutil_chksum_calculate( pwr_tInt32 value,
/* END_OF ssabutil_chksum_calculate */
pwr_tStatus
sutl_sleep
(
float
time
)
{
#ifdef OS_VMS
int
sts
;
sts
=
lib
$
wait
(
&
time
);
#elif OS_ELN
LARGE_INTEGER
l_time
;
l_time
.
high
=
-
1
;
l_time
.
low
=
-
time
*
10000000
;
ker
$
wait_any
(
NULL
,
NULL
,
&
l_time
);
#elif defined(OS_LYNX) || defined (OS_LINUX)
pwr_tDeltaTime
p_time
;
time_FloatToD
(
&
p_time
,
time
);
nanosleep
(
(
pwr_tTime
*
)
&
p_time
,
NULL
);
#endif
return
1
;
}
ssabox/lib/ssabox/src/ssabox_ssabutil.h
View file @
689c8d9e
/*
* Proview $Id: ssabox_ssabutil.h,v 1.
1 2006-01-12 05:54:27
claes Exp $
* Proview $Id: ssabox_ssabutil.h,v 1.
2 2007-05-09 14:00:08
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -57,6 +57,7 @@ int ssab_curve_2d( float x,
#define SSAB_CURVE( x, y, table) ssab_curve( x, y, (float *)&table,\
sizeof(table)/sizeof(table[0]))
pwr_tStatus
sutl_sleep
(
float
time
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment