repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/embassy-net-esp-hosted/src/fmt.rs
embassy-net-esp-hosted/src/fmt.rs
#![macro_use] #![allow(unused)] use core::fmt::{Debug, Display, LowerHex}; #[cfg(all(feature = "defmt", feature = "log"))] compile_error!("You may not enable both `defmt` and `log` features."); #[collapse_debuginfo(yes)] macro_rules! assert { ($($x:tt)*) => { { #[cfg(not(feature = "defmt"))] ...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/embassy-net-esp-hosted/src/proto.rs
embassy-net-esp-hosted/src/proto.rs
/* Generated with the following snippet. Switch to a proper script when https://github.com/YuhanLiin/micropb/issues/30 is done let mut g = micropb_gen::Generator::new(); g.use_container_heapless(); g.configure( ".", micropb_gen::Config::new() .max_bytes(32) // For ssid, mac, et...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
true
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/docs/examples/layer-by-layer/blinky-irq/src/main.rs
docs/examples/layer-by-layer/blinky-irq/src/main.rs
#![no_std] #![no_main] use core::cell::RefCell; use cortex_m::interrupt::Mutex; use cortex_m::peripheral::NVIC; use cortex_m_rt::entry; use embassy_stm32::gpio::{Input, Level, Output, Pull, Speed}; use embassy_stm32::{interrupt, pac}; use {defmt_rtt as _, panic_probe as _}; static BUTTON: Mutex<RefCell<Option<Input<...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/docs/examples/layer-by-layer/blinky-async/src/main.rs
docs/examples/layer-by-layer/blinky-async/src/main.rs
#![no_std] #![no_main] use embassy_executor::Spawner; use embassy_stm32::exti::{self, ExtiInput}; use embassy_stm32::gpio::{Level, Output, Pull, Speed}; use embassy_stm32::{bind_interrupts, interrupt}; use {defmt_rtt as _, panic_probe as _}; bind_interrupts!( pub struct Irqs{ EXTI15_10 => exti::Interrupt...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/docs/examples/layer-by-layer/blinky-hal/src/main.rs
docs/examples/layer-by-layer/blinky-hal/src/main.rs
#![no_std] #![no_main] use cortex_m_rt::entry; use embassy_stm32::gpio::{Input, Level, Output, Pull, Speed}; use {defmt_rtt as _, panic_probe as _}; #[entry] fn main() -> ! { let p = embassy_stm32::init(Default::default()); let mut led = Output::new(p.PB14, Level::High, Speed::VeryHigh); let button = Inpu...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/docs/examples/layer-by-layer/blinky-pac/src/main.rs
docs/examples/layer-by-layer/blinky-pac/src/main.rs
#![no_std] #![no_main] use pac::gpio::vals; use {defmt_rtt as _, panic_probe as _, stm32_metapac as pac}; #[cortex_m_rt::entry] fn main() -> ! { // Enable GPIO clock let rcc = pac::RCC; rcc.ahb2enr().modify(|w| { w.set_gpioben(true); w.set_gpiocen(true); }); rcc.ahb2rstr().modify(...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/docs/examples/basic/build.rs
docs/examples/basic/build.rs
//! This build script copies the `memory.x` file from the crate root into //! a directory where the linker can always find it at build time. //! For many projects this is optional, as the linker always searches the //! project root directory -- wherever `Cargo.toml` is. However, if you //! are using a workspace or have...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/docs/examples/basic/src/main.rs
docs/examples/basic/src/main.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_nrf::Peri; use embassy_nrf::gpio::{AnyPin, Input, Level, Output, OutputDrive, Pull}; use embassy_time::Timer; use {defmt_rtt as _, panic_probe as _}; // Declare async tasks #[embassy_executor::task] async fn blink(pin: Peri<'static, AnyPi...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h735/build.rs
examples/stm32h735/build.rs
//! This build script copies the `memory.x` file from the crate root into //! a directory where the linker can always find it at build time. //! For many projects this is optional, as the linker always searches the //! project root directory -- wherever `Cargo.toml` is. However, if you //! are using a workspace or have...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h735/src/bin/ltdc.rs
examples/stm32h735/src/bin/ltdc.rs
#![no_std] #![no_main] #![macro_use] #![allow(static_mut_refs)] /// This example demonstrates the LTDC lcd display peripheral and was tested to run on an stm32h735g-dk (embassy-stm32 feature "stm32h735ig" and probe-rs chip "STM32H735IGKx") /// Even though the dev kit has 16MB of attached PSRAM this example uses the 32...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/mspm0l1306/build.rs
examples/mspm0l1306/build.rs
//! This build script copies the `memory.x` file from the crate root into //! a directory where the linker can always find it at build time. //! For many projects this is optional, as the linker always searches the //! project root directory -- wherever `Cargo.toml` is. However, if you //! are using a workspace or have...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/mspm0l1306/src/bin/button.rs
examples/mspm0l1306/src/bin/button.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_mspm0::Config; use embassy_mspm0::gpio::{Input, Level, Output, Pull}; use {defmt_rtt as _, panic_halt as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) -> ! { info!("Hello world!"); let p = embassy_mspm0::init(Con...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/mspm0l1306/src/bin/i2c.rs
examples/mspm0l1306/src/bin/i2c.rs
//! This example uses FIFO with polling, and the maximum FIFO size is 8. //! Refer to async example to handle larger packets. //! //! This example controls AD5171 digital potentiometer via I2C with the LP-MSPM0L1306 board. #![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_mspm0::i2c::{Co...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/mspm0l1306/src/bin/uart.rs
examples/mspm0l1306/src/bin/uart.rs
//! Example of using blocking uart //! //! This uses the virtual COM port provided on the LP-MSPM0L1306 board. #![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_mspm0::uart::{Config, Uart}; use {defmt_rtt as _, panic_halt as _}; #[embassy_executor::main] async fn main(_spawner: Spawner)...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/mspm0l1306/src/bin/wwdt.rs
examples/mspm0l1306/src/bin/wwdt.rs
//! Example of using window watchdog timer in the MSPM0L1306 chip. //! //! It tests the use case when watchdog timer is expired and when watchdog is pet too early. #![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_mspm0::gpio::{Level, Output}; use embassy_mspm0::wwdt::{ClosedWindowPercen...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/mspm0l1306/src/bin/i2c_target.rs
examples/mspm0l1306/src/bin/i2c_target.rs
//! Example of using async I2C target //! //! This uses the virtual COM port provided on the LP-MSPM0L1306 board. #![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_mspm0::i2c::Config; use embassy_mspm0::i2c_target::{Command, Config as TargetConfig, I2cTarget, ReadStatus}; use embassy_msp...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/mspm0l1306/src/bin/i2c_async.rs
examples/mspm0l1306/src/bin/i2c_async.rs
//! The example uses FIFO and interrupts, wrapped in async API. //! //! This example controls AD5171 digital potentiometer via I2C with the LP-MSPM0L1306 board. #![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_mspm0::bind_interrupts; use embassy_mspm0::i2c::{Config, I2c, InterruptHandle...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/mspm0l1306/src/bin/adc.rs
examples/mspm0l1306/src/bin/adc.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_mspm0::adc::{self, Adc, Vrsel}; use embassy_mspm0::{Config, bind_interrupts, peripherals}; use embassy_time::Timer; use {defmt_rtt as _, panic_halt as _}; bind_interrupts!(struct Irqs { ADC0 => adc::InterruptHandler<peripherals::ADC0>...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/mspm0l1306/src/bin/blinky.rs
examples/mspm0l1306/src/bin/blinky.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_mspm0::Config; use embassy_mspm0::gpio::{Level, Output}; use embassy_time::Timer; use {defmt_rtt as _, panic_halt as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) -> ! { info!("Hello world!"); let p = embassy_mspm...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32l0/build.rs
examples/stm32l0/build.rs
fn main() { println!("cargo:rustc-link-arg-bins=--nmagic"); println!("cargo:rustc-link-arg-bins=-Tlink.x"); println!("cargo:rustc-link-arg-bins=-Tdefmt.x"); }
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32l0/src/bin/button.rs
examples/stm32l0/src/bin/button.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::gpio::{Input, Level, Output, Pull, Speed}; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) { let p = embassy_stm32::init(Default::default()); info!("Hello World!"); le...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32l0/src/bin/flash.rs
examples/stm32l0/src/bin/flash.rs
#![no_std] #![no_main] use defmt::{info, unwrap}; use embassy_executor::Spawner; use embassy_stm32::flash::Flash; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) { let p = embassy_stm32::init(Default::default()); info!("Hello Flash!"); const ADDR: u32 = ...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32l0/src/bin/tsc_multipin.rs
examples/stm32l0/src/bin/tsc_multipin.rs
// Example of TSC (Touch Sensing Controller) using multiple pins from the same tsc-group. // // What is special about using multiple TSC pins as sensor channels from the same TSC group, // is that only one TSC pin for each TSC group can be acquired and read at the time. // To control which channel pins are acquired and...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32l0/src/bin/tsc_blocking.rs
examples/stm32l0/src/bin/tsc_blocking.rs
// Example of blocking TSC (Touch Sensing Controller) that lights an LED when touch is detected. // // This example demonstrates: // 1. Configuring a single TSC channel pin // 2. Using the blocking TSC interface with polling // 3. Waiting for acquisition completion using `poll_for_acquisition` // 4. Reading touch value...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32l0/src/bin/usb_serial.rs
examples/stm32l0/src/bin/usb_serial.rs
#![no_std] #![no_main] use defmt::{panic, *}; use embassy_executor::Spawner; use embassy_futures::join::join; use embassy_stm32::usb::{self, Driver, Instance}; use embassy_stm32::{bind_interrupts, peripherals}; use embassy_usb::Builder; use embassy_usb::class::cdc_acm::{CdcAcmClass, State}; use embassy_usb::driver::En...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32l0/src/bin/usart_dma.rs
examples/stm32l0/src/bin/usart_dma.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::usart::{Config, Uart}; use embassy_stm32::{bind_interrupts, peripherals, usart}; use {defmt_rtt as _, panic_probe as _}; bind_interrupts!(struct Irqs { USART1 => usart::InterruptHandler<peripherals::USART1>; }); #[embassy_exec...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32l0/src/bin/eeprom.rs
examples/stm32l0/src/bin/eeprom.rs
#![no_std] #![no_main] use defmt::{info, unwrap}; use embassy_executor::Spawner; use embassy_stm32::flash::{EEPROM_BASE, EEPROM_SIZE, Flash}; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) { let p = embassy_stm32::init(Default::default()); info!("Hello Eepr...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32l0/src/bin/button_exti.rs
examples/stm32l0/src/bin/button_exti.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::exti::{self, ExtiInput}; use embassy_stm32::gpio::Pull; use embassy_stm32::{Config, bind_interrupts, interrupt}; use {defmt_rtt as _, panic_probe as _}; bind_interrupts!( pub struct Irqs{ EXTI2_3 => exti::InterruptHandl...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32l0/src/bin/spi.rs
examples/stm32l0/src/bin/spi.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::gpio::{Level, Output, Speed}; use embassy_stm32::spi::{Config, Spi}; use embassy_stm32::time::Hertz; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) { let p = embassy_stm32::in...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32l0/src/bin/dds.rs
examples/stm32l0/src/bin/dds.rs
#![no_std] #![no_main] use core::option::Option::Some; use defmt::info; use defmt_rtt as _; // global logger use embassy_executor::Spawner; use embassy_stm32::gpio::OutputType; use embassy_stm32::rcc::*; use embassy_stm32::time::hz; use embassy_stm32::timer::low_level::{Timer as LLTimer, *}; use embassy_stm32::timer:...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32l0/src/bin/usart_irq.rs
examples/stm32l0/src/bin/usart_irq.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::usart::{BufferedUart, Config}; use embassy_stm32::{bind_interrupts, peripherals, usart}; use embedded_io_async::{Read, Write}; use {defmt_rtt as _, panic_probe as _}; bind_interrupts!(struct Irqs { USART2 => usart::BufferedInte...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32l0/src/bin/tsc_async.rs
examples/stm32l0/src/bin/tsc_async.rs
// Example of async TSC (Touch Sensing Controller) that lights an LED when touch is detected. // // This example demonstrates: // 1. Configuring a single TSC channel pin // 2. Using the blocking TSC interface with polling // 3. Waiting for acquisition completion using `poll_for_acquisition` // 4. Reading touch values a...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32l0/src/bin/adc.rs
examples/stm32l0/src/bin/adc.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::adc::{Adc, SampleTime}; use embassy_stm32::peripherals::ADC1; use embassy_stm32::{adc, bind_interrupts}; use embassy_time::Timer; use {defmt_rtt as _, panic_probe as _}; bind_interrupts!(struct Irqs { ADC1_COMP => adc::Interrup...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32l0/src/bin/blinky.rs
examples/stm32l0/src/bin/blinky.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::gpio::{Level, Output, Speed}; use embassy_time::Timer; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) { let p = embassy_stm32::init(Default::default()); info!("Hello World...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32l0/src/bin/raw_spawn.rs
examples/stm32l0/src/bin/raw_spawn.rs
#![no_std] #![no_main] use core::mem; use cortex_m_rt::entry; use defmt::*; use embassy_executor::Executor; use embassy_executor::raw::TaskStorage; use embassy_time::Timer; use static_cell::StaticCell; use {defmt_rtt as _, panic_probe as _}; async fn run1() { loop { info!("BIG INFREQUENT TICK"); ...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/lpc55s69/build.rs
examples/lpc55s69/build.rs
//! This build script copies the `memory.x` file from the crate root into //! a directory where the linker can always find it at build time. //! For many projects this is optional, as the linker always searches the //! project root directory -- wherever `Cargo.toml` is. However, if you //! are using a workspace or have...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/lpc55s69/src/bin/usart_blocking.rs
examples/lpc55s69/src/bin/usart_blocking.rs
#![no_std] #![no_main] use core::str::from_utf8_mut; use defmt::*; use embassy_executor::Spawner; use embassy_nxp::usart::{Config, Usart}; use embassy_time::Timer; use {defmt_rtt as _, panic_halt as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) { let p = embassy_nxp::init(Default::default()); ...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/lpc55s69/src/bin/pwm.rs
examples/lpc55s69/src/bin/pwm.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_nxp::pwm::{Config, Pwm}; use embassy_time::Timer; use {defmt_rtt as _, panic_halt as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) { let p = embassy_nxp::init(Default::default()); let pwm = Pwm::new_output(p.SCT0_...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/lpc55s69/src/bin/blinky_nop.rs
examples/lpc55s69/src/bin/blinky_nop.rs
//! This example has been made with the LPCXpresso55S69 board in mind, which has a built-in LED on PIO1_6. #![no_std] #![no_main] use cortex_m::asm::nop; use defmt::*; use embassy_executor::Spawner; use embassy_nxp::gpio::{Level, Output}; use {defmt_rtt as _, panic_halt as _}; #[embassy_executor::main] async fn main...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/lpc55s69/src/bin/usart_async.rs
examples/lpc55s69/src/bin/usart_async.rs
#![no_std] #![no_main] use core::str::from_utf8_mut; use defmt::*; use embassy_executor::Spawner; use embassy_nxp::bind_interrupts; use embassy_nxp::gpio::{Level, Output}; use embassy_nxp::peripherals::USART2; use embassy_nxp::usart::{Config, InterruptHandler, Usart}; use embassy_time::Timer; use {defmt_rtt as _, pan...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/lpc55s69/src/bin/button_executor.rs
examples/lpc55s69/src/bin/button_executor.rs
//! This example has been made with the LPCXpresso55S69 board in mind, which has a built-in LED on //! PIO1_6 and a button (labeled "user") on PIO1_9. #![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_nxp::gpio::{Input, Level, Output, Pull}; use {defmt_rtt as _, panic_halt as _}; #[emba...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/lpc55s69/src/bin/blinky_embassy_time.rs
examples/lpc55s69/src/bin/blinky_embassy_time.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_nxp::gpio::{Level, Output}; use embassy_time::Timer; use {defmt_rtt as _, panic_halt as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) { let p = embassy_nxp::init(Default::default()); info!("Initialization complete...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32f1/build.rs
examples/stm32f1/build.rs
fn main() { println!("cargo:rustc-link-arg-bins=--nmagic"); println!("cargo:rustc-link-arg-bins=-Tlink.x"); println!("cargo:rustc-link-arg-bins=-Tdefmt.x"); }
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32f1/src/bin/input_capture.rs
examples/stm32f1/src/bin/input_capture.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::gpio::{AfioRemap, Level, Output, Pull, Speed}; use embassy_stm32::time::khz; use embassy_stm32::timer::input_capture::{CapturePin, InputCapture}; use embassy_stm32::timer::{self, Channel}; use embassy_stm32::{Peri, bind_interrupts, ...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32f1/src/bin/usb_serial.rs
examples/stm32f1/src/bin/usb_serial.rs
#![no_std] #![no_main] use defmt::{panic, *}; use embassy_executor::Spawner; use embassy_futures::join::join; use embassy_stm32::gpio::{Level, Output, Speed}; use embassy_stm32::time::Hertz; use embassy_stm32::usb::{Driver, Instance}; use embassy_stm32::{Config, bind_interrupts, peripherals, usb}; use embassy_time::Ti...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32f1/src/bin/pwm_input.rs
examples/stm32f1/src/bin/pwm_input.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::gpio::{AfioRemap, Level, Output, Pull, Speed}; use embassy_stm32::time::khz; use embassy_stm32::timer::pwm_input::PwmInput; use embassy_stm32::{Peri, bind_interrupts, peripherals, timer}; use embassy_time::Timer; use {defmt_rtt as _...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32f1/src/bin/can.rs
examples/stm32f1/src/bin/can.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::can::frame::Envelope; use embassy_stm32::can::{ Can, Fifo, Frame, Id, Rx0InterruptHandler, Rx1InterruptHandler, SceInterruptHandler, StandardId, TxInterruptHandler, filter, }; use embassy_stm32::peripherals::CAN; use embassy...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32f1/src/bin/hello.rs
examples/stm32f1/src/bin/hello.rs
#![no_std] #![no_main] use defmt::info; use embassy_executor::Spawner; use embassy_stm32::Config; use embassy_time::Timer; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) -> ! { let config = Config::default(); let _p = embassy_stm32::init(config); loop {...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32f1/src/bin/adc.rs
examples/stm32f1/src/bin/adc.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::adc::{Adc, SampleTime}; use embassy_stm32::peripherals::ADC1; use embassy_stm32::{adc, bind_interrupts}; use embassy_time::Timer; use {defmt_rtt as _, panic_probe as _}; bind_interrupts!(struct Irqs { ADC1_2 => adc::InterruptHa...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32f1/src/bin/blinky.rs
examples/stm32f1/src/bin/blinky.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::gpio::{Level, Output, Speed}; use embassy_time::Timer; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) { let p = embassy_stm32::init(Default::default()); info!("Hello World...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/build.rs
examples/stm32h7/build.rs
//! This build script copies the `memory.x` file from the crate root into //! a directory where the linker can always find it at build time. //! For many projects this is optional, as the linker always searches the //! project root directory -- wherever `Cargo.toml` is. However, if you //! are using a workspace or have...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/flash_async.rs
examples/stm32h7/src/bin/flash_async.rs
#![no_std] #![no_main] use defmt::{info, unwrap}; use embassy_executor::Spawner; use embassy_stm32::flash::{Flash, InterruptHandler}; use embassy_stm32::gpio::{AnyPin, Level, Output, Speed}; use embassy_stm32::{Peri, bind_interrupts}; use embassy_time::Timer; use {defmt_rtt as _, panic_probe as _}; bind_interrupts!(s...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/rtc.rs
examples/stm32h7/src/bin/rtc.rs
#![no_std] #![no_main] use chrono::{NaiveDate, NaiveDateTime}; use defmt::*; use embassy_executor::Spawner; use embassy_stm32::Config; use embassy_stm32::rcc::LsConfig; use embassy_stm32::rtc::{Rtc, RtcConfig}; use embassy_time::Timer; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_s...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/i2c.rs
examples/stm32h7/src/bin/i2c.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::i2c::{Error, I2c}; use embassy_stm32::{bind_interrupts, i2c, peripherals}; use {defmt_rtt as _, panic_probe as _}; const ADDRESS: u8 = 0x5F; const WHOAMI: u8 = 0x0F; bind_interrupts!(struct Irqs { I2C2_EV => i2c::EventInterrup...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/eth_client.rs
examples/stm32h7/src/bin/eth_client.rs
#![no_std] #![no_main] use core::net::{Ipv4Addr, SocketAddr, SocketAddrV4}; use defmt::*; use embassy_executor::Spawner; use embassy_net::StackResources; use embassy_net::tcp::client::{TcpClient, TcpClientState}; use embassy_stm32::eth::{Ethernet, GenericPhy, PacketQueue, Sma}; use embassy_stm32::peripherals::{ETH, E...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/flash.rs
examples/stm32h7/src/bin/flash.rs
#![no_std] #![no_main] use defmt::{info, unwrap}; use embassy_executor::Spawner; use embassy_stm32::flash::Flash; use embassy_time::Timer; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) { let p = embassy_stm32::init(Default::default()); info!("Hello Flash!")...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/usb_serial.rs
examples/stm32h7/src/bin/usb_serial.rs
#![no_std] #![no_main] use defmt::{panic, *}; use embassy_executor::Spawner; use embassy_futures::join::join; use embassy_stm32::usb::{Driver, Instance}; use embassy_stm32::{Config, bind_interrupts, peripherals, usb}; use embassy_usb::Builder; use embassy_usb::class::cdc_acm::{CdcAcmClass, State}; use embassy_usb::dri...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/adc_dma.rs
examples/stm32h7/src/bin/adc_dma.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::Config; use embassy_stm32::adc::{Adc, AdcChannel as _, SampleTime}; use embassy_time::Timer; use {defmt_rtt as _, panic_probe as _}; #[unsafe(link_section = ".ram_d3")] static mut DMA_BUF: [u16; 2] = [0; 2]; #[embassy_executor::ma...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/low_level_timer_api.rs
examples/stm32h7/src/bin/low_level_timer_api.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::gpio::{AfType, Flex, OutputType, Speed}; use embassy_stm32::time::{Hertz, khz}; use embassy_stm32::timer::low_level::{OutputCompareMode, Timer as LLTimer}; use embassy_stm32::timer::{Ch1, Ch2, Ch3, Ch4, Channel, GeneralInstance32bit...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/usart.rs
examples/stm32h7/src/bin/usart.rs
#![no_std] #![no_main] use cortex_m_rt::entry; use defmt::*; use embassy_executor::Executor; use embassy_stm32::usart::{Config, Uart}; use static_cell::StaticCell; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::task] async fn main_task() { let p = embassy_stm32::init(Default::default()); let con...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/i2c_shared.rs
examples/stm32h7/src/bin/i2c_shared.rs
#![no_std] #![no_main] use core::cell::RefCell; use defmt::*; use embassy_embedded_hal::shared_bus::blocking::i2c::I2cDevice; use embassy_executor::Spawner; use embassy_stm32::i2c::{self, I2c}; use embassy_stm32::mode::Async; use embassy_stm32::{bind_interrupts, peripherals}; use embassy_sync::blocking_mutex::NoopMut...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/wdg.rs
examples/stm32h7/src/bin/wdg.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::wdg::IndependentWatchdog; use embassy_time::Timer; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) { let p = embassy_stm32::init(Default::default()); info!("Hello World!");...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/eth.rs
examples/stm32h7/src/bin/eth.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_net::tcp::TcpSocket; use embassy_net::{Ipv4Address, StackResources}; use embassy_stm32::eth::{Ethernet, GenericPhy, PacketQueue, Sma}; use embassy_stm32::peripherals::{ETH, ETH_SMA}; use embassy_stm32::rng::Rng; use embassy_stm32::{Config,...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/pwm.rs
examples/stm32h7/src/bin/pwm.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::Config; use embassy_stm32::gpio::OutputType; use embassy_stm32::time::khz; use embassy_stm32::timer::simple_pwm::{PwmPin, SimplePwm}; use embassy_time::Timer; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async ...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/usart_dma.rs
examples/stm32h7/src/bin/usart_dma.rs
#![no_std] #![no_main] use core::fmt::Write; use cortex_m_rt::entry; use defmt::*; use embassy_executor::Executor; use embassy_stm32::usart::{Config, Uart}; use embassy_stm32::{bind_interrupts, peripherals, usart}; use heapless::String; use static_cell::StaticCell; use {defmt_rtt as _, panic_probe as _}; bind_interr...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/signal.rs
examples/stm32h7/src/bin/signal.rs
#![no_std] #![no_main] use defmt::{info, unwrap}; use embassy_executor::Spawner; use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex; use embassy_sync::signal::Signal; use embassy_time::Timer; use {defmt_rtt as _, panic_probe as _}; static SIGNAL: Signal<CriticalSectionRawMutex, u32> = Signal::new(); #[em...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/eth_client_mii.rs
examples/stm32h7/src/bin/eth_client_mii.rs
#![no_std] #![no_main] use core::net::{Ipv4Addr, SocketAddr, SocketAddrV4}; use defmt::*; use embassy_executor::Spawner; use embassy_net::StackResources; use embassy_net::tcp::client::{TcpClient, TcpClientState}; use embassy_stm32::eth::{Ethernet, GenericPhy, PacketQueue, Sma}; use embassy_stm32::peripherals::{ETH, E...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/spi_dma.rs
examples/stm32h7/src/bin/spi_dma.rs
#![no_std] #![no_main] use core::fmt::Write; use core::str::from_utf8; use cortex_m_rt::entry; use defmt::*; use embassy_executor::Executor; use embassy_stm32::mode::Async; use embassy_stm32::time::mhz; use embassy_stm32::{Config, spi}; use heapless::String; use static_cell::StaticCell; use {defmt_rtt as _, panic_pro...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/spi_bdma.rs
examples/stm32h7/src/bin/spi_bdma.rs
#![no_std] #![no_main] use core::fmt::Write; use core::str::from_utf8; use cortex_m_rt::entry; use defmt::*; use embassy_executor::Executor; use embassy_stm32::mode::Async; use embassy_stm32::time::mhz; use embassy_stm32::{Config, spi}; use grounded::uninit::GroundedArrayCell; use heapless::String; use static_cell::S...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/dac.rs
examples/stm32h7/src/bin/dac.rs
#![no_std] #![no_main] use cortex_m_rt::entry; use defmt::*; use embassy_stm32::Config; use embassy_stm32::dac::{DacCh1, Value}; use {defmt_rtt as _, panic_probe as _}; #[entry] fn main() -> ! { info!("Hello World, dude!"); let mut config = Config::default(); { use embassy_stm32::rcc::*; ...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/can.rs
examples/stm32h7/src/bin/can.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::peripherals::*; use embassy_stm32::{Config, bind_interrupts, can, rcc}; use embassy_time::Timer; use {defmt_rtt as _, panic_probe as _}; bind_interrupts!(struct Irqs { FDCAN1_IT0 => can::IT0InterruptHandler<FDCAN1>; FDCAN1_...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/button_exti.rs
examples/stm32h7/src/bin/button_exti.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::exti::{self, ExtiInput}; use embassy_stm32::gpio::Pull; use embassy_stm32::{bind_interrupts, interrupt}; use {defmt_rtt as _, panic_probe as _}; bind_interrupts!( pub struct Irqs{ EXTI15_10 => exti::InterruptHandler<int...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/spi.rs
examples/stm32h7/src/bin/spi.rs
#![no_std] #![no_main] use core::fmt::Write; use core::str::from_utf8; use cortex_m_rt::entry; use defmt::*; use embassy_executor::Executor; use embassy_stm32::mode::Blocking; use embassy_stm32::time::mhz; use embassy_stm32::{Config, spi}; use heapless::String; use static_cell::StaticCell; use {defmt_rtt as _, panic_...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/camera.rs
examples/stm32h7/src/bin/camera.rs
#![no_std] #![no_main] use embassy_executor::Spawner; use embassy_stm32::dcmi::{self, *}; use embassy_stm32::gpio::{Level, Output, Speed}; use embassy_stm32::i2c::I2c; use embassy_stm32::rcc::{Mco, Mco1Source, McoConfig, McoPrescaler}; use embassy_stm32::{Config, bind_interrupts, i2c, peripherals}; use embassy_time::T...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/usart_split.rs
examples/stm32h7/src/bin/usart_split.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::mode::Async; use embassy_stm32::usart::{Config, Uart, UartRx}; use embassy_stm32::{bind_interrupts, peripherals, usart}; use embassy_sync::blocking_mutex::raw::ThreadModeRawMutex; use embassy_sync::channel::Channel; use {defmt_rtt a...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/multiprio.rs
examples/stm32h7/src/bin/multiprio.rs
//! This example showcases how to create multiple Executor instances to run tasks at //! different priority levels. //! //! Low priority executor runs in thread mode (not interrupt), and uses `sev` for signaling //! there's work in the queue, and `wfe` for waiting for work. //! //! Medium and high priority executors ru...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/dac_dma.rs
examples/stm32h7/src/bin/dac_dma.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::Peri; use embassy_stm32::dac::{DacCh1, DacCh2, ValueArray}; use embassy_stm32::mode::Async; use embassy_stm32::pac::timer::vals::Mms; use embassy_stm32::peripherals::{DAC1, TIM6, TIM7}; use embassy_stm32::rcc::frequency; use embassy...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/fmc.rs
examples/stm32h7/src/bin/fmc.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::Config; use embassy_stm32::fmc::Fmc; use embassy_time::{Delay, Timer}; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) { let mut config = Config::default(); { use e...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/sai.rs
examples/stm32h7/src/bin/sai.rs
//! Daisy Seed rev.7(with PCM3060 codec) //! https://electro-smith.com/products/daisy-seed #![no_std] #![no_main] use embassy_executor::Spawner; use grounded::uninit::GroundedArrayCell; use hal::rcc::*; use hal::sai::*; use hal::time::Hertz; use {defmt_rtt as _, embassy_stm32 as hal, panic_probe as _}; const BLOCK_LE...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/mco.rs
examples/stm32h7/src/bin/mco.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::gpio::{Level, Output, Speed}; use embassy_stm32::rcc::{Mco, Mco1Source, McoConfig, McoPrescaler}; use embassy_time::Timer; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) { let...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/sdmmc.rs
examples/stm32h7/src/bin/sdmmc.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::sdmmc::Sdmmc; use embassy_stm32::sdmmc::sd::{CmdBlock, StorageDevice}; use embassy_stm32::time::mhz; use embassy_stm32::{Config, bind_interrupts, peripherals, sdmmc}; use {defmt_rtt as _, panic_probe as _}; bind_interrupts!(struct ...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/rng.rs
examples/stm32h7/src/bin/rng.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::rng::Rng; use embassy_stm32::{Config, bind_interrupts, peripherals, rng}; use {defmt_rtt as _, panic_probe as _}; bind_interrupts!(struct Irqs { RNG => rng::InterruptHandler<peripherals::RNG>; }); #[embassy_executor::main] asy...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/adc.rs
examples/stm32h7/src/bin/adc.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::Config; use embassy_stm32::adc::{Adc, SampleTime}; use embassy_time::Timer; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) { let mut config = Config::default(); { ...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32h7/src/bin/blinky.rs
examples/stm32h7/src/bin/blinky.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::gpio::{Level, Output, Speed}; use embassy_time::Timer; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) { let p = embassy_stm32::init(Default::default()); info!("Hello World...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32u0/build.rs
examples/stm32u0/build.rs
fn main() { println!("cargo:rustc-link-arg-bins=--nmagic"); println!("cargo:rustc-link-arg-bins=-Tlink.x"); println!("cargo:rustc-link-arg-bins=-Tdefmt.x"); }
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32u0/src/bin/button.rs
examples/stm32u0/src/bin/button.rs
#![no_std] #![no_main] use cortex_m_rt::entry; use defmt::*; use embassy_stm32::gpio::{Input, Pull}; use {defmt_rtt as _, panic_probe as _}; #[entry] fn main() -> ! { info!("Hello World!"); let p = embassy_stm32::init(Default::default()); let button = Input::new(p.PC13, Pull::Up); loop { if...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32u0/src/bin/rtc.rs
examples/stm32u0/src/bin/rtc.rs
#![no_std] #![no_main] use chrono::{NaiveDate, NaiveDateTime}; use defmt::*; use embassy_executor::Spawner; use embassy_stm32::Config; use embassy_stm32::rtc::{Rtc, RtcConfig}; use embassy_time::Timer; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) { let mut con...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32u0/src/bin/i2c.rs
examples/stm32u0/src/bin/i2c.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::i2c::I2c; use {defmt_rtt as _, panic_probe as _}; const ADDRESS: u8 = 0x5F; const WHOAMI: u8 = 0x0F; #[embassy_executor::main] async fn main(_spawner: Spawner) { let p = embassy_stm32::init(Default::default()); let mut i2c...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32u0/src/bin/flash.rs
examples/stm32u0/src/bin/flash.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::flash::Flash; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) { let p = embassy_stm32::init(Default::default()); info!("Hello World!"); let addr: u32 = 0x40000 - 2 * 1...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32u0/src/bin/usb_serial.rs
examples/stm32u0/src/bin/usb_serial.rs
#![no_std] #![no_main] use defmt::{panic, *}; use defmt_rtt as _; // global logger use embassy_executor::Spawner; use embassy_futures::join::join; use embassy_stm32::usb::{Driver, Instance}; use embassy_stm32::{Config, bind_interrupts, peripherals, usb}; use embassy_usb::Builder; use embassy_usb::class::cdc_acm::{CdcA...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32u0/src/bin/usart.rs
examples/stm32u0/src/bin/usart.rs
#![no_std] #![no_main] use defmt::*; use embassy_stm32::usart::{Config, Uart}; use {defmt_rtt as _, panic_probe as _}; #[cortex_m_rt::entry] fn main() -> ! { info!("Hello World!"); let p = embassy_stm32::init(Default::default()); let config = Config::default(); let mut usart = Uart::new_blocking(p.U...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32u0/src/bin/wdt.rs
examples/stm32u0/src/bin/wdt.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::gpio::{Level, Output, Speed}; use embassy_stm32::wdg::IndependentWatchdog; use embassy_time::Timer; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) { let p = embassy_stm32::ini...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32u0/src/bin/dac.rs
examples/stm32u0/src/bin/dac.rs
#![no_std] #![no_main] use defmt::*; use embassy_stm32::dac::{DacCh1, Value}; use {defmt_rtt as _, panic_probe as _}; #[cortex_m_rt::entry] fn main() -> ! { let p = embassy_stm32::init(Default::default()); info!("Hello World!"); let mut dac = DacCh1::new_blocking(p.DAC1, p.PA4); loop { for v...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32u0/src/bin/button_exti.rs
examples/stm32u0/src/bin/button_exti.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::exti::{self, ExtiInput}; use embassy_stm32::gpio::Pull; use embassy_stm32::{bind_interrupts, interrupt}; use {defmt_rtt as _, panic_probe as _}; bind_interrupts!( pub struct Irqs{ EXTI4_15 => exti::InterruptHandler<inte...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32u0/src/bin/spi.rs
examples/stm32u0/src/bin/spi.rs
#![no_std] #![no_main] use defmt::*; use embassy_stm32::gpio::{Level, Output, Speed}; use embassy_stm32::spi::{Config, Spi}; use embassy_stm32::time::Hertz; use {defmt_rtt as _, panic_probe as _}; #[cortex_m_rt::entry] fn main() -> ! { info!("Hello World!"); let p = embassy_stm32::init(Default::default()); ...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32u0/src/bin/crc.rs
examples/stm32u0/src/bin/crc.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::crc::{Config, Crc, InputReverseConfig, PolySize}; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) { let p = embassy_stm32::init(Default::default()); info!("Hello World!"); ...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32u0/src/bin/lcd.rs
examples/stm32u0/src/bin/lcd.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::lcd::{Bias, BlinkFreq, BlinkSelector, Config, Duty, Lcd, LcdPin}; use embassy_stm32::peripherals::LCD; use embassy_stm32::time::Hertz; use embassy_time::Duration; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] as...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32u0/src/bin/rng.rs
examples/stm32u0/src/bin/rng.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::rcc::mux::Clk48sel; use embassy_stm32::rng::Rng; use embassy_stm32::{Config, bind_interrupts, peripherals, rng}; use {defmt_rtt as _, panic_probe as _}; bind_interrupts!(struct Irqs { RNG_CRYP => rng::InterruptHandler<periphera...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32u0/src/bin/adc.rs
examples/stm32u0/src/bin/adc.rs
#![no_std] #![no_main] use defmt::*; use embassy_stm32::Config; use embassy_stm32::adc::{Adc, AdcConfig, Resolution, SampleTime}; use embassy_time::Duration; use {defmt_rtt as _, panic_probe as _}; #[cortex_m_rt::entry] fn main() -> ! { info!("Hello World!"); let mut config = Config::default(); { ...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false
embassy-rs/embassy
https://github.com/embassy-rs/embassy/blob/f242d794e3325bc9b3559e50d2ea7fc293e1d574/examples/stm32u0/src/bin/blinky.rs
examples/stm32u0/src/bin/blinky.rs
#![no_std] #![no_main] use defmt::*; use embassy_executor::Spawner; use embassy_stm32::gpio::{Level, Output, Speed}; use embassy_time::Timer; use {defmt_rtt as _, panic_probe as _}; #[embassy_executor::main] async fn main(_spawner: Spawner) { let p = embassy_stm32::init(Default::default()); info!("Hello World...
rust
Apache-2.0
f242d794e3325bc9b3559e50d2ea7fc293e1d574
2026-01-04T15:48:40.485023Z
false