Skip to content

Commit 79dae0d

Browse files
committed
fixed warnings
1 parent 742291e commit 79dae0d

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

main.rs

+9-3
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,24 @@ fn start(_: isize, _: *const *const u8) -> isize {
8787
return 0;
8888
}
8989

90-
fn main() {
90+
pub fn main() {
9191
unsafe {
9292
volatile_load(&ti_ipc_remoteproc_ResourceTable);
9393
}
9494

9595
loop {
9696
let mut i: u32 = 0;
9797

98-
while i < 10000000u32 { i += 1; set_led(); }
98+
while i < 10000000u32 {
99+
i += 1;
100+
set_led();
101+
}
99102

100103
i = 0;
101104

102-
while i < 10000000u32 { i += 1; clear_led(); }
105+
while i < 10000000u32 {
106+
i += 1;
107+
clear_led();
108+
}
103109
}
104110
}

runtime.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![no_std]
2-
#![feature(lang_items)]
31
extern crate core;
42

53
#[lang="stack_exhausted"]

0 commit comments

Comments
 (0)