Skip to content

Commit

Permalink
Refactoring (warning avoid)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-chernenko committed Sep 9, 2020
1 parent d43d2da commit 9a5683e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/chappi_lmx2594.h
Original file line number Diff line number Diff line change
Expand Up @@ -2125,7 +2125,7 @@ class lmx2594 final : public chip_base<ErrorType, NoerrorValue, DevAddrType,
set_multiplier(lmx2594_multiplier::bypass);
set_divider(1);
set_mash_order(lmx2594_mash_order::frac3);
set_vco_calibration_divider(data.reference);
set_vco_calibration_divider(uint64_t(data.reference));
set_channel_divider(lmx2594_channel_divider::div2);
if (out_frequency > lmx2594_constants::out_frequency::max ||
out_frequency < lmx2594_constants::out_frequency::min) {
Expand All @@ -2149,7 +2149,7 @@ class lmx2594 final : public chip_base<ErrorType, NoerrorValue, DevAddrType,
"lmx2594::set_frequency: pd_frequency out of range");
}
const auto channel_divider =
get_channel_divider(out_frequency, pd_frequency);
get_channel_divider(out_frequency, uint64_t(pd_frequency));
set_channel_divider(channel_divider);
const uint32_t actual_channel_divider =
get_actual_channel_divider(channel_divider);
Expand Down Expand Up @@ -2186,8 +2186,8 @@ class lmx2594 final : public chip_base<ErrorType, NoerrorValue, DevAddrType,
set_fractional_denomerator(denomerator);
set_output_mux(lmx2594_output_a_mux::chdiv);
set_phase_detector_delay(vco_frequency);
set_high_pd_frequency_calibration(pd_frequency);
set_low_pd_frequency_calibration(pd_frequency);
set_high_pd_frequency_calibration(uint32_t(pd_frequency));
set_low_pd_frequency_calibration(uint32_t(pd_frequency));
set_charge_pump_gain(lmx2594_charge_pump_gain::current_15_mA);
update_changes();
vco_calibrate();
Expand Down

0 comments on commit 9a5683e

Please sign in to comment.