pounder: also adapt to new hal
This commit is contained in:
parent
c5fde8563c
commit
672ddfa3c3
|
@ -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