diff options
| author | Felipe Balbi <[email protected]> | 2025-05-07 08:33:03 -0700 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2025-05-07 08:33:03 -0700 |
| commit | 70e2c052056e31f06ac67d69fda503f07cae46d0 (patch) | |
| tree | f39ddd0d4e437d318efb81a0b78d556c7cd7d17c /embassy-imxrt/src | |
| parent | 6034b17728b3528e42c8499a2893dc35d51d5590 (diff) | |
Rename rtc.rs to time_driver.rs
We will add another time driver for user selection.
Diffstat (limited to 'embassy-imxrt/src')
| -rw-r--r-- | embassy-imxrt/src/lib.rs | 4 | ||||
| -rw-r--r-- | embassy-imxrt/src/time_driver.rs (renamed from embassy-imxrt/src/rtc.rs) | 0 |
2 files changed, 2 insertions, 2 deletions
diff --git a/embassy-imxrt/src/lib.rs b/embassy-imxrt/src/lib.rs index 5fbf3244b..fdf07b433 100644 --- a/embassy-imxrt/src/lib.rs +++ b/embassy-imxrt/src/lib.rs | |||
| @@ -22,7 +22,7 @@ pub mod gpio; | |||
| 22 | pub mod iopctl; | 22 | pub mod iopctl; |
| 23 | 23 | ||
| 24 | #[cfg(feature = "_time-driver")] | 24 | #[cfg(feature = "_time-driver")] |
| 25 | pub mod rtc; | 25 | pub mod time_driver; |
| 26 | 26 | ||
| 27 | // This mod MUST go last, so that it sees all the `impl_foo!' macros | 27 | // This mod MUST go last, so that it sees all the `impl_foo!' macros |
| 28 | #[cfg_attr(feature = "mimxrt633s", path = "chips/mimxrt633s.rs")] | 28 | #[cfg_attr(feature = "mimxrt633s", path = "chips/mimxrt633s.rs")] |
| @@ -137,7 +137,7 @@ pub fn init(config: config::Config) -> Peripherals { | |||
| 137 | 137 | ||
| 138 | // init RTC time driver | 138 | // init RTC time driver |
| 139 | #[cfg(feature = "_time-driver")] | 139 | #[cfg(feature = "_time-driver")] |
| 140 | rtc::init(config.time_interrupt_priority); | 140 | time_driver::init(config.time_interrupt_priority); |
| 141 | 141 | ||
| 142 | peripherals | 142 | peripherals |
| 143 | } | 143 | } |
diff --git a/embassy-imxrt/src/rtc.rs b/embassy-imxrt/src/time_driver.rs index 56a8f7397..56a8f7397 100644 --- a/embassy-imxrt/src/rtc.rs +++ b/embassy-imxrt/src/time_driver.rs | |||
