Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PTP noposix stack
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
PTP noposix stack
Commits
474aa0b2
Commit
474aa0b2
authored
Dec 21, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
softpll: fixed remaining compiler warnings...
parent
303c8360
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
softpll_ng.c
softpll/softpll_ng.c
+3
-0
spll_external.h
softpll/spll_external.h
+1
-4
spll_main.h
softpll/spll_main.h
+2
-1
No files found.
softpll/softpll_ng.c
View file @
474aa0b2
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "board.h"
#include "timer.h"
...
...
@@ -482,6 +483,7 @@ int spll_get_delock_count()
int
spll_update_aux_clocks
()
{
uint32_t
occr_aux_en
=
SPLL_OCCR_OUT_EN_R
(
SPLL
->
OCCR
);
int
i
;
for
(
i
=
0
;
i
<
n_chan_out
-
1
;
i
++
)
...
...
@@ -536,6 +538,7 @@ int spll_update_aux_clocks()
break
;
}
}
return
0
;
}
int
spll_get_aux_status
(
int
channel
)
...
...
softpll/spll_external.h
View file @
474aa0b2
...
...
@@ -86,9 +86,6 @@ static void external_init(volatile struct spll_external_state *s, int ext_ref, i
static
inline
void
realign_fsm
(
struct
spll_external_state
*
s
)
{
uint32_t
eccr
;
switch
(
s
->
realign_state
)
{
case
REALIGN_STAGE1
:
...
...
@@ -144,7 +141,7 @@ static inline void realign_fsm( struct spll_external_state *s)
static
int
external_update
(
struct
spll_external_state
*
s
,
int
tag
,
int
source
)
{
int
err
,
y
,
y2
,
y
d
,
y
lt
;
int
err
,
y
,
y2
,
ylt
;
if
(
source
==
s
->
ref_src
)
{
...
...
softpll/spll_main.h
View file @
474aa0b2
...
...
@@ -84,7 +84,7 @@ static void mpll_stop(volatile struct spll_main_state *s)
static
int
mpll_update
(
volatile
struct
spll_main_state
*
s
,
int
tag
,
int
source
)
{
int
err
,
y
,
tmp
;
int
err
,
y
;
#ifdef WITH_SEQUENCING
int
new_ref
=
-
1
,
new_out
=
-
1
;
...
...
@@ -210,6 +210,7 @@ static int mpll_update(volatile struct spll_main_state *s, int tag, int source)
static
int
mpll_set_phase_shift
(
volatile
struct
spll_main_state
*
s
,
int
desired_shift
)
{
s
->
phase_shift_target
=
desired_shift
;
return
0
;
}
static
int
mpll_shifter_busy
(
volatile
struct
spll_main_state
*
s
)
...
...
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