mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-19 22:35:19 +01:00
The great docs update
This commit is contained in:
parent
c8621d78b9
commit
b71df58f2f
106 changed files with 1286 additions and 1429 deletions
|
|
@ -270,6 +270,7 @@ pub fn codegen(
|
|||
let m_ident = util::monotonic_ident(&monotonic_name);
|
||||
let m_isr = &monotonic.args.binds;
|
||||
let enum_ = util::interrupt_ident();
|
||||
let spawn_handle_string = format!("{}::SpawnHandle", m.to_string());
|
||||
|
||||
let (enable_interrupt, pend) = if &*m_isr.to_string() == "SysTick" {
|
||||
(
|
||||
|
|
@ -320,6 +321,12 @@ pub fn codegen(
|
|||
marker: u32,
|
||||
}
|
||||
|
||||
impl core::fmt::Debug for #internal_spawn_handle_ident {
|
||||
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
|
||||
f.debug_struct(#spawn_handle_string).finish()
|
||||
}
|
||||
}
|
||||
|
||||
#(#cfgs)*
|
||||
impl #internal_spawn_handle_ident {
|
||||
pub fn cancel(self) -> Result<#ty, ()> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue