Crate bl702_hal

Crate bl702_hal 

Source
Expand description

§HAL for the BL702 microcontroller

This is a Rust HAL for the BL702 microcontroller.

It implements the embedded-hal traits for peripherals, where such traits exist.

§Usage

§Commonly used setup

// Get access to the device specific peripherals from the peripheral access crate
let dp = pac::Peripherals::take().unwrap();
let mut parts = dp.GLB.split();

To avoid the linker to complain about missing symbols please add hal_defaults.x to .cargo/config like this

rustflags = [
  "-C", "link-arg=-Tmemory.x",
  "-C", "link-arg=-Tlink.x",
  "-C", "link-arg=-Thal_defaults.x",
]

Re-exports§

pub use bl702_pac as pac;

Modules§

clock
delay
Delays
gpio
General Purpose Input/Output
prelude
system
uart
UART driver

Constants§

SYSFREQ
System frequency (constant since we don’t have clocks yet)