Updated schedule example with all combinations

This commit is contained in:
Emil Fresk 2021-03-20 08:38:37 +01:00
parent 53c407017f
commit 3adda3c766
4 changed files with 80 additions and 30 deletions

View file

@ -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 {