drone-core 0.7.0

Drone is a Hard Real-Time Operating System Framework.
Documentation
#![feature(alloc)]
#![feature(allocator_api)]
#![feature(const_fn)]
#![feature(proc_macro)]
#![feature(slice_get_slice)]

extern crate alloc;
extern crate drone_core;

use core::mem::size_of;
use drone_core::heap;
use std as core;

heap! {
  /// Test doc attribute
  #[doc = "test attribute"]
  Heap;
  /// Test doc attribute
  #[doc = "test attribute"]
  ALLOC;
  size = 4096;
  pools = [
    [0x4; 512],
    [0x10; 128],
  ];
}

#[test]
fn size() {
  assert_eq!(size_of::<Heap>(), size_of::<heap::Pool>() * 2);
}