aboutsummaryrefslogtreecommitdiff
path: root/rtic-monotonics/src/systick.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2023-03-15 19:21:13 +0000
committerGitHub <noreply@github.com>2023-03-15 19:21:13 +0000
commitd18955a13450257c0a7725130beef44f21217138 (patch)
tree5bd060104b7a316cea1870fb4a74503bb8624931 /rtic-monotonics/src/systick.rs
parente145269914227e0af2fc082c3cf490489b8bc979 (diff)
parentef12ae6b04fa57371507e4ab49f49cb51c30ee4c (diff)
Merge #703
703: fix(rtic-sync): used fully qualified paths in Channel Macro r=korken89 a=Yandrik Other imports with the name `Channel` (e.g. from Embassy) broke this macro. Now they don't. Co-authored-by: Yandrik <me@yandrik.dev>
Diffstat (limited to 'rtic-monotonics/src/systick.rs')
-rw-r--r--rtic-monotonics/src/systick.rs13
1 files changed, 4 insertions, 9 deletions
diff --git a/rtic-monotonics/src/systick.rs b/rtic-monotonics/src/systick.rs
index feefc7e..b228e20 100644
--- a/rtic-monotonics/src/systick.rs
+++ b/rtic-monotonics/src/systick.rs
@@ -157,22 +157,17 @@ impl embedded_hal_async::delay::DelayUs for Systick {
/// Register the Systick interrupt for the monotonic.
#[macro_export]
macro_rules! make_systick_handler {
- () => {
- {
+ () => {{
#[no_mangle]
#[allow(non_snake_case)]
unsafe extern "C" fn SysTick() {
- rtic_monotonics::systick::Systick::__tq().on_monotonic_interrupt();
+ $crate::systick::Systick::__tq().on_monotonic_interrupt();
}
pub struct SystickToken;
- unsafe impl rtic_monotonics::InterruptToken<rtic_monotonics::systick::Systick>
- for SystickToken
- {
- }
+ unsafe impl $crate::InterruptToken<$crate::systick::Systick> for SystickToken {}
SystickToken
- }
- };
+ }};
}