Fix examples broken by the macro fix.

This commit is contained in:
Dario Nieuwenhuis
2023-03-08 03:08:59 +01:00
parent e7a19a9725
commit b2c6dc45e3
10 changed files with 10 additions and 14 deletions

View File

@ -15,7 +15,7 @@ const ADDRESS: u8 = 0x5F;
const WHOAMI: u8 = 0x0F;
#[embassy_executor::main]
async fn main(_spawner: Spawner) -> ! {
async fn main(_spawner: Spawner) {
info!("Hello world!");
let p = embassy_stm32::init(Default::default());

View File

@ -14,7 +14,7 @@ use {defmt_rtt as _, panic_probe as _};
const ALLOW_WRITES: bool = false;
#[embassy_executor::main]
async fn main(_spawner: Spawner) -> ! {
async fn main(_spawner: Spawner) {
let mut config = Config::default();
config.rcc.sys_ck = Some(mhz(48));
config.rcc.pll48 = true;
@ -75,6 +75,4 @@ async fn main(_spawner: Spawner) -> ! {
sdmmc.read_block(block_idx, &mut block).await.unwrap();
info!("Read: {=[u8]:X}...{=[u8]:X}", block[..8], block[512 - 8..]);
loop {}
}