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
146c1411
Commit
146c1411
authored
Aug 07, 2014
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
softpll: fix compilation warnings
parent
29b5155a
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
4 deletions
+13
-4
trace.h
include/trace.h
+2
-0
softpll_ng.c
softpll/softpll_ng.c
+2
-0
spll_common.c
softpll/spll_common.c
+2
-0
spll_external.c
softpll/spll_external.c
+3
-2
spll_external.h
softpll/spll_external.h
+2
-2
spll_main.c
softpll/spll_main.c
+2
-0
No files found.
include/trace.h
View file @
146c1411
...
...
@@ -2,12 +2,14 @@
#define __FREESTANDING_TRACE_H__
#ifdef CONFIG_WR_NODE
#include <wrc.h>
#define TRACE_WRAP(...)
#define TRACE_DEV(...) wrc_debug_printf(0, __VA_ARGS__)
#else
/* WR_SWITCH */
#include <pp-printf.h>
#define TRACE(...) pp_printf(__VA_ARGS__)
#define TRACE_DEV(...) pp_printf(__VA_ARGS__)
...
...
softpll/softpll_ng.c
View file @
146c1411
...
...
@@ -658,6 +658,8 @@ static int spll_measure_frequency(int osc)
case
SPLL_OSC_EXT
:
reg
=
&
SPLL
->
F_EXT
;
break
;
default:
return
0
;
}
timer_delay_ms
(
2000
);
...
...
softpll/spll_common.c
View file @
146c1411
...
...
@@ -10,6 +10,8 @@
/* spll_common.c - common data structures and functions used by the SoftPLL */
#include <string.h>
#include <pp-printf.h>
#include "trace.h"
#include "spll_defs.h"
#include "spll_common.h"
...
...
softpll/spll_external.c
View file @
146c1411
...
...
@@ -13,6 +13,7 @@
#include "spll_external.h"
#include "spll_debug.h"
#include <pp-printf.h>
#include "trace.h"
#include "irq.h"
...
...
@@ -58,7 +59,7 @@ void external_start(struct spll_external_state *s)
spll_debug
(
DBG_EVENT
|
DBG_EXT
,
DBG_EVT_START
,
1
);
}
int
external_locked
(
struct
spll_external_state
*
s
)
int
external_locked
(
volatile
struct
spll_external_state
*
s
)
{
if
(
!
s
->
helper
->
ld
.
locked
||
!
s
->
main
->
ld
.
locked
)
return
0
;
...
...
@@ -90,7 +91,7 @@ static int align_sample(int channel, int *v)
return
0
;
// sample not valid
}
void
external_align_fsm
(
struct
spll_external_state
*
s
)
void
external_align_fsm
(
volatile
struct
spll_external_state
*
s
)
{
int
v
;
switch
(
s
->
align_state
)
{
...
...
softpll/spll_external.h
View file @
146c1411
...
...
@@ -35,8 +35,8 @@ void external_init(volatile struct spll_external_state *s, int ext_ref,
void
external_start
(
struct
spll_external_state
*
s
);
int
external_locked
(
struct
spll_external_state
*
s
);
int
external_locked
(
volatile
struct
spll_external_state
*
s
);
void
external_align_fsm
(
struct
spll_external_state
*
s
);
void
external_align_fsm
(
volatile
struct
spll_external_state
*
s
);
#endif // __SPLL_EXTERNAL_H
softpll/spll_main.c
View file @
146c1411
...
...
@@ -11,6 +11,8 @@
#include "spll_main.h"
#include "spll_debug.h"
#include <pp-printf.h>
#include "trace.h"
#define MPLL_TAG_WRAPAROUND 100000000
...
...
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