Struct alloc_cortex_m::Heap
[−]
[src]
pub struct Heap { /* fields omitted */ }A heap allocator
Methods
impl Heap[src]
unsafe fn init(&mut self, heap_bottom: usize, heap_size: usize)
Initializes the heap
This method must be called before you run any code that makes use of the allocator.
This method must be called exactly ONCE.
heap_bottom is the address where the heap will be located. Note that
heap grows "upwards", towards larger addresses.
heap_size is the size of the heap in bytes