Crate drone_cortex_m [−] [src]
Drone implementation for ARM Cortex-M microcontrollers.
Installation
Instructions will be given for Debian-based Linux systems.
Install the following packages:
$ sudo apt-get install build-essential cmake libusb-1.0-0 libusb-1.0-0-dev \
pandoc gcc-arm-none-eabi gdb-arm-none-eabi qemu-system-arm qemu-user
Copy udev rules for ST-Link programmer to the
/etc/udev/rules.d/
, and run the following commands:
$ sudo udevadm control --reload-rules
$ sudo udevadm trigger
OpenOCD is required. It is recommended to install it from the source, because repository package is outdated and doesn't contain configuration for newer chips and boards.
Re-exports
pub use drone_cortex_m_macros::vtable; |
Modules
itm |
Instrumentation Trace Macrocell. |
mcu |
A module for working with MCU. |
panicking |
Panicking support. |
peripherals |
Peripheral drivers. |
prelude |
The Drone Cortex-M Prelude. |
reg |
Memory-mapped registers. |
thread |
The vector table. |
Macros
peripheral_sys_tick |
Creates a new |
Macro for printing through ITM. |
|
println |
Macro for printing through ITM, with a newline. |