Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr-switch-hdl
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
white-rabbit
wr-switch-hdl
Commits
9376f7e9
Commit
9376f7e9
authored
Mar 13, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rt/softpll-ng.c: code snapshot correctly compiling
parent
ceb1897b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
softpll_ng.c
rt/dev/softpll_ng.c
+6
-5
No files found.
rt/dev/softpll_ng.c
View file @
9376f7e9
...
...
@@ -23,8 +23,8 @@ static volatile struct SPLL_WB *SPLL = (volatile struct SPLL_WB *) BASE_SOFTPLL;
#include "spll_main.h"
#include "spll_ptracker.h"
static
struct
spll_helper_state
helper
;
static
struct
spll_main_state
mpll
;
static
volatile
struct
spll_helper_state
helper
;
static
volatile
struct
spll_main_state
mpll
;
void
_irq_entry
()
{
...
...
@@ -71,7 +71,7 @@ void spll_init()
int
spll_check_lock
()
{
return
helper
.
phase
.
ld
.
locked
?
1
:
0
;
return
helper
.
ld
.
locked
?
1
:
0
;
}
#define CHAN_TCXO 8
...
...
@@ -83,12 +83,13 @@ void spll_test()
spll_init
();
helper_start
(
&
helper
,
0
);
helper_init
(
&
helper
,
0
);
helper_start
(
&
helper
);
mpll_init
(
&
mpll
,
0
,
CHAN_TCXO
);
enable_irq
();
// mpll_init(&mpll, 0, CHAN_TCXO);
while
(
!
helper
.
phase
.
ld
.
locked
)
;
//TRACE("%d\n", helper.phase.ld.locked);
while
(
!
helper
.
ld
.
locked
)
;
//TRACE("%d\n", helper.phase.ld.locked);
TRACE
(
"Helper locked, starting main
\n
"
);
mpll_start
(
&
mpll
);
...
...
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