[][src]Crate drone_cortex_m

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

Supported Cores

ArchitectureCore nameCargo featuresRust target
ARMv7-MARM® Cortex®-M3 r0p0cortex_m3_r0p0thumbv7m-none-eabi
ARMv7-MARM® Cortex®-M3 r1p0cortex_m3_r1p0thumbv7m-none-eabi
ARMv7-MARM® Cortex®-M3 r1p1cortex_m3_r1p1thumbv7m-none-eabi
ARMv7-MARM® Cortex®-M3 r2p0cortex_m3_r2p0thumbv7m-none-eabi
ARMv7-MARM® Cortex®-M3 r2p1cortex_m3_r2p1thumbv7m-none-eabi
ARMv7E-MARM® Cortex®-M4 r0p0cortex_m4_r0p0thumbv7em-none-eabi
ARMv7E-MARM® Cortex®-M4 r0p1cortex_m4_r0p1thumbv7em-none-eabi
ARMv7E-MARM® Cortex®-M4F r0p0cortex_m4f_r0p0, fpu (optional)thumbv7em-none-eabihf
ARMv7E-MARM® Cortex®-M4F r0p1cortex_m4f_r0p1, fpu (optional)thumbv7em-none-eabihf

NOTE Cargo features for drone-cortex-m dependency and target triple for the resulting binary should be selected for a particular core according this table.

Documentation

Usage

Place the following to the Cargo.toml:

[dependencies]
drone-cortex-m = { version = "0.10.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