Just inlining some statements
This commit is contained in:
parent
391b13a314
commit
2bce140e57
10
src/main.rs
10
src/main.rs
|
@ -102,9 +102,7 @@ extern "C" fn start() -> ! {
|
|||
// poll console for input and print characters back
|
||||
loop {
|
||||
let c = uart::CONSOLE.lock().as_mut().and_then(uart::Device::get);
|
||||
if let Some(c) = c {
|
||||
print!("{}", c as char);
|
||||
}
|
||||
if let Some(c) = c { print!("{}", c as char); }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -121,11 +119,7 @@ fn panic(info: &PanicInfo) -> ! {
|
|||
#[no_mangle]
|
||||
extern "C" fn abort() -> ! {
|
||||
use core::arch::asm;
|
||||
loop {
|
||||
unsafe {
|
||||
asm!("wfi");
|
||||
}
|
||||
}
|
||||
loop { unsafe { asm!("wfi"); } }
|
||||
}
|
||||
|
||||
// TODO unit testing
|
||||
|
|
Loading…
Reference in a new issue