aboutsummaryrefslogtreecommitdiff
path: root/rtic-monotonics
diff options
context:
space:
mode:
authorYandrik <me@yandrik.dev>2023-03-15 20:17:26 +0100
committerYandrik <me@yandrik.dev>2023-03-15 20:17:26 +0100
commitef12ae6b04fa57371507e4ab49f49cb51c30ee4c (patch)
tree0040ac2adfde39ac64ad5c23a8c5a7d915fc1d63 /rtic-monotonics
parent60e5232ee90c8b05e92b1ffa16c2d770e726e2b1 (diff)
refactor: re-formatted files
Diffstat (limited to 'rtic-monotonics')
-rw-r--r--rtic-monotonics/src/rp2040.rs11
-rw-r--r--rtic-monotonics/src/systick.rs11
2 files changed, 6 insertions, 16 deletions
diff --git a/rtic-monotonics/src/rp2040.rs b/rtic-monotonics/src/rp2040.rs
index f2cc7b6..6aa66ce 100644
--- a/rtic-monotonics/src/rp2040.rs
+++ b/rtic-monotonics/src/rp2040.rs
@@ -139,8 +139,7 @@ impl embedded_hal_async::delay::DelayUs for Timer {
/// Register the Timer interrupt for the monotonic.
#[macro_export]
macro_rules! make_rp2040_monotonic_handler {
- () => {
- {
+ () => {{
#[no_mangle]
#[allow(non_snake_case)]
unsafe extern "C" fn TIMER_IRQ_0() {
@@ -149,12 +148,8 @@ macro_rules! make_rp2040_monotonic_handler {
pub struct Rp2040Token;
- unsafe impl $crate::InterruptToken<$crate::rp2040::Timer>
- for Rp2040Token
- {
- }
+ unsafe impl $crate::InterruptToken<$crate::rp2040::Timer> for Rp2040Token {}
Rp2040Token
- }
- };
+ }};
}
diff --git a/rtic-monotonics/src/systick.rs b/rtic-monotonics/src/systick.rs
index a281783..b228e20 100644
--- a/rtic-monotonics/src/systick.rs
+++ b/rtic-monotonics/src/systick.rs
@@ -157,8 +157,7 @@ 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() {
@@ -167,12 +166,8 @@ macro_rules! make_systick_handler {
pub struct SystickToken;
- unsafe impl $crate::InterruptToken<$crate::systick::Systick>
- for SystickToken
- {
- }
+ unsafe impl $crate::InterruptToken<$crate::systick::Systick> for SystickToken {}
SystickToken
- }
- };
+ }};
}