We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08fb0f9 commit 465d65eCopy full SHA for 465d65e
src/lib.rs
@@ -7,13 +7,18 @@
7
//! extern crate alloc_cortex_m;
8
//! extern crate collections;
9
//!
10
-//! use alloc_cortex_m::init as alloc_init;
+//! use alloc_cortex_m;
11
//! use collections::Vec;
12
13
+//! pub unsafe extern "C" fn reset_vector() {
14
+//! let heap_start: *mut usize = &mut _heap_start;
15
+//! let heap_end: *mut usize = &mut _heap_end;
16
+//! }
17
+//!
18
//! #[no_mangle]
19
//! pub fn main() -> ! {
20
//! // Initialize the heap BEFORE you use the allocator
-//! unsafe { alloc_init(0x2000_0000, 1024) }
21
+//! unsafe { alloc_cortex_m::init(heap_start, heap_end) }
22
23
//! let mut xs = Vec::new();
24
//! xs.push(1);
0 commit comments