Commit 5cce6590 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

ljd: fix compilation warnings

parent a612ba01
......@@ -71,6 +71,8 @@ extern int wrc_ui_refperiod;
/* Init functions and defaults for the wrs build */
int ad9516_init(int scb_ver, int ljd_present);
int ext_ad9516_init(void);
int ext_ad9516_locked(void);
void rts_init(void);
int rtipc_init(void);
void rts_update(void);
......
......@@ -107,6 +107,7 @@ void spll_set_dac(int out_channel, int value);
int spll_get_dac(int out_channel);
void check_vco_frequencies(void);
int spll_measure_frequency(int osc);
/*
* Aux and main state:
......
......@@ -131,7 +131,7 @@ int external_align_fsm(volatile struct spll_external_state *s)
if(!ljd_present && SPLL->ECCR & SPLL_ECCR_EXT_REF_STOPPED )
s->align_state = ALIGN_STATE_WAIT_CLKIN;
else if((!ljd_present && SPLL->ECCR & SPLL_ECCR_EXT_REF_LOCKED ) ||
ljd_present && ext_ad9516_locked())
(ljd_present && ext_ad9516_locked()))
s->align_state = ALIGN_STATE_START;
done_sth++;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment