Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
31
Issues
31
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
82bd9e44
Commit
82bd9e44
authored
Jan 06, 2013
by
Aurelio Colosimo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "spec_time function copied from ppsi"
This reverts commit
9d082540
.
parent
12e951fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
22 deletions
+0
-22
syscon.c
dev/syscon.c
+0
-20
syscon.h
include/syscon.h
+0
-2
No files found.
dev/syscon.c
View file @
82bd9e44
...
...
@@ -44,23 +44,3 @@ void timer_delay(uint32_t how_long)
while
(
t_start
+
how_long
>
timer_get_tics
())
;
}
/* return a monotonic seconds count from the counter above;
* FIXME horrible obsolete code, still used by ppsi */
int
spec_time
(
void
)
{
static
uint32_t
prev
,
secs
;
static
int
rest
;
/* millisecs */
uint32_t
tics
=
timer_get_tics
();
if
(
!
prev
)
{
prev
=
tics
;
secs
=
1
;
/* Start from a small number! */
return
secs
;
}
rest
+=
tics
-
prev
;
secs
+=
rest
/
1000
;
rest
%=
1000
;
prev
=
tics
;
return
secs
;
}
include/syscon.h
View file @
82bd9e44
...
...
@@ -60,6 +60,4 @@ static inline int sysc_get_memsize()
return
(
SYSC_HWFR_MEMSIZE_R
(
syscon
->
HWFR
)
+
1
)
*
16
;
}
int
spec_time
(
void
);
#endif
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