clippy, fmt, docs

This commit is contained in:
Robin Müller 2025-04-12 16:54:57 +02:00
parent 0515ca5eaa
commit bab979ece3
Signed by: muellerr
GPG Key ID: A649FB78196E3849
6 changed files with 7 additions and 7 deletions

View File

@ -1,3 +1,3 @@
#![no_std]
use panic_probe as _;
use defmt_rtt as _;
use panic_probe as _;

View File

@ -1,8 +1,8 @@
#![no_std]
#![no_main]
use embassy_example as _;
use embassy_executor::Spawner;
use embassy_time::{Duration, Instant, Ticker};
use embassy_example as _;
cfg_if::cfg_if! {
if #[cfg(feature = "custom-irqs")] {

View File

@ -3,8 +3,8 @@
#![no_std]
use cortex_m_rt::entry;
use va108xx_hal as _;
use panic_rtt_target as _;
use va108xx_hal as _;
#[entry]
fn main() -> ! {

View File

@ -3,9 +3,9 @@
#![no_main]
#![no_std]
use defmt_rtt as _; // global logger
use num_enum::TryFromPrimitive;
use panic_probe as _;
use defmt_rtt as _; // global logger
use ringbuf::{
traits::{Consumer, Observer, Producer},
StaticRb,

View File

@ -1004,7 +1004,7 @@ where
/// * `sys_clk` - System clock
/// * `spi` - SPI bus to use
/// * `pins` - Pins to be used for SPI transactions. These pins are consumed
/// to ensure the pins can not be used for other purposes anymore
/// to ensure the pins can not be used for other purposes anymore
/// * `spi_cfg` - Configuration specific to the SPI bus
pub fn new(
syscfg: &mut pac::Sysconfig,

View File

@ -631,8 +631,8 @@ where
/// - `pins`: UART TX and RX pin tuple.
/// - `config`: UART specific configuration parameters like baudrate.
/// - `irq_cfg`: Optional interrupt configuration. This should be a valid value if the plan
/// is to use TX or RX functionality relying on interrupts. If only the blocking API without
/// any interrupt support is used, this can be [None].
/// is to use TX or RX functionality relying on interrupts. If only the blocking API without
/// any interrupt support is used, this can be [None].
pub fn new(
syscfg: &mut va108xx::Sysconfig,
sys_clk: impl Into<Hertz>,