-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add a dummy arch module to make rustdoc happy
- Loading branch information
1 parent
074c51b
commit a681508
Showing
6 changed files
with
51 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//! Dummy module used to satisfy platform-independent tooling. | ||
|
||
/// Dummy type. | ||
/// | ||
/// See the `OptionalPeripherals` type of your Embassy architecture crate instead. | ||
pub struct OptionalPeripherals; | ||
|
||
mod executor { | ||
use embassy_executor::SpawnToken; | ||
|
||
pub struct Executor; | ||
|
||
impl Executor { | ||
pub const fn new() -> Self { | ||
Self {} | ||
} | ||
|
||
pub fn start(&self, _: super::SWI) {} | ||
|
||
pub fn spawner(&self) -> Spawner { | ||
Spawner {} | ||
} | ||
} | ||
|
||
pub struct Spawner {} | ||
|
||
impl Spawner { | ||
pub fn spawn<S>(&self, token: SpawnToken<S>) -> Result<(), ()> { | ||
Ok(()) | ||
} | ||
} | ||
} | ||
pub use executor::{Executor, Spawner}; | ||
|
||
pub fn init(_: ()) -> OptionalPeripherals { | ||
OptionalPeripherals {} | ||
} | ||
|
||
pub struct SWI; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters