We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83d09b1 commit 87729a6Copy full SHA for 87729a6
src/dma/macros.rs
@@ -125,6 +125,7 @@ macro_rules! peripheral_target_instance {
125
unsafe impl TargetAddress<M2P> for spi::Spi<$peripheral, spi::Disabled, $size> {
126
#[inline(always)]
127
fn address(&self) -> usize {
128
+ use spi::SpiAllExt;
129
&self.inner().$txreg as *const _ as usize
130
}
131
@@ -136,6 +137,7 @@ macro_rules! peripheral_target_instance {
136
137
unsafe impl TargetAddress<P2M> for spi::Spi<$peripheral, spi::Disabled, $size> {
138
139
140
141
&self.inner().$rxreg as *const _ as usize
142
143
0 commit comments