Make cargo fmt happy (remove trailing whitespaces)

This commit is contained in:
Jan Niehusmann 2023-02-10 08:53:17 +00:00
parent 7a65556bc7
commit 0767f9b214
2 changed files with 11 additions and 12 deletions

View file

@ -12,15 +12,15 @@ pub use rp2040_hal::entry;
/// the board should contain a AT25SF128A flash chip. But
/// there are [reports] of board with different flash chips,
/// where the boot loader BOOT_LOADER_AT25SF128A does not
/// work.
/// work.
///
/// Therefore, the generic boot loader is used by default. For a specific
/// board, the flash performance can be increased by switching to the
/// matching boot loader.
///
///
/// [the Arduino store]: https://store.arduino.cc/products/arduino-nano-rp2040-connect
/// [reports]: https://github.com/rp-rs/rp-hal/issues/503
///
///
#[cfg(feature = "boot2")]
#[link_section = ".boot2"]
#[no_mangle]

View file

@ -1,13 +1,13 @@
#![no_std]
//! A Hardware Abstraction Layer for the Raspberry Pi Pico.
//!
//!
//! This crate serves as a HAL (Hardware Abstraction Layer) for the Raspberry Pi Pico. Since the Raspberry Pi Pico
//! is based on the RP2040 chip, it re-exports the [rp2040_hal] crate which contains the tooling to work with the
//! is based on the RP2040 chip, it re-exports the [rp2040_hal] crate which contains the tooling to work with the
//! rp2040 chip.
//!
//!
//! # Examples:
//!
//!
//! The following example turns on the onboard LED. Note that most of the logic works through the [rp2040_hal] crate.
//! ```
//! #![no_main]
@ -34,18 +34,17 @@
//! }
//! ```
pub extern crate rp2040_hal as hal;
#[cfg(feature = "rt")]
extern crate cortex_m_rt;
/// The `entry` macro declares the starting function to the linker.
/// The `entry` macro declares the starting function to the linker.
/// This is similar to the `main` function in console applications.
///
///
/// It is based on the [cortex_m_rt](https://docs.rs/cortex-m-rt/latest/cortex_m_rt/attr.entry.html) crate.
///
/// # Examples
///
/// # Examples
/// ```
/// #![no_std]
/// #![no_main]