change signature of idle to !

This commit is contained in:
Jorge Aparicio 2017-04-14 00:39:12 -05:00
parent c6bf89a318
commit be72ff5719

View file

@ -351,13 +351,19 @@ macro_rules! tasks {
}) => { }) => {
fn main() { fn main() {
$crate::critical(|cmax| { $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); init(p0, cmax);
set_priorities(); set_priorities();
enable_tasks(); 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); idle(p0);
fn set_priorities() { fn set_priorities() {