This commit is contained in:
Astro 2020-03-19 22:21:17 +01:00
parent c00c1bb081
commit bec7019f3a
8 changed files with 5 additions and 15 deletions

View File

@ -1,7 +1,7 @@
use core::fmt;
use embedded_hal::digital::v2::OutputPin;
use embedded_hal::blocking::spi::Transfer;
use log::{info, warn};
use log::info;
use super::checksum::{ChecksumMode, Checksum};
use super::AdcError;
use super::{

View File

@ -1,7 +1,7 @@
use core::fmt;
use num_traits::float::Float;
use stm32f4xx_hal::{
time::{MegaHertz, U32Ext},
time::MegaHertz,
spi,
};

View File

@ -37,4 +37,3 @@ impl ChannelState {
self.dac_value = (output * (ad5680::MAX_VALUE as f64)) as u32;
}
}

View File

@ -7,7 +7,7 @@ use nom::{
bytes::complete::{is_a, tag, take_while1},
character::{is_digit, complete::{char, one_of}},
combinator::{complete, map, opt, value},
sequence::{preceded, separated_pair},
sequence::preceded,
multi::{fold_many0, fold_many1},
error::ErrorKind,
};

View File

@ -383,9 +383,6 @@ fn main() -> ! {
Ok(SessionOutput::Error(e)) => {
let _ = writeln!(socket, "Command error: {:?}", e);
}
Ok(o) => {
let _ = writeln!(socket, "Not yet implemented");
}
Err(_) =>
socket.close(),
}

View File

@ -1,7 +1,3 @@
use embedded_hal::{
blocking::spi::Transfer,
digital::v2::OutputPin,
};
use stm32f4xx_hal::{
gpio::{
AF5, Alternate,
@ -17,9 +13,9 @@ use stm32f4xx_hal::{
},
rcc::Clocks,
pwm::{self, PwmChannels},
spi::{self, Spi, NoMiso},
spi::{Spi, NoMiso},
stm32::{GPIOA, GPIOB, GPIOC, GPIOE, GPIOF, GPIOG, SPI2, SPI4, SPI5, TIM1, TIM3},
time::{U32Ext, Hertz, MegaHertz},
time::U32Ext,
};

View File

@ -1,4 +1,3 @@
use core::fmt;
use core::mem::MaybeUninit;
use smoltcp::{
iface::EthernetInterface,

View File

@ -1,4 +1,3 @@
use core::ops::Deref;
use super::command_parser::{Command, Error as ParserError};
const MAX_LINE_LEN: usize = 64;