diff options
Diffstat (limited to 'embassy-nxp/src/lib.rs')
| -rw-r--r-- | embassy-nxp/src/lib.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/embassy-nxp/src/lib.rs b/embassy-nxp/src/lib.rs index 79c66e7f6..433aca9e0 100644 --- a/embassy-nxp/src/lib.rs +++ b/embassy-nxp/src/lib.rs | |||
| @@ -3,6 +3,7 @@ | |||
| 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 | |||
| 6 | // This mod MUST go last, so that it sees all the `impl_foo!` macros | 7 | // This mod MUST go last, so that it sees all the `impl_foo!` macros |
| 7 | #[cfg_attr(feature = "lpc55", path = "chips/lpc55.rs")] | 8 | #[cfg_attr(feature = "lpc55", path = "chips/lpc55.rs")] |
| 8 | mod chip; | 9 | mod chip; |
| @@ -24,10 +25,8 @@ pub fn init(_config: config::Config) -> Peripherals { | |||
| 24 | { | 25 | { |
| 25 | gpio::init(); | 26 | gpio::init(); |
| 26 | pint::init(); | 27 | pint::init(); |
| 27 | #[cfg(feature = "log-to-defmt")] | ||
| 28 | log_to_defmt::setup(); | ||
| 29 | log::info!("Initialization complete"); | ||
| 30 | } | 28 | } |
| 29 | |||
| 31 | crate::Peripherals::take() | 30 | crate::Peripherals::take() |
| 32 | } | 31 | } |
| 33 | 32 | ||
