[−][src]Crate drone_cortex_m
ARM® Cortex®-M platform crate for Drone, an Embedded Operating System.
Supported Cores
| Architecture | Core name | Cargo features | Rust target |
|---|---|---|---|
| ARMv7-M | ARM® Cortex®-M3 r0p0 | cortex_m3_r0p0 | thumbv7m-none-eabi |
| ARMv7-M | ARM® Cortex®-M3 r1p0 | cortex_m3_r1p0 | thumbv7m-none-eabi |
| ARMv7-M | ARM® Cortex®-M3 r1p1 | cortex_m3_r1p1 | thumbv7m-none-eabi |
| ARMv7-M | ARM® Cortex®-M3 r2p0 | cortex_m3_r2p0 | thumbv7m-none-eabi |
| ARMv7-M | ARM® Cortex®-M3 r2p1 | cortex_m3_r2p1 | thumbv7m-none-eabi |
| ARMv7E-M | ARM® Cortex®-M4 r0p0 | cortex_m4_r0p0 | thumbv7em-none-eabi |
| ARMv7E-M | ARM® Cortex®-M4 r0p1 | cortex_m4_r0p1 | thumbv7em-none-eabi |
| ARMv7E-M | ARM® Cortex®-M4F r0p0 | cortex_m4f_r0p0, fpu (optional) | thumbv7em-none-eabihf |
| ARMv7E-M | ARM® Cortex®-M4F r0p1 | cortex_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. |
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 |