wspr-beacon/src/main.rs

20 lines
467 B
Rust

#![no_std]
#![no_main]
use stm32f1xx_hal::pac;
use wspr_beacon::application;
#[cortex_m_rt::entry]
fn main() -> ! {
defmt::info!("Hello, world!");
// Get access to the core peripherals from the cortex-m crate
let cp = cortex_m::Peripherals::take().unwrap();
// Get access to the device specific peripherals from the peripheral access crate
let dp = pac::Peripherals::take().unwrap();
let app = application::setup(cp, dp);
app.run()
}