aboutsummaryrefslogtreecommitdiff
path: root/embassy-imxrt/src/lib.rs
diff options
context:
space:
mode:
authorFelipe Balbi <[email protected]>2025-05-07 10:40:43 -0700
committerFelipe Balbi <[email protected]>2025-05-07 16:25:06 -0700
commit42c62ba8999df08ad34d566f30f0a7199dbae083 (patch)
treeae416839a2eef772a6c4e7979a912cbac70a8c94 /embassy-imxrt/src/lib.rs
parent297ff3d03229bedb2582c171be23b488ecc4e520 (diff)
Add OS Event timer support
Allow for the use of the OS Event timer as a time source. Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'embassy-imxrt/src/lib.rs')
-rw-r--r--embassy-imxrt/src/lib.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/embassy-imxrt/src/lib.rs b/embassy-imxrt/src/lib.rs
index fdf07b433..ad9f81e88 100644
--- a/embassy-imxrt/src/lib.rs
+++ b/embassy-imxrt/src/lib.rs
@@ -132,12 +132,10 @@ pub fn init(config: config::Config) -> Peripherals {
132 error!("unable to initialize Clocks for reason: {:?}", e); 132 error!("unable to initialize Clocks for reason: {:?}", e);
133 // Panic here? 133 // Panic here?
134 } 134 }
135 gpio::init();
136 } 135 }
137
138 // init RTC time driver
139 #[cfg(feature = "_time-driver")] 136 #[cfg(feature = "_time-driver")]
140 time_driver::init(config.time_interrupt_priority); 137 time_driver::init(config.time_interrupt_priority);
138 gpio::init();
141 139
142 peripherals 140 peripherals
143} 141}