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
29
Issues
29
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
8641301b
Commit
8641301b
authored
Nov 26, 2020
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
boards/ertm14: minor fixes for clarity of code
parent
a01d16cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ertm15_rf_distr.c
boards/ertm14/ertm15_rf_distr.c
+4
-3
No files found.
boards/ertm14/ertm15_rf_distr.c
View file @
8641301b
...
...
@@ -234,16 +234,17 @@ static int convert_power( int adc_value )
#define ADC_CH_LO_DDS_PA 0
#define ADC_CH_LO_DDS_DISTR 1
#define ADC_CH_REF_DDS_PA 2
#define ADC_CH_REF_DDS_DISTR 3
#define ADC_CHANNEL_MASK 0xf
int
ertm15_rf_distr_measure_power
(
struct
ertm15_rf_distribution_device
*
dev
)
{
int
i
;
ad7888_start_conversion
(
dev
->
pwr_mon_adc
,
0x0f
);
ad7888_start_conversion
(
dev
->
pwr_mon_adc
,
ADC_CHANNEL_MASK
);
while
(
dev
->
pwr_mon_adc
->
channel_valid
!=
0x0f
)
while
(
dev
->
pwr_mon_adc
->
channel_valid
!=
ADC_CHANNEL_MASK
)
{
ad7888_poll
(
dev
->
pwr_mon_adc
);
timer_delay_ms
(
1
);
...
...
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