[−][src]Crate drone_core
The core crate for Drone, an Embedded Operating System.
Documentation
Usage
Add the crate to your Cargo.toml
dependencies:
[dependencies]
drone-core = { version = "0.13.0" }
Add or extend std
feature as follows:
[features]
std = ["drone-core/std"]
Modules
bitfield | A |
ffi | Utilities related to FFI bindings. |
fib | The Fibers module. |
heap | Dynamic memory allocation. |
inventory | A zero-cost abstraction to track various resource states with the type-system. |
io | Traits, helpers, and type definitions for core I/O functionality. |
log | Debug logging facade. |
mem | Basic functions for dealing with memory. |
periph | Peripheral is a group of |
prelude | The Drone Prelude. |
proc_loop | This module provides interface to wrap a stackful synchronous code into an asynchronous command loop. |
reg | The Memory-Mapped Registers module. |
sync | Useful synchronization primitives. |
thr | The Threads module. |
token | The |
Macros
dbg | Prints and returns the value of a given expression for quick and dirty debugging. |
eprint | Prints to the log port #1, if a debug probe is connected. |
eprintln | Prints to the log port #1, with a newline, if a debug probe is connected. |
heap | Defines dynamic memory structures. |
periph | Defines a new generic peripheral. |
Prints to the log port #0, if the debug probe is connected. | |
println | Prints to the log port #0, with a newline, if a debug probe is connected. |
reg | Defines a memory-mapped register. |
thr | Defines threads. |