clippy, fmt, docs
This commit is contained in:
parent
0515ca5eaa
commit
bab979ece3
@ -1,3 +1,3 @@
|
|||||||
#![no_std]
|
#![no_std]
|
||||||
use panic_probe as _;
|
|
||||||
use defmt_rtt as _;
|
use defmt_rtt as _;
|
||||||
|
use panic_probe as _;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#![no_std]
|
#![no_std]
|
||||||
#![no_main]
|
#![no_main]
|
||||||
|
use embassy_example as _;
|
||||||
use embassy_executor::Spawner;
|
use embassy_executor::Spawner;
|
||||||
use embassy_time::{Duration, Instant, Ticker};
|
use embassy_time::{Duration, Instant, Ticker};
|
||||||
use embassy_example as _;
|
|
||||||
|
|
||||||
cfg_if::cfg_if! {
|
cfg_if::cfg_if! {
|
||||||
if #[cfg(feature = "custom-irqs")] {
|
if #[cfg(feature = "custom-irqs")] {
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
use cortex_m_rt::entry;
|
use cortex_m_rt::entry;
|
||||||
use va108xx_hal as _;
|
|
||||||
use panic_rtt_target as _;
|
use panic_rtt_target as _;
|
||||||
|
use va108xx_hal as _;
|
||||||
|
|
||||||
#[entry]
|
#[entry]
|
||||||
fn main() -> ! {
|
fn main() -> ! {
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
#![no_main]
|
#![no_main]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
|
use defmt_rtt as _; // global logger
|
||||||
use num_enum::TryFromPrimitive;
|
use num_enum::TryFromPrimitive;
|
||||||
use panic_probe as _;
|
use panic_probe as _;
|
||||||
use defmt_rtt as _; // global logger
|
|
||||||
use ringbuf::{
|
use ringbuf::{
|
||||||
traits::{Consumer, Observer, Producer},
|
traits::{Consumer, Observer, Producer},
|
||||||
StaticRb,
|
StaticRb,
|
||||||
|
@ -1004,7 +1004,7 @@ where
|
|||||||
/// * `sys_clk` - System clock
|
/// * `sys_clk` - System clock
|
||||||
/// * `spi` - SPI bus to use
|
/// * `spi` - SPI bus to use
|
||||||
/// * `pins` - Pins to be used for SPI transactions. These pins are consumed
|
/// * `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
|
/// * `spi_cfg` - Configuration specific to the SPI bus
|
||||||
pub fn new(
|
pub fn new(
|
||||||
syscfg: &mut pac::Sysconfig,
|
syscfg: &mut pac::Sysconfig,
|
||||||
|
@ -631,8 +631,8 @@ where
|
|||||||
/// - `pins`: UART TX and RX pin tuple.
|
/// - `pins`: UART TX and RX pin tuple.
|
||||||
/// - `config`: UART specific configuration parameters like baudrate.
|
/// - `config`: UART specific configuration parameters like baudrate.
|
||||||
/// - `irq_cfg`: Optional interrupt configuration. This should be a valid value if the plan
|
/// - `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
|
/// 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].
|
/// any interrupt support is used, this can be [None].
|
||||||
pub fn new(
|
pub fn new(
|
||||||
syscfg: &mut va108xx::Sysconfig,
|
syscfg: &mut va108xx::Sysconfig,
|
||||||
sys_clk: impl Into<Hertz>,
|
sys_clk: impl Into<Hertz>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user