mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 21:19:35 +01:00
change signature of idle
to !
This commit is contained in:
parent
c6bf89a318
commit
be72ff5719
1 changed files with 8 additions and 2 deletions
10
src/lib.rs
10
src/lib.rs
|
@ -351,13 +351,19 @@ macro_rules! tasks {
|
|||
}) => {
|
||||
fn main() {
|
||||
$crate::critical(|cmax| {
|
||||
let p0 = unsafe { ::core::ptr::read(0x0 as *const P0) };
|
||||
fn signature(_: fn($crate::P0, $crate::CMAX)) {}
|
||||
|
||||
signature(init);
|
||||
let p0 = unsafe { ::core::ptr::read(0x0 as *const _) };
|
||||
init(p0, cmax);
|
||||
set_priorities();
|
||||
enable_tasks();
|
||||
});
|
||||
|
||||
let p0 = unsafe { ::core::ptr::read(0x0 as *const P0) };
|
||||
fn signature(_: fn($crate::P0) -> !) {}
|
||||
|
||||
signature(idle);
|
||||
let p0 = unsafe { ::core::ptr::read(0x0 as *const _) };
|
||||
idle(p0);
|
||||
|
||||
fn set_priorities() {
|
||||
|
|
Loading…
Reference in a new issue