mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-02-10 06:32:21 +00:00
make rustfmt happy
This commit is contained in:
parent
17ebad4a3c
commit
450b3b77a9
1 changed files with 2 additions and 2 deletions
|
@ -176,7 +176,7 @@ impl ops::DerefMut for Timer {
|
|||
///
|
||||
/// This return an `Err`or if called more than once
|
||||
pub fn init() -> Result<Board, ()> {
|
||||
if let Some(periph) = hal::target::Peripherals::take() {
|
||||
if let Some(periph) = hal::target::Peripherals::take() {
|
||||
// NOTE(static mut) this branch runs at most once
|
||||
#[cfg(feature = "advanced")]
|
||||
static mut EP0IN_BUF: [u8; 64] = [0; 64];
|
||||
|
@ -226,7 +226,7 @@ pub fn init() -> Result<Board, ()> {
|
|||
// the preceding `enable_conuter` method consumes the `rtc` value. This is a semantic move
|
||||
// of the RTC0 peripheral from this function (which can only be called at most once) to the
|
||||
// interrupt handler (where the peripheral is accessed without any synchronization
|
||||
// mechanism)
|
||||
// mechanism)
|
||||
unsafe { NVIC::unmask(Interrupt::RTC0) };
|
||||
|
||||
log::debug!("RTC started");
|
||||
|
|
Loading…
Reference in a new issue