Module lm4f120::systick[][src]

Systick for the LM4F120

This just wraps the generic Cortex-M4 systick, but it understands the PLL clock rate (which the generic code cannot)

Re-exports

pub use super::cortex_m4f::systick::*;

Constants

SYSTICK_CLOCK

SysTick runs at / 4, so at 16MHz that's 4MHz

SYSTICK_CLOCK_PER_US

At 4MHz, four ticks per microseconds.

Functions

delay

Busy-waits for the given period.

delay_usec

Busy-waits a specified number of microseconds. usec must be less than 2**22 otherwise SysTick will overflow.

run_time_us

How long since the system booted in microseconds. The u64 is good for 584,000 years.

ticks_to_usecs

Converts from SysTicks to microseconds

usecs_to_ticks

Converts from microseconds to SysTicks