Skip to content

Commit

Permalink
systick: moved SysTickFrequencyCapability to systick.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielPavaloiu committed Dec 17, 2024
1 parent 342f3c9 commit df053e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 4 additions & 1 deletion arch/cortex-m/src/systick.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@
//! ARM Cortex-M SysTick peripheral.
use core::cell::Cell;
use kernel::capabilities::SysTickFrequencyCapability;
use kernel::utilities::registers::interfaces::{Readable, Writeable};
use kernel::utilities::registers::{register_bitfields, FieldValue, ReadOnly, ReadWrite};
use kernel::utilities::StaticRef;

use core::num::NonZeroU32;

/// The `SysTickFrequencyCapability` allows the holder to change the Cortex M
/// SysTick `hertz` field.
pub unsafe trait SysTickFrequencyCapability {}

#[repr(C)]
struct SystickRegisters {
syst_csr: ReadWrite<u32, ControlAndStatus::Register>,
Expand Down
4 changes: 0 additions & 4 deletions kernel/src/capabilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,3 @@ pub unsafe trait CreatePortTableCapability {}
/// A capsule would never hold this capability although it may hold
/// capabilities created via this capability.
pub unsafe trait NetworkCapabilityCreationCapability {}

/// The `SysTickFrequencyCapability` allows the holder to change the Cortex M
/// SysTick `hertz` field.
pub unsafe trait SysTickFrequencyCapability {}

0 comments on commit df053e3

Please sign in to comment.