Skip to content

Commit 38d478b

Browse files
committed
examples: Fallout from hackndev#285
1 parent 72ee754 commit 38d478b

File tree

8 files changed

+10
-20
lines changed

8 files changed

+10
-20
lines changed

examples/app_blink_stm32l1.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
#![feature(no_std, core, start)]
1+
#![feature(plugin, no_std, core, start)]
22
#![no_std]
3+
#![plugin(macro_zinc)]
34

45
extern crate core;
56
extern crate zinc;
67

7-
#[start]
8-
fn start(_: isize, _: *const *const u8) -> isize {
9-
main();
10-
0
11-
}
12-
13-
pub unsafe fn main() {
8+
#[zinc_main]
9+
pub fn main() {
1410
use core::option::Option;
1511
use zinc::hal::pin::Gpio;
1612
use zinc::hal::stm32l1::{init, pin, timer};

examples/app_blink_tiva_c.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(plugin, no_std, core)]
1+
#![feature(plugin, no_std, core, start)]
22
#![crate_type="staticlib"]
33
#![no_std]
44
#![plugin(macro_platformtree)]

examples/app_dht22.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(plugin, no_std, core)]
1+
#![feature(start, plugin, no_std, core)]
22
#![crate_type="staticlib"]
33
#![no_std]
44
#![plugin(macro_platformtree)]

examples/app_empty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(core, plugin, asm, no_std)]
1+
#![feature(core, plugin, asm, no_std, start)]
22
#![crate_type="staticlib"]
33
#![no_std]
44
#![plugin(macro_platformtree)]

examples/app_lcd_tiva_c.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(plugin, no_std, core)]
1+
#![feature(plugin, no_std, core, start)]
22
#![crate_type="staticlib"]
33
#![no_std]
44
#![plugin(macro_platformtree)]

examples/app_uart_tiva_c.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(plugin, no_std, core)]
1+
#![feature(plugin, no_std, core, start)]
22
#![crate_type="staticlib"]
33
#![no_std]
44
#![plugin(macro_platformtree)]

src/hal/layout_common.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
__aeabi_unwind_cpp_pr0 = abort;
22
__aeabi_unwind_cpp_pr1 = abort;
3+
get_eit_entry = abort;
34

45
SECTIONS
56
{

src/util/support.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,6 @@ pub extern fn __aeabi_memset(dest: *mut u8, size: usize, value: u32) {
4949
}
5050
}
5151

52-
#[doc(hidden)]
53-
#[no_stack_check]
54-
#[no_mangle]
55-
pub extern fn get_eit_entry() {
56-
abort();
57-
}
58-
5952
#[cfg(not(test))]
6053
#[inline(always)]
6154
/// NOP instruction

0 commit comments

Comments
 (0)