Macros do indeed require a ! to invoke.

This commit is contained in:
Bob McWhirter 2021-07-12 15:34:34 -04:00
parent 6534b63e01
commit b0b61d99e6

View File

@ -120,19 +120,19 @@ macro_rules! impl_usart_dma_requests {
($channel_peri:ident, $dma_peri:ident, $channel_num:expr) => { ($channel_peri:ident, $dma_peri:ident, $channel_num:expr) => {
dma_requests! { dma_requests! {
(usart, $peri:ident, RX, $request:expr) => { (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) => { (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) => { (uart, $peri:ident, RX, $request:expr) => {
impl_peripheral_channel($channel_peri, M2P, $peri, $request); impl_peripheral_channel!($channel_peri, P2M, $peri, $request);
};
(uart, $peri:ident, TX, $request:expr) => {
impl_peripheral_channel!($channel_peri, M2P, $peri, $request);
}; };
} }
}; };