mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-23 12:41:31 +11:00
Make cargo fmt happy (remove trailing whitespaces)
This commit is contained in:
parent
7a65556bc7
commit
0767f9b214
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue