blob: fd61e9d4658319a5810b2b932ddb0b39c7195d40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
mod std_async_tcp;
use embassy_executor::Executor;
use static_cell::StaticCell;
pub use std_async_tcp::AsyncTcp;
pub static EXECUTOR: StaticCell<Executor> = StaticCell::new();
#[macro_export]
macro_rules! example_main {
() => {
fn main() {
let executor = common::EXECUTOR.init(Executor::new());
executor.run(|spawner| {
spawner.must_spawn(main_task(spawner));
});
}
};
}
|