ad9959/pounder: tweaks
* make a trait public * use self-test * this hasn't been tested
This commit is contained in:
parent
1b46f081c1
commit
611bd3e855
|
@ -597,7 +597,7 @@ pub fn setup(
|
||||||
let ref_clk: hal::time::Hertz =
|
let ref_clk: hal::time::Hertz =
|
||||||
design_parameters::DDS_REF_CLK.into();
|
design_parameters::DDS_REF_CLK.into();
|
||||||
|
|
||||||
let ad9959 = ad9959::Ad9959::new(
|
let mut ad9959 = ad9959::Ad9959::new(
|
||||||
qspi_interface,
|
qspi_interface,
|
||||||
reset_pin,
|
reset_pin,
|
||||||
&mut io_update,
|
&mut io_update,
|
||||||
|
@ -608,6 +608,8 @@ pub fn setup(
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
ad9959.self_test().unwrap();
|
||||||
|
|
||||||
// Return IO_Update
|
// Return IO_Update
|
||||||
gpiog.pg7 = io_update.into_analog();
|
gpiog.pg7 = io_update.into_analog();
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ mod dac;
|
||||||
pub mod design_parameters;
|
pub mod design_parameters;
|
||||||
mod digital_input_stamper;
|
mod digital_input_stamper;
|
||||||
mod eeprom;
|
mod eeprom;
|
||||||
mod pounder;
|
pub mod pounder;
|
||||||
mod timers;
|
mod timers;
|
||||||
|
|
||||||
pub use adc::{Adc0Input, Adc1Input};
|
pub use adc::{Adc0Input, Adc1Input};
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
mod attenuators;
|
pub mod attenuators;
|
||||||
mod dds_output;
|
mod dds_output;
|
||||||
pub mod hrtimer;
|
pub mod hrtimer;
|
||||||
mod rf_power;
|
mod rf_power;
|
||||||
|
|
Loading…
Reference in New Issue