Merge pull request #257 from quartiq/rj/bump-hal-smoltcp
bump HAL and smoltcp
This commit is contained in:
commit
a44804f3c1
|
@ -956,9 +956,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "smoltcp"
|
name = "smoltcp"
|
||||||
version = "0.6.0"
|
version = "0.7.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "0fe46639fd2ec79eadf8fe719f237a7a0bd4dac5d957f1ca5bbdbc1c3c39e53a"
|
checksum = "ab527c390c7e107f687bd92a886a083fde61b8cdc700b37f3d7e4346ffd8fae1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"byteorder",
|
"byteorder",
|
||||||
|
@ -1012,7 +1012,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "stm32h7xx-hal"
|
name = "stm32h7xx-hal"
|
||||||
version = "0.8.0"
|
version = "0.8.0"
|
||||||
source = "git+https://github.com/stm32-rs/stm32h7xx-hal?branch=dma#3da22d4935c8f6e412b99e6662ec11da5265fb88"
|
source = "git+https://github.com/stm32-rs/stm32h7xx-hal?branch=dma#2b8a04caac566a8560f400ddd6503508f78bea77"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bare-metal 1.0.0",
|
"bare-metal 1.0.0",
|
||||||
"cast",
|
"cast",
|
||||||
|
|
|
@ -50,7 +50,7 @@ ad9959 = { path = "ad9959" }
|
||||||
git = "https://github.com/mrd0ll4r/mcp23017.git"
|
git = "https://github.com/mrd0ll4r/mcp23017.git"
|
||||||
|
|
||||||
[dependencies.smoltcp]
|
[dependencies.smoltcp]
|
||||||
version = "0.6"
|
version = "0.7"
|
||||||
features = ["ethernet", "proto-ipv4", "socket-tcp", "proto-ipv6"]
|
features = ["ethernet", "proto-ipv4", "socket-tcp", "proto-ipv6"]
|
||||||
default-features = false
|
default-features = false
|
||||||
|
|
||||||
|
|
|
@ -180,18 +180,21 @@ macro_rules! adc_input {
|
||||||
hal::spi::Spi<hal::stm32::$spi, hal::spi::Disabled, u16>,
|
hal::spi::Spi<hal::stm32::$spi, hal::spi::Disabled, u16>,
|
||||||
PeripheralToMemory,
|
PeripheralToMemory,
|
||||||
&'static mut [u16; SAMPLE_BUFFER_SIZE],
|
&'static mut [u16; SAMPLE_BUFFER_SIZE],
|
||||||
|
hal::dma::DBTransfer,
|
||||||
>,
|
>,
|
||||||
trigger_transfer: Transfer<
|
trigger_transfer: Transfer<
|
||||||
hal::dma::dma::$trigger_stream<hal::stm32::DMA1>,
|
hal::dma::dma::$trigger_stream<hal::stm32::DMA1>,
|
||||||
[< $spi CR >],
|
[< $spi CR >],
|
||||||
MemoryToPeripheral,
|
MemoryToPeripheral,
|
||||||
&'static mut [u32; 1],
|
&'static mut [u32; 1],
|
||||||
|
hal::dma::DBTransfer,
|
||||||
>,
|
>,
|
||||||
clear_transfer: Transfer<
|
clear_transfer: Transfer<
|
||||||
hal::dma::dma::$clear_stream<hal::stm32::DMA1>,
|
hal::dma::dma::$clear_stream<hal::stm32::DMA1>,
|
||||||
[< $spi IFCR >],
|
[< $spi IFCR >],
|
||||||
MemoryToPeripheral,
|
MemoryToPeripheral,
|
||||||
&'static mut [u32; 1],
|
&'static mut [u32; 1],
|
||||||
|
hal::dma::DBTransfer,
|
||||||
>,
|
>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -239,6 +242,7 @@ macro_rules! adc_input {
|
||||||
_,
|
_,
|
||||||
MemoryToPeripheral,
|
MemoryToPeripheral,
|
||||||
_,
|
_,
|
||||||
|
_,
|
||||||
> = Transfer::init(
|
> = Transfer::init(
|
||||||
clear_stream,
|
clear_stream,
|
||||||
[< $spi IFCR >]::new(clear_channel),
|
[< $spi IFCR >]::new(clear_channel),
|
||||||
|
@ -276,6 +280,7 @@ macro_rules! adc_input {
|
||||||
_,
|
_,
|
||||||
MemoryToPeripheral,
|
MemoryToPeripheral,
|
||||||
_,
|
_,
|
||||||
|
_,
|
||||||
> = Transfer::init(
|
> = Transfer::init(
|
||||||
trigger_stream,
|
trigger_stream,
|
||||||
[< $spi CR >]::new(trigger_channel),
|
[< $spi CR >]::new(trigger_channel),
|
||||||
|
@ -306,7 +311,7 @@ macro_rules! adc_input {
|
||||||
|
|
||||||
// The data transfer is always a transfer of data from the peripheral to a RAM
|
// The data transfer is always a transfer of data from the peripheral to a RAM
|
||||||
// buffer.
|
// buffer.
|
||||||
let data_transfer: Transfer<_, _, PeripheralToMemory, _> =
|
let data_transfer: Transfer<_, _, PeripheralToMemory, _, _> =
|
||||||
Transfer::init(
|
Transfer::init(
|
||||||
data_stream,
|
data_stream,
|
||||||
spi,
|
spi,
|
||||||
|
|
|
@ -122,6 +122,7 @@ macro_rules! dac_output {
|
||||||
$spi,
|
$spi,
|
||||||
MemoryToPeripheral,
|
MemoryToPeripheral,
|
||||||
&'static mut [u16; SAMPLE_BUFFER_SIZE],
|
&'static mut [u16; SAMPLE_BUFFER_SIZE],
|
||||||
|
hal::dma::DBTransfer,
|
||||||
>,
|
>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,7 +165,7 @@ macro_rules! dac_output {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Construct the trigger stream to write from memory to the peripheral.
|
// Construct the trigger stream to write from memory to the peripheral.
|
||||||
let transfer: Transfer<_, _, MemoryToPeripheral, _> =
|
let transfer: Transfer<_, _, MemoryToPeripheral, _, _> =
|
||||||
Transfer::init(
|
Transfer::init(
|
||||||
stream,
|
stream,
|
||||||
$spi::new(trigger_channel, spi),
|
$spi::new(trigger_channel, spi),
|
||||||
|
|
|
@ -37,8 +37,6 @@ pub type AFE1 = afe::ProgrammableGainAmplifier<
|
||||||
|
|
||||||
// Type alias for the ethernet interface on Stabilizer.
|
// Type alias for the ethernet interface on Stabilizer.
|
||||||
pub type Ethernet = smoltcp::iface::EthernetInterface<
|
pub type Ethernet = smoltcp::iface::EthernetInterface<
|
||||||
'static,
|
|
||||||
'static,
|
|
||||||
'static,
|
'static,
|
||||||
hal::ethernet::EthernetDMA<'static>,
|
hal::ethernet::EthernetDMA<'static>,
|
||||||
>;
|
>;
|
||||||
|
|
|
@ -43,6 +43,7 @@ pub struct Timestamper {
|
||||||
timers::tim8::Channel1InputCapture,
|
timers::tim8::Channel1InputCapture,
|
||||||
PeripheralToMemory,
|
PeripheralToMemory,
|
||||||
&'static mut [u16; SAMPLE_BUFFER_SIZE],
|
&'static mut [u16; SAMPLE_BUFFER_SIZE],
|
||||||
|
hal::dma::DBTransfer,
|
||||||
>,
|
>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,7 +90,7 @@ impl Timestamper {
|
||||||
input_capture.listen_dma();
|
input_capture.listen_dma();
|
||||||
|
|
||||||
// The data transfer is always a transfer of data from the peripheral to a RAM buffer.
|
// The data transfer is always a transfer of data from the peripheral to a RAM buffer.
|
||||||
let data_transfer: Transfer<_, _, PeripheralToMemory, _> =
|
let data_transfer: Transfer<_, _, PeripheralToMemory, _, _> =
|
||||||
Transfer::init(
|
Transfer::init(
|
||||||
stream,
|
stream,
|
||||||
input_capture,
|
input_capture,
|
||||||
|
|
Loading…
Reference in New Issue