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
c8611397
Commit
c8611397
authored
Sep 15, 2021
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev: fix data size and use datasheet-provided default value in AD9910 FS current register
parent
dffe6ec2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ad9910.c
dev/ad9910.c
+3
-3
No files found.
dev/ad9910.c
View file @
c8611397
...
...
@@ -31,7 +31,7 @@ static struct ad9910_config_reg ad9910_default_config[] = {
{
0
,
0x02000002
|
(
1
<<
13
),
32
},
// CFR1, unidir mode for SDIO, autoclear phase accumulator on IOUPDATE
{
1
,
0x00000800
,
32
},
// CFR2, TW - enabled sync pulse timing validation
{
2
,
0x1f3fc000
,
32
},
// CFR3: no PLL
{
3
,
0x0000
7f
64
,
32
},
// Aux DAC control: DAC Full scale current
{
3
,
0x0000
00
64
,
32
},
// Aux DAC control: DAC Full scale current
{
4
,
0xffffffff
,
32
},
// IO update rate
{
7
,
0x00000000
,
32
},
// default FTW
{
8
,
0x0000
,
16
},
// default phase offset
...
...
@@ -111,8 +111,8 @@ int ad9910_program( struct ad9910_device *dev, uint64_t ftw_n, int phase, int fs
if
(
r
.
addr
==
3
)
{
r
.
value
&=
0xffffff00
;
r
.
value
|=
fs_current
;
// Aux DAC control: DAC Full scale current
r
.
value
&=
0xffffff00
ULL
;
r
.
value
|=
(
uint64_t
)
fs_current
;
// Aux DAC control: DAC Full scale current
}
else
if
(
r
.
addr
==
0xe
)
// profile 0
r
.
value
=
prof0_cr
;
...
...
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