diff options
| author | Roy <[email protected]> | 2025-07-02 15:24:01 +0300 |
|---|---|---|
| committer | Roi Bachynskyi <[email protected]> | 2025-07-18 15:22:36 +0300 |
| commit | 6d79c4c81187d5f2704e2d2f72a3deba05ca449a (patch) | |
| tree | 0ec84178e5964300d5836908a1054619debdc131 /embassy-nxp/src/lib.rs | |
| parent | 3e1b0e4aec11888d6ea41ef5c62d6d2912d81eae (diff) | |
feat: added log-to-defmt feature
Signed-off-by: Roy <[email protected]>
Diffstat (limited to 'embassy-nxp/src/lib.rs')
| -rw-r--r-- | embassy-nxp/src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/embassy-nxp/src/lib.rs b/embassy-nxp/src/lib.rs index 433aca9e0..79c66e7f6 100644 --- a/embassy-nxp/src/lib.rs +++ b/embassy-nxp/src/lib.rs | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | pub mod gpio; | 3 | pub mod gpio; |
| 4 | #[cfg(feature = "lpc55")] | 4 | #[cfg(feature = "lpc55")] |
| 5 | pub mod pint; | 5 | pub mod pint; |
| 6 | |||
| 7 | // This mod MUST go last, so that it sees all the `impl_foo!` macros | 6 | // This mod MUST go last, so that it sees all the `impl_foo!` macros |
| 8 | #[cfg_attr(feature = "lpc55", path = "chips/lpc55.rs")] | 7 | #[cfg_attr(feature = "lpc55", path = "chips/lpc55.rs")] |
| 9 | mod chip; | 8 | mod chip; |
| @@ -25,8 +24,10 @@ pub fn init(_config: config::Config) -> Peripherals { | |||
| 25 | { | 24 | { |
| 26 | gpio::init(); | 25 | gpio::init(); |
| 27 | pint::init(); | 26 | pint::init(); |
| 27 | #[cfg(feature = "log-to-defmt")] | ||
| 28 | log_to_defmt::setup(); | ||
| 29 | log::info!("Initialization complete"); | ||
| 28 | } | 30 | } |
| 29 | |||
| 30 | crate::Peripherals::take() | 31 | crate::Peripherals::take() |
| 31 | } | 32 | } |
| 32 | 33 | ||
