mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-19 06:15:45 +01:00
Updated schedule example with all combinations
This commit is contained in:
parent
53c407017f
commit
3adda3c766
4 changed files with 80 additions and 30 deletions
|
|
@ -319,18 +319,6 @@ pub fn codegen(
|
|||
marker: u32,
|
||||
}
|
||||
|
||||
// TODO: remove
|
||||
impl core::fmt::Debug for SpawnHandle
|
||||
{
|
||||
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
|
||||
let handle = unsafe { &#app_path::#tq as *const _ as u32 };
|
||||
f.debug_struct("SpawnHandle")
|
||||
.field("marker", &self.marker)
|
||||
.field("handle", &handle)
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
impl SpawnHandle {
|
||||
pub fn cancel(self) -> Result<#ty, ()> {
|
||||
rtic::export::interrupt::free(|_| unsafe {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue