summaryrefslogtreecommitdiff
path: root/embassy-stm32
diff options
context:
space:
mode:
authorBob McWhirter <bmcwhirt@redhat.com>2021-07-12 15:34:34 -0400
committerBob McWhirter <bmcwhirt@redhat.com>2021-07-13 10:09:35 -0400
commitb0b61d99e69980d8c30923148d32c3f7aa50fcc0 (patch)
tree2c48a5dbf41b3d78d03b51b904551d2d62e84106 /embassy-stm32
parent6534b63e01b1f7d16f62743f007a2e9c43f9ec56 (diff)
downloadembassy-b0b61d99e69980d8c30923148d32c3f7aa50fcc0.zip
Macros do indeed require a ! to invoke.
Diffstat (limited to 'embassy-stm32')
-rw-r--r--embassy-stm32/src/dmamux/mod.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/embassy-stm32/src/dmamux/mod.rs b/embassy-stm32/src/dmamux/mod.rs
index f6625146..564b8236 100644
--- a/embassy-stm32/src/dmamux/mod.rs
+++ b/embassy-stm32/src/dmamux/mod.rs
@@ -120,19 +120,19 @@ macro_rules! impl_usart_dma_requests {
($channel_peri:ident, $dma_peri:ident, $channel_num:expr) => {
dma_requests! {
(usart, $peri:ident, RX, $request:expr) => {
- impl_peripheral_channel($channel_peri, P2M, $peri, $request);
+ impl_peripheral_channel!($channel_peri, P2M, $peri, $request);
};
(usart, $peri:ident, TX, $request:expr) => {
- impl_peripheral_channel($channel_peri, M2P, $peri, $request);
+ impl_peripheral_channel!($channel_peri, M2P, $peri, $request);
};
- (uart, $peri:ident, TX, $request:expr) => {
- impl_peripheral_channel($channel_peri, P2M, $peri, $request);
+ (uart, $peri:ident, RX, $request:expr) => {
+ impl_peripheral_channel!($channel_peri, P2M, $peri, $request);
};
- (uart, $peri:ident, RX, $request:expr) => {
- impl_peripheral_channel($channel_peri, M2P, $peri, $request);
+ (uart, $peri:ident, TX, $request:expr) => {
+ impl_peripheral_channel!($channel_peri, M2P, $peri, $request);
};
}
};