Skip to content

Commit 9cd9082

Browse files
committed
cargo fmt checks
Signed-off-by: mihailinux <mihaigabrielbusiness@gmail.com>
1 parent ae03fb4 commit 9cd9082

4 files changed

Lines changed: 11 additions & 5 deletions

File tree

boards/nucleo_u545re_q/src/main.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,14 @@ unsafe fn start() -> (
237237

238238
kernel::deferred_call::DeferredCallClient::register(&periphs.crc);
239239

240-
let crc = components::crc::CrcComponent::new(board_kernel, capsules_extra::crc::DRIVER_NUM, &periphs.crc)
241-
.finalize(components::crc_component_static!(stm32u545::crc::CRC<'static>));
240+
let crc = components::crc::CrcComponent::new(
241+
board_kernel,
242+
capsules_extra::crc::DRIVER_NUM,
243+
&periphs.crc,
244+
)
245+
.finalize(components::crc_component_static!(
246+
stm32u545::crc::CRC<'static>
247+
));
242248

243249
// Platform and Interrupts
244250
let platform = static_init!(

chips/stm32u545/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#![no_std]
66

7-
pub use stm32u5xx::{chip, dma, exti, gpio, rcc, tim, usart, crc};
7+
pub use stm32u5xx::{chip, crc, dma, exti, gpio, rcc, tim, usart};
88

99
use cortexm33::{CortexM33, CortexMVariant};
1010

chips/stm32u5xx/src/chip.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// Copyright Tock Contributors 2024.
44
// Copyright OxidOS Automotive 2026.
55

6+
use crate::crc::{self, CRC_BASE};
67
use crate::dma::{ChannelId, Dma};
78
use crate::exti;
89
use crate::gpio;
@@ -15,7 +16,6 @@ use crate::nvic::{
1516
use crate::rcc;
1617
use crate::tim;
1718
use crate::usart;
18-
use crate::crc::{self, CRC_BASE};
1919

2020
use core::fmt::Write;
2121
use kernel::platform::chip::Chip;

chips/stm32u5xx/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
#![no_std]
66

77
pub mod chip;
8+
pub mod crc;
89
pub mod dma;
910
pub mod exti;
1011
pub mod gpio;
1112
pub mod nvic;
1213
pub mod rcc;
1314
pub mod tim;
1415
pub mod usart;
15-
pub mod crc;
1616

1717
use cortexm33::{initialize_ram_jump_to_main, unhandled_interrupt, CortexM33, CortexMVariant};
1818

0 commit comments

Comments
 (0)