docs.rs failed to build ruspiro-timer-0.6.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
ruspiro-timer-0.3.0
Timer RusPiRo crate
This crate provides simple functions to pause execution on the current core for a given amount of time. It uses the free-running counter of the Raspberry Pi to provide micro second accurate pause timings.
Features
Feature | Description |
---|---|
pi3 |
active to use the proper timer MMIO base memory address for Raspberry Pi 3 when accessing the system timer peripheral |
pi4_low |
active to use the proper timer MMIO base memory address for Raspberry Pi 4 in Low-Peripheral mode when accessing the system timer peripheral |
pi4_high |
active to use the proper timer MMIO base memory address for Raspberry Pi 4 in High-Peripheral mode when accessing the system timer peripheral |
Usage
To use the crate just add the following dependency to your Cargo.toml
file:
[]
= "0.6.0"
Once done the access to the timer functions is available in your rust files like so:
use *;
Scheduling the execution of a function/closure is as simple as this:
use *;
License
Licensed under Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0) or MIT (LICENSE-MIT or http://opensource.org/licenses/MIT)) at your choice.