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
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
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
f9ffa4b4
Commit
f9ffa4b4
authored
Apr 04, 2022
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdiags.c: static-ify
parent
f79e3c04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wdiags.c
dev/wdiags.c
+4
-4
No files found.
dev/wdiags.c
View file @
f9ffa4b4
...
...
@@ -21,11 +21,11 @@
#if defined(BASE_WDIAGS_PRIV)
static
void
*
wdiags_base
=
(
void
*
)(
BASE_WDIAGS_PRIV
);
#else
static
void
*
wdiags_base
=
NULL
;
static
void
*
wdiags_base
=
NULL
;
#endif
int
wdiag_write
(
uint32_t
reg
,
uint32_t
value
)
static
int
wdiag_write
(
uint32_t
reg
,
uint32_t
value
)
{
if
(
!
wdiags_base
)
return
-
1
;
...
...
@@ -35,7 +35,7 @@ int wdiag_write( uint32_t reg, uint32_t value )
return
0
;
}
uint32_t
wdiag_read
(
uint32_t
reg
)
static
uint32_t
wdiag_read
(
uint32_t
reg
)
{
if
(
!
wdiags_base
)
return
0xdeadbeef
;
...
...
@@ -136,7 +136,7 @@ void wdiags_set_base_address( void *base )
wdiags_base
=
base
;
}
int
wdiags_init
()
int
wdiags_init
(
void
)
{
int
i
;
...
...
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