drone-micropython-stm32 0.1.1

MicroPython for Drone STM32.
//! Bindings to [MicroPython] for [Drone STM32].
//!
//! [MicroPython]: https://micropython.org/
//! [Drone STM32]: https://github.com/drone-os/drone-stm32

#![feature(alloc)]
#![feature(allocator_api)]
#![feature(allocator_internals)]
#![feature(asm)]
#![feature(const_fn)]
#![feature(prelude_import)]
#![feature(proc_macro_gen)]
#![no_std]
#![warn(missing_docs)]
#![doc(html_root_url = "https://docs.rs/drone-micropython-stm32/0.1.1")]
#![cfg_attr(test, default_lib_allocator)]
#![cfg_attr(feature = "cargo-clippy", allow(precedence))]

extern crate alloc;
#[macro_use]
extern crate drone_core;
extern crate drone_micropython_core;
extern crate drone_micropython_raw;
#[macro_use]
extern crate drone_stm32 as drone_plat;
extern crate futures;
#[cfg(test)]
extern crate test;

pub mod rt;

mod mp_sess;

pub use mp_sess::{MpSessPlat, MpSessResPlat};

#[prelude_import]
#[allow(unused_imports)]
use drone_plat::prelude::*;

#[cfg(test)]
drone_core::heap! {
  struct Heap;
  size = 0x40000;
  pools = [
    [0x4; 0x4000],
    [0x20; 0x800],
    [0x100; 0x100],
    [0x800; 0x20],
  ];
}

#[cfg(test)]
#[global_allocator]
static mut GLOBAL: Heap = Heap::new();