forked from M-Labs/artiq
firmware: fix warnings.
This commit is contained in:
parent
f317d1a2c6
commit
1e896d4ba8
@ -392,6 +392,7 @@ fn dac_setup(linerate: u64) -> Result<(), &'static str> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn dac_status() {
|
||||
info!("SERDES_PLL_LOCK: {}",
|
||||
(read(ad9154_reg::PLL_STATUS) & ad9154_reg::SERDES_PLL_LOCK_RB));
|
||||
@ -487,6 +488,7 @@ fn dac_monitor() {
|
||||
write(ad9154_reg::IRQ_STATUS3, 0x00);
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn dac_prbs(dacno: u8, p: u8, t: u32) {
|
||||
/* follow phy prbs testing (p58 of ad9154 datasheet) */
|
||||
|
||||
|
@ -198,6 +198,8 @@ impl<'a> Library<'a> {
|
||||
|
||||
pub fn load(data: &[u8], image: &'a mut [u8], resolve: &Fn(&[u8]) -> Option<Elf32_Word>)
|
||||
-> Result<Library<'a>, Error<'a>> {
|
||||
#![allow(unused_assignments)]
|
||||
|
||||
let ehdr = read_unaligned::<Elf32_Ehdr>(data, 0)
|
||||
.map_err(|()| "cannot read ELF header")?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user