stm32/rtc: remove chrono datetime and add converters

This commit is contained in:
xoviat
2023-04-16 19:30:42 -05:00
parent e9ede443bc
commit 90c1422381
3 changed files with 57 additions and 4 deletions

View File

@@ -1,8 +1,5 @@
//! RTC peripheral abstraction
use core::marker::PhantomData;
#[cfg_attr(feature = "chrono", path = "datetime_chrono.rs")]
#[cfg_attr(not(feature = "chrono"), path = "datetime_no_deps.rs")]
mod datetime;
pub use self::datetime::{DateTime, DayOfWeek, Error as DateTimeError};