mips-mcu-alloc
A heap allocator for PIC32 microcontrollers (based on the alloc-cortex-m
crate)
The heap is placed at a location determined by the linker and automatically extended to fullfil allocation requests. Automatic heap extension fails if the heap would collide with the stack.
Memory allocation and heap extension can be traced via logging by activating the log
feature.
Example:
// Plug in the allocator crate
extern crate alloc;
use Vec;
use MipsMcuHeap;
static ALLOCATOR: MipsMcuHeap = empty;
!
!
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.