[][src]Crate drone_cortex_m

ARM® Cortex®-M platform crate for Drone, an Embedded Operating System.

Supported Cores

ArchitectureCore nameRust targetcortex_m_core config flag
ARMv7-MARM® Cortex®-M3 r0p0thumbv7m-none-eabicortex_m3_r0p0
ARMv7-MARM® Cortex®-M3 r1p0thumbv7m-none-eabicortex_m3_r1p0
ARMv7-MARM® Cortex®-M3 r1p1thumbv7m-none-eabicortex_m3_r1p1
ARMv7-MARM® Cortex®-M3 r2p0thumbv7m-none-eabicortex_m3_r2p0
ARMv7-MARM® Cortex®-M3 r2p1thumbv7m-none-eabicortex_m3_r2p1
ARMv7E-MARM® Cortex®-M4 r0p0thumbv7em-none-eabicortex_m4_r0p0
ARMv7E-MARM® Cortex®-M4 r0p1thumbv7em-none-eabicortex_m4_r0p1
ARMv7E-MARM® Cortex®-M4F r0p0thumbv7em-none-eabihfcortex_m4f_r0p0
ARMv7E-MARM® Cortex®-M4F r0p1thumbv7em-none-eabihfcortex_m4f_r0p1

Rust target triple and cortex_m_core config flag should be set at the application level according to this table.

Documentation

Usage

Place the following to the Cargo.toml:

[dependencies]
drone-cortex-m = { version = "0.11.1", features = [...] }

Modules

drv

Drivers for core ARM Cortex-M peripherals.

fib

The Fibers module.

itm

The Instrumentation Trace Macrocell.

map

Core ARM Cortex-M register and exception mappings.

prelude

The Drone Cortex-M Prelude.

proc_loop

This module provides interface to wrap a stackful synchronous code into an asynchronous command loop.

processor

Common utility functions for working with ARM Cortex-M processors.

reg

The Memory-Mapped Registers module.

reg

The Memory-Mapped Registers module.

sv

The Supervisor module.

thr

The Threads module.

thr

The Threads module.

Macros

dbg

Prints and returns the value of a given expression for quick and dirty debugging.

eprint

Prints to the ITM port #1, if a debug probe is connected.

eprintln

Prints to the ITM port #1, with a newline, if a debug probe is connected.

print

Prints to the ITM port #0, if a debug probe is connected.

println

Prints to the ITM port #0, with a newline, if a debug probe is connected.

reg
sv

Defines the supervisor type.

thr