mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 04:45:19 +01:00
Make xtask pass, clean up rtic Cargo.toml
This commit is contained in:
parent
0f5178a48f
commit
82f2f08349
5 changed files with 31 additions and 19 deletions
|
|
@ -8,8 +8,15 @@ use cortex_m::peripheral::SYST;
|
|||
use embedded_hal_async::delay::DelayUs;
|
||||
pub use fugit::ExtU32;
|
||||
|
||||
#[cfg(feature = "systick_100hz")]
|
||||
const TIMER_HZ: u32 = 100;
|
||||
|
||||
#[cfg(feature = "systick_1khz")]
|
||||
const TIMER_HZ: u32 = 1_000;
|
||||
|
||||
#[cfg(feature = "systick_10khz")]
|
||||
const TIMER_HZ: u32 = 10_000;
|
||||
|
||||
/// Systick implementing `rtic_monotonic::Monotonic` which runs at 1 kHz.
|
||||
pub struct Systick;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue